btrfs-util: Move subvolume creation to basic/btrfs.h
Also make btrfs_subvol_make() an openat style function.
This commit is contained in:
@@ -1932,7 +1932,7 @@ static int create_directory_or_subvolume(
|
||||
subvol = false;
|
||||
else {
|
||||
WITH_UMASK((~mode) & 0777)
|
||||
r = btrfs_subvol_make_fd(pfd, bn);
|
||||
r = btrfs_subvol_make(pfd, bn);
|
||||
}
|
||||
} else
|
||||
r = 0;
|
||||
|
||||
Reference in New Issue
Block a user