Closed DaanDeMeyer closed 8 months ago
Indeed, the root directory needs one dedicated call for the xattr items.
Would fix it soon.
@adam900710 I haven't checked but is the permissions mode from the source directory applied correctly? I figure if the xattr's aren't handled correctly, the permissions might not be handled correctly either.
Right, I'll take a deeper look into what's missing for the rootdir.
@adam900710 Any chance you could take a stab at https://github.com/kdave/btrfs-progs/issues/42 as well? Having a --subvol option to indicate that certain directories in the user provided root directory should become subvolumes in the generated filesystem would make mkfs.btrfs much more useful.
Sure, it looks simple enough.
Xattrs for rootdir are fixed in devel. Regarding the --subvol and #42, we'll continue there.
After booting into an filesystem generated with btrfs-progs --rootdir:
It seems as if the
traverse_directory()
simply does not calladd_xattr_item()
for the root directory so the root directory does not have any of its xattrs in the generated filesystem.