Open
Description
I'd like to create minimal btrfs filesystems using --rootdir. Currently, I have to provide the file backed image myself which means I have to come up with a good size for it so that all the files specified with --rootdir will fit. Coming up with the size myself is very hard as I don't have enough information available to know how much space btrfs will need to store the files from --rootdir. I'd like for mkfs.btrfs to create the loopback file if it does not exist and make sure it is just large enough to store all the files from --rootdir.