|
|
7c06a3 |
From 9384c1c0f8b64535595c89bb2b1a980538c8be43 Mon Sep 17 00:00:00 2001
|
|
|
7c06a3 |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
7c06a3 |
Date: Wed, 6 Mar 2013 13:10:25 +0100
|
|
|
7c06a3 |
Subject: [PATCH 2/4] Complete quotasync usage
|
|
|
7c06a3 |
MIME-Version: 1.0
|
|
|
7c06a3 |
Content-Type: text/plain; charset=UTF-8
|
|
|
7c06a3 |
Content-Transfer-Encoding: 8bit
|
|
|
7c06a3 |
|
|
|
7c06a3 |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
7c06a3 |
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
|
7c06a3 |
---
|
|
|
7c06a3 |
quotasync.c | 19 +++++++++++++++++--
|
|
|
7c06a3 |
1 file changed, 17 insertions(+), 2 deletions(-)
|
|
|
7c06a3 |
|
|
|
7c06a3 |
diff --git a/quotasync.c b/quotasync.c
|
|
|
7c06a3 |
index dd8ade9..cab9015 100644
|
|
|
7c06a3 |
--- a/quotasync.c
|
|
|
7c06a3 |
+++ b/quotasync.c
|
|
|
7c06a3 |
@@ -22,8 +22,23 @@ char *progname;
|
|
|
7c06a3 |
|
|
|
7c06a3 |
static void usage(void)
|
|
|
7c06a3 |
{
|
|
|
7c06a3 |
- errstr(_("Utility for syncing quotas.\nUsage:\n%s [-ug] -a | mntpoint...\n\n"), progname);
|
|
|
7c06a3 |
- fprintf(stderr, _("Bugs to %s\n"), MY_EMAIL);
|
|
|
7c06a3 |
+ printf(_(
|
|
|
7c06a3 |
+"%1$s: Utility for syncing quotas.\n"
|
|
|
7c06a3 |
+"Usage: %1$s [-ug] mount-point...\n"
|
|
|
7c06a3 |
+" or: %1$s [-ug] -a\n"
|
|
|
7c06a3 |
+" or: %1$s -h | -V\n"
|
|
|
7c06a3 |
+"\n"
|
|
|
7c06a3 |
+ ), progname);
|
|
|
7c06a3 |
+ printf(_(
|
|
|
7c06a3 |
+"Options:\n"
|
|
|
7c06a3 |
+"-u, --user synchronize user quotas\n"
|
|
|
7c06a3 |
+"-g, --group synchronize group quotas\n"
|
|
|
7c06a3 |
+"-a, --all synchronize quotas for all mounted file systems\n"
|
|
|
7c06a3 |
+"-h, --help display this help message and exit\n"
|
|
|
7c06a3 |
+"-V, --version display version information and exit\n"
|
|
|
7c06a3 |
+"\n"
|
|
|
7c06a3 |
+ ));
|
|
|
7c06a3 |
+ printf(_("Report bugs to <%s>.\n"), MY_EMAIL);
|
|
|
7c06a3 |
exit(1);
|
|
|
7c06a3 |
}
|
|
|
7c06a3 |
|
|
|
7c06a3 |
--
|
|
|
7c06a3 |
1.8.1.4
|
|
|
7c06a3 |
|