From: Bernhard Voelker <mail@bernhard-voelker.de>
To: "util-linux@vger.kernel.org" <util-linux@vger.kernel.org>
Subject: fallocate: --punch option parsing error diagnostics irritating
Date: Wed, 25 Jun 2014 22:16:54 +0200 [thread overview]
Message-ID: <53AB2E36.5060405@bernhard-voelker.de> (raw)
<naive_user>
Let's create a file:
$ dd if=/dev/zero of=/tmp/x bs=1000000 count=1 status=none
$ ls -ldog /tmp/x
-rw-r--r-- 1 1000000 Jun 6 08:32 /tmp/x
Now, somehow I want to punch holes into it, use -p:
$ ./fallocate -p /tmp/x
fallocate: no length argument specified
Well, okay then try with -l:
$ ./fallocate -p -l 10000 /tmp/x
fallocate: only -n mode can be used with --zero-range
Huh? I didn't specify neither -n nor -z.
Well, let's try -n then:
$ ./fallocate -p -n /tmp/x
fallocate: no length argument specified
Reading 'man fallocate' regarding --punch doesn't help either:
-p, --punch-hole
Punch holes in the file, the range should not
exceed the length of the file.
What does "punching" mean? Please explain without using the
word "punch".
And how would one specify a "range"? There's no option with
such a "range" argument.
Finally, please add some examples to the man page.
Thanks!
</naive_user>
next reply other threads:[~2014-06-25 20:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 20:16 Bernhard Voelker [this message]
2014-06-25 20:35 ` fallocate: --punch option parsing error diagnostics irritating Dale R. Worley
2014-06-26 10:10 ` Karel Zak
2014-06-26 10:52 ` Pádraig Brady
2014-06-26 11:07 ` Karel Zak
2014-06-26 12:14 ` Bernhard Voelker
2014-06-26 12:49 ` Karel Zak
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=53AB2E36.5060405@bernhard-voelker.de \
--to=mail@bernhard-voelker.de \
--cc=util-linux@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