summaryrefslogtreecommitdiffstats
path: root/fdisk
Commit message (Collapse)AuthorAgeFilesLines
...
* sfdisk: opened files leaving unclosedKarel Zak2007-10-261-41/+72
| | | | | | Co-Author: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: tweak a few messages for clarityBenno Schulenberg2007-10-262-2/+2
| | | | | | | | Add a missing period, a missing space, a comma and a word for clarity, plus a period and an uppercase letter to match surrounding messages. Further add a missing call to gettext, and undo an unneeded linewrap. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* cfdisk: slightly increase the size of menu buttonsBenno Schulenberg2007-10-261-3/+3
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* cfdisk: translate partition-type names when they are printed.Benno Schulenberg2007-10-261-3/+3
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fdisk: doing useless ioctl when editing an imagePascal Terjan2007-09-051-15/+8Star
| | | | | | | | | | | | | When editing a disk image, fdisk wants to ask the kernel to reread the partition table which is useless and provokes an error, a wrong exit code and some waiting. This annoys me as I can't check the return code in my script and because I have to wait a few seconds each time. This trivial patch makes it only do the ioctl on block devices. It also simplifies code by dropping some workaround for kernel 1.2.x Signed-off-by: Pascal Terjan <pterjan@linuxfr.org>
* fdisk: fix typoKarel Zak2007-09-021-1/+1
| | | | | Reported-by: Daniel Nylander <po@danielnylander.se> Signed-off-by: Karel Zak <kzak@redhat.com>
* manpage typosLaMont Jones2007-07-241-9/+9
| | | | Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
* fdisk: cleanup partname.cKarel Zak2007-07-231-15/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add support for udev persistent device namesMatthias Koenig2007-07-232-0/+11
| | | | | | | udev names partitions with the extension "-partN" (where N is a partition number). Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* fdisk: check returns in fdisk from partition changesMike Frysinger2007-07-165-15/+21
| | | | | | | | | currently the code in fdisk which changes partition types is a bit fragile ... it assumes the partition type succeeded instead of checking the user input or for errors. ive tweaked the sub functions to return a value indicative of the functions' success and fdisk now checks/reports based on that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fdisk: when generating a DOS disk label, give it an IDH. Peter Anvin2007-07-101-10/+99
| | | | | | | | | Newer Micro$oft operating systems (NT 3 and later) put a 4-byte signature in the MBR at offset 440 decimal. Generate a random such signature when creating a new disk label, and allow it to be changed. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: do not complain about regular filesH. Peter Anvin2007-07-101-1/+3
| | | | | | | | | fdisk complains that it doesn't understand regular files. This can be trivially fixed. Also, modes are conventionally given in octal, not hex. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* man pages: add "AVAILABILITY" sectionKarel Zak2007-07-033-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: fix stupid typo in GPT checker callKarel Zak2007-07-021-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: fix "differ in signedness" compiler warningsKarel Zak2007-07-021-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: fix "may be used uninitialized" compiler warningsKarel Zak2007-07-021-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix "differ in signedness" compiler warningsKarel Zak2007-07-021-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: many significant improvements and fixes to Sun label handlingDavid Miller2007-07-023-372/+329Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Properly describe the exact layout and fields of the sun disk label. Several fields were incorrectly mentioned and others wrongly sized. 2) Properly set the version, sane, and num_partitions fields. Because we weren't doing this, programs such as Solaris's format and the Solaris kernel itself refused to recognize our disk labels as valid. 3) Move SSWAP*() macros into fdisksunlabel.c as there is no reason for them to be exposed to the rest of fdisk. 4) Kill the sun_predefined_drives array hack and assosciated code. Instead size the disk and figure out the geometry properly just like the SGI and MSDOS partition handling do, by means of the HD_GETGEO ioctl() and disksize(). 5) If the disk label read is found to not have the proper values set in version, sane, or num_partitions, fix them, recompute the label checksum, dirty the disk label, and let the user know what we did and that the fixed values will be written out if they 'w'. This gives users an easy way to fix up disk labels created by disk labelling programs which had this bug. 6) Create a sun_sys_getid() function so that fdisk.c does not need to reference the sun disk label details directly, just like the SGI code does. Signed-off-by: David S. Miller <davem@davemloft.net>
* build-sys: cleanup architecture conditionalsKarel Zak2007-07-021-4/+4
| | | | | | | This patch also add some new architectures for AM_CONDITIONAL(ARCH_ ...) Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add MAC label detectionKarel Zak2007-06-275-8/+148
| | | | | | This patch is based on the old Suse util-linux-2.11q-fs_mac.diff patch. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: move duplicate stuff from fdisk*label.h to fdisk.hKarel Zak2007-06-275-35/+34Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: setting default geometry valuesLuciano Chavez2007-06-261-2/+2
| | | | | | | | | | | The cfdisk and fdisk set defaults for heads and sectors in order to handle a situation when the get_geometry() ends up with zeroes for the disk geometry for device-mapper devices. This patch add same functionally to sfdisk. You know that a dmsetup setgeometry of the the dm device can be used to circumvent the issue but users may not immediately realize they need to do that.
* fdisk: add GPT detection codeKarel Zak2007-06-058-2/+369
| | | | | | | | | The GPT (GUID Partition Table) is unsupported by fdisk, sfdisk and cfdisk. Unfortunately, the fdisk doesn't complain about GPT.. that's dangerous, because user is able to blindly edit PT with unexpected results. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: Makefile.am refactoringKarel Zak2007-05-311-10/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: cleanup full disk detection codeKarel Zak2007-05-314-34/+39
| | | | | | | The full disk (e.g. /dev/hda) detection code is duplicated on two places and the code doesn't work correctly with devices which don't support HDIO_GETGEO. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix "type qualifiers ignored on function return type"Karel Zak2007-05-312-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use unsigned long long instead int for sectorsKarel Zak2007-05-317-49/+52
| | | | | | The patch is originally based on an old Suse patch. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: do not use wildcards in EXTRA_DISTStepan Kasal2007-05-161-1/+1
| | | | | | | Wildcards in EXTRA_DIST break "make dist" for vpath build. But plain directory names are ok. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* cfdisk: build-sys defines HAVE_RPMATCH, not HAVE_rpmatchKarel Zak2007-03-061-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix README filenames and add missing files to EXTRA_DISTsKarel Zak2007-02-081-2/+3
| | | | | | Also, the patch makes "make mrproper" more robust. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add missing filesKarel Zak2007-01-041-4/+8
| | | | | | | This patch add all missing headers, man pages and README files to automake stuff and "make dist-gzip" produces useful tarball now. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove generated autotools stuff from gitKarel Zak2007-01-031-596/+0Star
| | | | | | | The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre6 tarball.Karel Zak2006-12-079-171/+31Star
|
* Imported from util-linux-2.13-pre4 tarball.Karel Zak2006-12-072-36/+51
|
* Imported from util-linux-2.13-pre3 tarball.Karel Zak2006-12-072-3/+3
|
* Imported from util-linux-2.13-pre2 tarball.Karel Zak2006-12-074-85/+25Star
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-0712-5019/+707Star
|
* Imported from util-linux-2.12r-pre1 tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.12q-pre2 tarball.Karel Zak2006-12-071-0/+1
|
* Imported from util-linux-2.12q-pre1 tarball.Karel Zak2006-12-072-4/+50
|
* Imported from util-linux-2.12p tarball.Karel Zak2006-12-072-15/+30
|
* Imported from util-linux-2.12m tarball.Karel Zak2006-12-073-12/+68
|
* Imported from util-linux-2.12l tarball.Karel Zak2006-12-075-11/+19
|
* Imported from util-linux-2.12k tarball.Karel Zak2006-12-073-3/+7
|
* Imported from util-linux-2.12j tarball.Karel Zak2006-12-074-5/+33
|
* Imported from util-linux-2.12i tarball.Karel Zak2006-12-073-18/+47
|
* Imported from util-linux-2.12h tarball.Karel Zak2006-12-072-49/+81
|
* Imported from util-linux-2.12d tarball.Karel Zak2006-12-077-59/+88
|
* Imported from util-linux-2.12b tarball.Karel Zak2006-12-075-108/+138
|
* Imported from util-linux-2.12a tarball.Karel Zak2006-12-074-44/+36Star
|