summaryrefslogtreecommitdiffstats
path: root/disk-utils/fsck.cramfs.c
Commit message (Collapse)AuthorAgeFilesLines
...
* fsck.cramfs: add long optionsSami Kerola2012-03-301-12/+20
| | | | | | And align with howto-usage-function.txt Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* include/exitcodes: clean up names, add _EX_ suffixKarel Zak2012-03-201-52/+52
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* xalloc: use xasprintf in all filesSami Kerola2012-03-181-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: corrections to FSF license files, and postal addressSami Kerola2012-02-241-3/+3
| | | | | | | | | | | | | | The COPYING and Documentation/licenses/COPYING* files are being replaced by files from GNU web site. http://www.gnu.org/licenses/gpl-2.0.txt http://www.gnu.org/licenses/lgpl-2.1.txt Postal addresses to FSF in other files are updated to match with the address in license files. Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.cramfs: mark usage() as noreturnKarel Zak2012-01-311-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: move fsck return values to exitcodes.hSami Kerola2011-07-221-9/+1Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.cramfs: add missed strings to translationSami Kerola2011-07-211-4/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.cramfs: coding styleSami Kerola2011-07-211-219/+180Star
| | | | | | | Lots of braces got to be removed, which can cause something to break even everything is double checked. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.cramfs: use xalloc.hSami Kerola2011-07-211-24/+16Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.cramfs: retire die functionSami Kerola2011-07-211-69/+53Star
| | | | | | Replaced with err{,x} from libc. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cramfs: use stdint.h instead of u{8,16,32}Sami Kerola2011-07-201-4/+5
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cramfs: remove cramfs_common.hDavidlohr Bueso2011-05-171-1/+0Star
| | | | | | | We currently have cramfs.h and cramfs_common.h, this makes no sense, so remove unite them and keep just cramfs.h Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* Remove now unused <sys/ioctl.h> includesGuillem Jover2009-10-091-1/+0Star
| | | | | | Those became unused with the switch to the blkdev functions. Signed-off-by: Guillem Jover <guillem@hadrons.org>
* fsck.cramfs: segfault with INCLUDE_FS_TESTS and no -x optionKarel Zak2009-02-041-2/+3
| | | | | | | | | | The current implementation causes a segmentation fault if INCLUDE_FS_TESTS is defined, but the -x option is not specified. The error is caused by the extract_dir variable being null. Reported-by: Roy Peled <the.roy.peled@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.cramfs: add endianness support to cramfs toolsSigned-off-by: Roy Peled2009-02-041-12/+37
| | | | | | | | | | | | | | | | | | | | cramfs is an endianness dependent file system. So far, the cramfs utilities did not support cramfs images of different endianness than the host machine. A separate utility, cramfsswap, was required in order to change the endianness of the image before and after using cramfs utilities. The extra utility introduced extra maintenance and an additional step in the process. This patch adds endianness support to mkfs.cramfs and fsck.cramfs. fsck.cramfs now automatically detects the image endianness, and can work on images of either endianness. mkfs.cramfs now accepts a new optional parameter (-N) that allows creating the cramfs image in either endianness. Signed-off-by: Roy Peled <the.roy.peled@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.cramfs: add NLS supportPedro Ribeiro2008-10-031-56/+60
| | | | | | | [kzak@redhat.com: - add setlocale(), ...] Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.cramfs: fix compiler warningKarel Zak2008-09-291-1/+1
| | | | | | | fsck.cramfs.c: In function ‘main’: fsck.cramfs.c:676 warning: ‘length’ may be used uninitialized in this function Signed-off-by: Karel Zak <kzak@redhat.com>
* use getpagesize()maximilian attems2008-07-301-1/+1
| | | | | | | | | | | | getpagesize() is said to be more portable than sysconf(_SC_PAGESIZE) to anything Linux. this patch helps klibc porting effort as the sysconf multiplex API is not supported there. also remove comment of the switch to sysconf in mkswap.c. Signed-off-by: maximilian attems <max@stro.at>
* disk-utils: clean up code, use blkdev_* functionsSamuel Thibault2008-07-241-4/+4
| | | | | | | [kzak@redhat.com: split the original patch to small patches] Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.cramfs: clean up gcc warningsRandy Dunlap2007-10-031-1/+2
| | | | | | | | | | | * clean up code, gcc warnings (try compilation with "-Wall -Wp,-D_FORTIFY_SOURCE=2") Builds cleanly on x86_32 and x86_64. fsck.cramfs.c:235: warning: ignoring return value of 'read', declared with attribute warn_unused_result Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
* build-sys: remove hardcoded _GNU_SOURCEKarel Zak2007-09-201-1/+0Star
| | | | | | We have AC_GNU_SOURCE, so we needn't any extra hardcoded _GNU_SOURCE. Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre5 tarball.Karel Zak2006-12-071-345/+434
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-6/+3Star
|
* Imported from util-linux-2.12k tarball.Karel Zak2006-12-071-0/+10
|
* Imported from util-linux-2.11t tarball.Karel Zak2006-12-071-0/+625