Hi all, This is a series to update the "create file and preallocate blocks" code in xfs_restore. The first patch refactors the existing copy-pasta into a single helper function to create and preallocate space in files, as well as removing the totally broken ALLOCSP code. The next two patches fix unchecked return values and insufficient unsupported-ioctl code. The final patch upgrades xfs_restore to try fallocate before RESVSP simply because it is the newer API. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D