Patchwork contrib: print missing '-p' argument in fallocate.c

login
register
mail settings
Submitter Zheng Liu
Date Jan. 25, 2013, 3:44 a.m.
Message ID <1359085459-15711-1-git-send-email-wenqing.lz@taobao.com>
Download mbox | patch
Permalink /patch/215537/
State Accepted
Headers show

Comments

Zheng Liu - Jan. 25, 2013, 3:44 a.m.
From: Zheng Liu <wenqing.lz@taobao.com>

In fallocate.c it has supported hole punching, but '-p' argument does
not be printed in usage.  So fix it to let the user know it.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
---
 contrib/fallocate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Theodore Ts'o - Jan. 25, 2013, 4:28 a.m.
On Fri, Jan 25, 2013 at 11:44:19AM +0800, Zheng Liu wrote:
> From: Zheng Liu <wenqing.lz@taobao.com>
> 
> In fallocate.c it has supported hole punching, but '-p' argument does
> not be printed in usage.  So fix it to let the user know it.
> 
> Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>

Thanks, applied.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/contrib/fallocate.c b/contrib/fallocate.c
index 1436b70..1f9b59a 100644
--- a/contrib/fallocate.c
+++ b/contrib/fallocate.c
@@ -39,7 +39,7 @@ 
 
 void usage(void)
 {
-	printf("Usage: fallocate [-nt] [-o offset] -l length filename\n");
+	printf("Usage: fallocate [-npt] [-o offset] -l length filename\n");
 	exit(EXIT_FAILURE);
 }