summaryrefslogtreecommitdiffstats
path: root/disk-utils/fsck.cramfs.c
diff options
context:
space:
mode:
authorKarel Zak2013-02-18 12:18:29 +0100
committerKarel Zak2013-02-18 12:18:29 +0100
commit6bf463c54c515c676d53d3bda332cfa37c5d0d1b (patch)
tree136975bfc24aed8b87c8131b7f221e830fc0ae69 /disk-utils/fsck.cramfs.c
parentlslocks: detect blocked locks, fix /proc/locks parser (diff)
downloadkernel-qcow2-util-linux-6bf463c54c515c676d53d3bda332cfa37c5d0d1b.tar.gz
kernel-qcow2-util-linux-6bf463c54c515c676d53d3bda332cfa37c5d0d1b.tar.xz
kernel-qcow2-util-linux-6bf463c54c515c676d53d3bda332cfa37c5d0d1b.zip
fsck.cramfs: add dummy -a -y for compatibility
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fsck.cramfs.c')
-rw-r--r--disk-utils/fsck.cramfs.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c
index b39d2310b..7ec785000 100644
--- a/disk-utils/fsck.cramfs.c
+++ b/disk-utils/fsck.cramfs.c
@@ -113,10 +113,14 @@ static void __attribute__((__noreturn__)) usage(int status)
fprintf(stream,
_(" %s [options] file\n"), program_invocation_short_name);
fputs(USAGE_OPTIONS, stream);
- fputs(_(" -x, --destination <dir> extract into directory\n"), stream);
+ fputs(_(" -a for compatibility only, ignored\n"), stream);
fputs(_(" -v, --verbose be more verbose\n"), stream);
+ fputs(_(" -x, --destination <dir> extract into directory\n"), stream);
+ fputs(_(" -y for compatibility only, ignored\n"), stream);
+ fputs(USAGE_SEPARATOR, stream);
fputs(USAGE_HELP, stream);
fputs(USAGE_VERSION, stream);
+ fputs(USAGE_SEPARATOR, stream);
exit(status);
}
@@ -652,8 +656,11 @@ int main(int argc, char **argv)
outbuffer = xmalloc(page_size * 2);
/* command line options */
- while ((c = getopt_long(argc, argv, "x:vVh", longopts, NULL)) != EOF)
+ while ((c = getopt_long(argc, argv, "ayx:vVh", longopts, NULL)) != EOF)
switch (c) {
+ case 'a': /* ignore */
+ case 'y':
+ break;
case 'h':
usage(FSCK_EX_OK);
break;