]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck.cramfs: refactor option -x/--extract
authorRuediger Meier <ruediger.meier@ga-group.nl>
Mon, 19 May 2014 10:57:59 +0000 (12:57 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Mon, 19 May 2014 13:07:17 +0000 (15:07 +0200)
commit2d317f117b54f6734a45749e87b31ec4ab175288
tree5609b5ba8c3cc1fc3f1ad1014e05b35a55608b7a
parent62a49dde58885ea3dcfdcd88ff3b80b452afb44d
fsck.cramfs: refactor option -x/--extract

We want to clean it up to compile it later per default (not only
if defined INCLUDE_FS_TESTS).

- Rename option --destination to --extract.
- DIR argument is now optional because we want to keep the use
  case "test uncompression without writing files" ... but we
  don't want it always.
- Remove shortopt -x because shortopts with optional args are
  evil.

Changing the cmd interface is no compatibility issue here because
all affected options errored out per default in past.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
disk-utils/fsck.cramfs.c
tests/ts/cramfs/fsck-endianness