summaryrefslogtreecommitdiff
path: root/disk-utils/mkfs.minix.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-14messages: gettextize a few skipped or forgotten onesBenno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2009-10-17mkfs.minix: fix strict-aliasing bugsKarel Zak1-2/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-15fsck.minix: fix broken zone checkingKarel Zak1-3/+2
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>
2009-10-09Remove now unused <sys/ioctl.h> includesGuillem Jover1-1/+0
Those became unused with the switch to the blkdev functions. Signed-off-by: Guillem Jover <guillem@hadrons.org>
2009-02-05mkfs.minix: remove local implementation of {set,clr}bitKarel Zak1-8/+3
We needn't to duplicate stuff from <sys/param.h>. Signed-off-by: Karel Zak <kzak@redhat.com>
2008-12-05mkfs.minix: (and fsck) rename bitops.hKarel Zak1-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>
2008-11-13mkfs.minix: fix size detectionMatthias Koenig1-2/+7
blkdev_get_size returns size in bytes, so BLOCKS has to be calculated accordingly. Use stat value for size if device is not a block device. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2008-07-28disk-utils: s/MOUNTED/_PATH_MOUNTED/maximilian attems1-1/+2
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>
2008-03-20mkfs.minix: clean up gcc warningsKarel Zak1-31/+0
mkfs.minix.c:199: warning: ‘count_blocks’ defined but not used Signed-off-by: Karel Zak <kzak@redhat.com>
2007-11-21mkfs.minix: device size cleanupMatthias Koenig1-36/+14
Use blkdev_get_size() function and some size related cleanup. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2007-11-21mkfs.minix: add sectorsize checkMatthias Koenig1-2/+10
Minix filesystem until version 2 has a fixed blocksize of 1024 bytes. If you try to create a filsystem on a device with a physical sectorsize larger than 1024 bytes, this resulting minix fs cannot be mounted, because the physical sectorsize must be smaller than the filesystem blocksize. This patch adds a check for this and will refuse to create a filesystem if the sectorsize is bigger than the blocksize. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2007-10-11mkfs.minix: clean up gcc warningsRandy Dunlap1-1/+4
* clean up code, gcc warnings (try compilation with "-Wall -Wp,-D_FORTIFY_SOURCE=2") Builds cleanly on x86_32 and x86_64. mkfs.minix.c:595: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-27disk-utils: let mkfs tools open with O_EXCLMatthias Koenig1-3/+6
Let mkswap, mkfs.bfs, mkfs.minix open with O_EXCL if used on block devices to prevent writing to the device even if they are busy (mounted). Unfortunately, O_EXCL has zero effect for 2.4 kernels where in-kernel code doesn't use O_EXCL-like access locks. (Tested on RHEL3.) Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
2006-12-07Imported from util-linux-2.13-pre2 tarball.Karel Zak1-2/+2
2006-12-07Imported from util-linux-2.13-pre1 tarball.Karel Zak1-2/+2
2006-12-07Imported from util-linux-2.12b tarball.Karel Zak1-43/+19
2006-12-07Imported from util-linux-2.11x tarball.Karel Zak1-13/+9
2006-12-07Imported from util-linux-2.11o tarball.Karel Zak1-1/+1
2006-12-07Imported from util-linux-2.11m tarball.Karel Zak1-15/+19
2006-12-07Imported from util-linux-2.10s tarball.Karel Zak1-5/+5
2006-12-07Imported from util-linux-2.10m tarball.Karel Zak1-59/+49
2006-12-07Imported from util-linux-2.10f tarball.Karel Zak1-4/+22
2006-12-07Imported from util-linux-2.9v tarball.Karel Zak1-88/+98
2006-12-07Imported from util-linux-2.9i tarball.Karel Zak1-2/+2
2006-12-07Imported from util-linux-2.8 tarball.Karel Zak1-15/+27
2006-12-07Imported from util-linux-2.7.1 tarball.Karel Zak1-132/+306
2006-12-07Imported from util-linux-2.5 tarball.Karel Zak1-22/+35
2006-12-07Imported from util-linux-2.2 tarball.Karel Zak1-0/+533