summaryrefslogtreecommitdiffstats
path: root/disk-utils/fsck.minix.c
Commit message (Collapse)AuthorAgeFilesLines
* fsck.minix: check writing to a file descriptor was successfulSami Kerola2013-04-261-0/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* various: fix variable and function declarations [smatch scan]Sami Kerola2013-04-091-1/+2
| | | | | | | | | | | | | | | | | disk-utils/fsck.minix.c:511:9: warning: mixing declarations and code fdisks/sfdisk.c:982:5: warning: mixing declarations and code fdisks/sfdisk.c:1254:5: warning: mixing declarations and code fdisks/sfdisk.c:1564:5: warning: mixing declarations and code lib/mbsalign.c:279:7: warning: mixing declarations and code libblkid/src/devname.c:378:17: warning: mixing declarations and code libfdisk/src/alignment.c:219:9: warning: mixing declarations and code term-utils/wall.c:111:9: warning: mixing declarations and code text-utils/col.c:418:19: warning: non-ANSI function declaration of function 'flush_blanks' text-utils/col.c:553:12: warning: non-ANSI function declaration of function 'alloc_line' text-utils/rev.c:105:9: warning: mixing declarations and code text-utils/tailf.c:245:9: warning: mixing declarations and code Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* add missing rpmatch.h everywhere it needs to beWilliam Pitcock2013-02-201-0/+1
| | | | | Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: spell and encode the name of Arkadiusz Miśkiewicz correctlyBenno Schulenberg2013-02-061-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: standardize the reporting of program name plus package versionBenno Schulenberg2013-01-301-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* mkfs.minix: fsck:minix: fix compiler warningsKarel Zak2012-12-201-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* minix: replace magic constants with macro namesSami Kerola2012-12-191-7/+7
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* minix: use off_t, size_t, etc appropriate typesSami Kerola2012-12-191-6/+6
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* translation: unify file open error messagesSami Kerola2012-07-161-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* include: rename writeall.h to all-io.hPetr Uzel2012-05-151-1/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* fsck.minix.c: fix compiler warnings [-Wunused-result]Petr Uzel2012-04-271-1/+1
| | | | | | | fsck.minix.c: In function ‘ask’: fsck.minix.c:263:7: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Werror=unused-result] Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* disk-utils: verify writing to streams was successfulSami Kerola2012-04-041-0/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: fix printf format warningSami Kerola2012-03-301-1/+1
| | | | | | fsck.minix.c:1302:3: warning: ISO C does not support the '%m' gnu_printf format [-Wformat] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: clean up coding styleSami Kerola2012-03-301-360/+342Star
| | | | | | $ indent -linux -psl -blf disk-utils/fsck.minix.c Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: align with howto-usage-function.txtSami Kerola2012-03-301-10/+16
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: use rpmatch() for yes/no questionSami Kerola2012-03-301-21/+23
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: use symbolic exit codesSami Kerola2012-03-301-4/+5
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: fix zone_map memory allocation failure checkFrancesco Cosoleto2011-11-101-1/+1
| | | | Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* fsck.minix: remove unnecessary memset callsFrancesco Cosoleto2011-11-091-4/+2Star
| | | | | | | | | | | | | The program aborts without using this unintialized allocated memory, setting to zero doesn't look needed. memset calls with sizeof() of pointer as argument (reported by clang). [kzak@redhat.com: - replace malloc with calloc for {zone,inode}_count to make code more robust] Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: use %m in format string instead of %s and strerror(errno)Petr Uzel2011-09-271-1/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* mkfs.minix: fix write_all() usageKarel Zak2011-08-171-7/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: fix compiler warnings [-Wsign-compare]Karel Zak2011-08-011-33/+49
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: fix "array subscript is above array bounds"Karel Zak2011-07-211-1/+1
| | | | | | | | | fsck.minix.c: In function ‘map_block2’: fsck.minix.c:486:9: warning: array subscript is above array bounds [-Warray-bounds] The 'blknr' has to be bigger than 7 + 256 + (256 * 256) for i_zone[9]. Signed-off-by: Karel Zak <kzak@redhat.com>
* minix: remove unnecessary initializationsKarel Zak2011-07-211-19/+17Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* minix: add MINIX_ prefix to some global macrosKarel Zak2011-07-211-6/+6
| | | | | | ... and remove some tailing whitespaces. Signed-off-by: Karel Zak <kzak@redhat.com>
* minix: cleanup global variables and macrosKarel Zak2011-07-211-0/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* minix: move globals and inline functions to minix_programs.hSami Kerola2011-07-201-0/+1
| | | | | | | | | | Global variables and inline functions are moved from minix.h to minix_programs.h which is included in mkfs.minix and fsck.minix. The minix.h will have only struct definitions etc generic contents which is reasonable to share with utilities and libraries. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: use MINIX_BLOCK_SIZE from minix.hSami Kerola2011-07-201-49/+49
| | | | | | | | | | In the minix.h two definitions where renamed, so that the single definition is reusable in fsck.minix, mkfs.minix and libblkid. BLOCK_SIZE_BITS -> MINIX_BLOCK_SIZE_BITS BLOCK_SIZE -> MINIX_BLOCK_SIZE Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: remove unused variablesKarel Zak2011-06-141-4/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: use common functionalitlyDavidlohr Bueso2011-06-021-83/+67Star
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fsck.minix: use lib/ismounted.cKarel Zak2011-03-111-22/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: fix strict-aliasing bugsKarel Zak2009-10-171-1/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: fix broken zone checkingKarel Zak2009-10-151-3/+3
| | | | | | | | | | | | | This bug has been introduced by commit 95356e8b744439336925eeb36f01399f1ee8a5e9. The fsck.minix code assumes that isset() macro returns boolean, unfortunately the generic implementation from libc returns integer. This patch also add a fallback for the bitmap macros to include/bitops.h. Reported-by: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: detect if volatile is availableGuillem Jover2009-10-091-4/+0Star
| | | | | | | Do not defined volatile away on non-Linux systems, detect its presence using AC_C_VOLATILE instead. Signed-off-by: Guillem Jover <guillem@hadrons.org>
* mkfs.minix: remove local implementation of {set,clr}bitKarel Zak2009-02-051-5/+3Star
| | | | | | We needn't to duplicate stuff from <sys/param.h>. Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.minix: (and fsck) rename bitops.hKarel Zak2008-12-051-2/+2
| | | | | | | This patch renames bitops.h to minix_bitops.h to avoid possible collisions with global include/bitops.h file. Signed-off-by: Karel Zak <kzak@redhat.com>
* disk-utils: s/MOUNTED/_PATH_MOUNTED/maximilian attems2008-07-281-2/+3
| | | | | | | | | no longer use deprecated alias. helps compiling util-linux-ng against klibc. add pathnames.h include, where _PATH_MOUNTED is defined. Signed-off-by: maximilian attems <max@stro.at>
* fsck.minix: reset the terminal state if we are killed by a fatal signalJames Youngman2008-04-081-2/+33
| | | | | | [kzak@redhat.com: remove unnecessary volatile type qualifier] Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: correct the error message given when we can't open the deviceJames Youngman2008-04-081-3/+13
| | | | | | | | | | Don't actually print %s in the error message, print the device name, as was obviously intended. Also, print the error message corresponding to the errno value. [kzak@redhat.com: add __attribute__, coding style cleanups] Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* po: gettextizing some overlooked messages.Benno Schulenberg2007-08-141-6/+6
| | | | | | | | Gettextize three new strings, make two strings indentical to two others, and gettextize three strings that are already gettextized elsewhere. Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre2 tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.12b tarball.Karel Zak2006-12-071-48/+2Star
|
* Imported from util-linux-2.11n tarball.Karel Zak2006-12-071-76/+106
|
* Imported from util-linux-2.11m tarball.Karel Zak2006-12-071-6/+15
|
* Imported from util-linux-2.11f tarball.Karel Zak2006-12-071-18/+22
|
* Imported from util-linux-2.11b tarball.Karel Zak2006-12-071-5/+5
|
* Imported from util-linux-2.10m tarball.Karel Zak2006-12-071-89/+82Star
|
* Imported from util-linux-2.10f tarball.Karel Zak2006-12-071-38/+50
|
* Imported from util-linux-2.9v tarball.Karel Zak2006-12-071-85/+95
|