btrfs-util: Move subvolume creation to basic/btrfs.h

Also make btrfs_subvol_make() an openat style function.
This commit is contained in:
Daan De Meyer
2023-08-14 18:46:08 +02:00
parent 6819924c30
commit e54c79ccc2
12 changed files with 120 additions and 118 deletions
+1 -1
View File
@@ -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;