I want to do a few experiments on the btrfs file system, but I don't want to make any changes to my existing partitions, and I want full control over things like device size.
Is it possible to create a file that looks like a block device that I can mount and unmount, and that will act like a block device such as running out of space?