And the strace of fallocate execution against a zero-length file I created with touch: http://sprunge.us/BRML You can see in the strace that fallocate thinks it worked (= 0), but here's the file post-execution: 2014-08-27 15:49:45 root@eanna i ~ # ls -alh test.test -rw------- 1 root root 0 Aug 27 15:46 test.test On Wed, Aug 27, 2014 at 3:39 PM, G. Richard Bellamy <rbellamy@xxxxxxxxxxxxx> wrote: > Also, here's the strace of the fallocate call: > http://sprunge.us/QXFN > > On Wed, Aug 27, 2014 at 10:39 AM, G. Richard Bellamy > <rbellamy@xxxxxxxxxxxxx> wrote: >> Good questions, should have included that info in the OP. >> >> The current versions I can get, but I'm frankly terrified to try to >> roll back to prior versions to "test" this, since back in that land be >> monsters with deadlocks preventing degraded volumes from being fixed >> and other challenges I wasn't qualified to fix - and it was over three >> months ago that I tried fallocate last. I run Arch and aggressively >> update, so I can infer what those version were, and will do so, though >> I know that is of limited efficacy in helping you help me... >> >> Best-guess Prior (2014-06-30): >> ------------------------------------------------ >> linux-lts 3.10.45-1 >> btrfs-progs 3.14.2-2 >> linux 3.15.2-1 >> util-linux 2.24.2-1 >> >> Current (2014-08-27 10:28:07): >> ----------- >> rbellamy@eanna i ~ % pacman -Q linux-lts btrfs-progs-git linux util-linux >> linux-lts 3.14.17-1 >> btrfs-progs-git 3.16_108_d34cbe7-1 >> linux 3.16.1-1 >> util-linux 2.25-3 >> >> On Tue, Aug 26, 2014 at 11:39 PM, Duncan <1i5t5.duncan@xxxxxxx> wrote: >>> G. Richard Bellamy posted on Tue, 26 Aug 2014 22:05:01 -0700 as excerpted: >>> >>>> When I try to run fallocate with "--keep-size" on my btrfs partitions, >>>> it's failing, and I'm at a loss as to why. This was working in prior >>>> versions. >>>> >>>> Any suggestions on how to attack this problem? I'm betting I'm missing >>>> something simple here, and have just gone down the rabbit hole... >>>> >>>> BTW, I've confirmed that the line that fails is fallocate.c:368 [2], >>>> with "open" always returning -1. >>> >>> One "something simple" you're missing (either that or I am) is any >>> reference to which version you're running. You say it was working in >>> prior versions, but /which/ prior versions, and /which/ version doesn't >>> work now? >>> >>> -- >>> Duncan - List replies preferred. No HTML msgs. >>> "Every nonfree program has a lord, a master -- >>> and if you use the program, he is your master." Richard Stallman >>> >>> -- >>> 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 -- 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
