From: "G. Richard Bellamy" <rbellamy@pteradigm.com>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: fallocate fail on btrfs
Date: Tue, 26 Aug 2014 22:05:01 -0700 [thread overview]
Message-ID: <CADw2B2PYPJdcLWvkufY71kvAdCdgXhsdO2Gizf8hXAruppxXPA@mail.gmail.com> (raw)
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);
next reply other threads:[~2014-08-27 5:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 5:05 G. Richard Bellamy [this message]
2014-08-27 6:39 ` fallocate fail on btrfs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADw2B2PYPJdcLWvkufY71kvAdCdgXhsdO2Gizf8hXAruppxXPA@mail.gmail.com \
--to=rbellamy@pteradigm.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).