linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fallocate fail on btrfs
@ 2014-08-27  5:05 G. Richard Bellamy
  2014-08-27  6:39 ` Duncan
  0 siblings, 1 reply; 10+ messages in thread
From: G. Richard Bellamy @ 2014-08-27  5:05 UTC (permalink / raw)
  To: linux-btrfs

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.

[1]
2014-08-26 21:58:28
root@eanna i /var/lib/libvirt/images # fallocate -n -l 10 test.test
fallocate: cannot open test.test: No such file or directory
zsh: exit 1     fallocate -n -l 10 test.test
2014-08-26 21:58:41
root@eanna i /var/lib/libvirt/images # fallocate -l 10 test.test
2014-08-26 21:58:52
root@eanna i /var/lib/libvirt/images # ls -alh
total 4.0K
drwxr-xr-x 1 root root  18 Aug 26 21:58 .
drwxr-xr-x 1 root root 100 Aug 26 17:39 ..
-rw-r--r-- 1 root root  10 Aug 26 21:58 test.test
2014-08-26 21:58:54
root@eanna i /var/lib/libvirt/images # umask
022
2014-08-26 21:59:03
root@eanna i /var/lib/libvirt/images # umask 000
2014-08-26 21:59:08
root@eanna i /var/lib/libvirt/images # rm test.test
removed ‘test.test’
2014-08-26 21:59:15
root@eanna i /var/lib/libvirt/images # fallocate -n -l 10 test.test
fallocate: cannot open test.test: No such file or directory
zsh: exit 1     fallocate -n -l 10 test.test
2014-08-26 21:59:19
root@eanna i /var/lib/libvirt/images # ls -alh
total 0
drwxr-xr-x 1 root root   0 Aug 26 21:59 .
drwxr-xr-x 1 root root 100 Aug 26 17:39 ..
2014-08-26 21:59:23
root@eanna i /var/lib/libvirt/images #

[2] fd = open(filename, O_RDWR | (!dig && !mode ? O_CREAT : 0), 0644);

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-28 20:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27  5:05 fallocate fail on btrfs G. Richard Bellamy
2014-08-27  6:39 ` Duncan
2014-08-27 17:39   ` G. Richard Bellamy
2014-08-27 22:39     ` G. Richard Bellamy
2014-08-27 22:51       ` G. Richard Bellamy
2014-08-27 22:58         ` G. Richard Bellamy
2014-08-27 23:33           ` Holger Hoffstätte
2014-08-28  9:12             ` Duncan
2014-08-28 14:48               ` G. Richard Bellamy
2014-08-28 20:10                 ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).