mkdir: Add support for creating subvolumes to mkdir_p_root()
We pass in the paths which should be subvolumes and try to create those as subvolumes if we can.
This commit is contained in:
@@ -1936,7 +1936,7 @@ static int mount_partition(
|
||||
|
||||
if (directory) {
|
||||
/* Automatically create missing mount points inside the image, if necessary. */
|
||||
r = mkdir_p_root(where, directory, uid_shift, (gid_t) uid_shift, 0755);
|
||||
r = mkdir_p_root(where, directory, uid_shift, (gid_t) uid_shift, 0755, NULL);
|
||||
if (r < 0 && r != -EROFS)
|
||||
return r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user