> if you run it on ext4, it will create a 4-byte file with "test" in it.
> On btrfs, however, the file size would be 4096, and the remaining
> space will be filled with zeroes.
My fallocate man page says:
Because allocation is done in block size chunks, fallocate() may
allocate a larger range than that which was specified.
so the btrfs behavior seems OK to me.
You say this is a regression. What btrfs version behaved differently?
- R.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html