summaryrefslogtreecommitdiffstats
path: root/fdisk/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* fdisk: use canonicalized names for -l (and sfdisk -d)Karel Zak2010-12-171-2/+4
| | | | | | | .. no more /dev/dm-X in "fdisk -l" and "sfdisk -d" output, always use /dev/mapper/<name>. Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: fix --with-slangKarel Zak2010-07-011-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: replace ../ with $top_srcdirKarel Zak2010-05-241-3/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: support non-ascii characters in inputKarel Zak2010-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | On Sat, Apr 03, 2010 at 12:58:48PM +0000, Jorge wrote: > When you want to write changes to disk you're asked for a > confirmation, like this one: > > Are you sure you want to write the partition table to disk? (yes > or no) > > There is no problem on the English version, but when you launch the > program in Spanish you get this: > > ¿Está seguro de que desea escribir la tabla de particiones en el > disco? > (sí o no): > > You can't type the "í" character. Trying to do so will end in no > input at all. That is, typing in my keyboard "´" then "i" leads to > nothing. So you can't write changes to disk, and you must launch the > program in English for it to operate. Reported-by: Jorge <yo@jorgesuarezdelis.name> Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/205327 Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: correctly truncate and align translated partition namesPádraig Brady2010-03-161-1/+1
| | | | | | | | | | | * fdisk/Makefile.am: Depend on the mbsalign module. * fdisk/fdisk.c: Align using mbsalign rather than printf. [kzak@redhat.com: - use size_t for width to fix gcc warning] Reported-by: Makoto Kato <m_kato@ga2.so-net.ne.jp> Signed-off-by: Pádraig Brady <P@draigBrady.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: use libblkidMatthias König2010-01-221-11/+12
| | | | | | | | | | | | | Let cfdisk use the internal libblkid if available to get the filesystem type and label. [kzak@redhat.com: - remove old FS probing code from cfdisk - remove "Linux" prefix for filesystem names - enlarge fstype field in partition_info - restrict probing area by partition size] Signed-off-by: Matthias König <mk@phasorlab.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix blkid CFLAGS in fdisk/Makefile.amKarel Zak2009-11-201-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: read topology info from libblkidKarel Zak2009-11-181-0/+15
| | | | | | | | | | | | | | | | | | | | | | and print ('p' command) info about logical and physical sectors and alignment_offset. minimum_io_size we don't use physical sector size directly, because on RAIDs is better to use minimum_io_size (aka stripe chunk size). For disk drives is minimum_io_size the same value as physical sector size. alignment_offset For compatibility with legacy operating systems some vendors provide disks where logical and physical sectors are aligned at sector 63 (= geometry.sectors). In other words the physical 4KB sectors start at LBA -1. Then the physical boundary is at: alignment_offset + N * phy_sector_size Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove LT_STATIC_LDFLAGSKarel Zak2009-11-051-2/+2
| | | | | | It was really stupid idea to use *_LDFLAGS for some global variable. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup static buildingKarel Zak2009-11-051-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add is_whole_disk() from fdisk codeKarel Zak2009-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: don't use get_linux_version() for non-linuxSamuel Thibault2008-07-241-1/+5
| | | | | | | | | | The get_linux_version() function is Linux-specific. Work around it in a few places. [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>
* build-sys: use ncursesw (wide version) when possibeKarel Zak2008-03-201-1/+1
| | | | | | | | | | Detect ncursesw and use it in place of ncurses when possible (default). Allow people to use classic (non-wide) version by --with-ncurses or disable all ncurses/ncursesw support by --without-ncurses. Co-Author: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --enable-static-programsStepan Kasal2008-02-181-0/+12
| | | | | | | | Add support for static versions of mount, umount, losetup, fdisk, and sfdisk. Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: use dist_man_MANS instead of man_MANSStepan Kasal2007-12-171-4/+4
| | | | Signed-off-by: Stepan Kasal <skasal@redhat.com>
* fdisk: cleanup BLK* ioctls usageKarel Zak2007-11-071-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* 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-271-2/+2
| | | | | | 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: add GPT detection codeKarel Zak2007-06-051-1/+1
| | | | | | | | | 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>
* 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>
* 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>
* Imported from util-linux-2.13-pre6 tarball.Karel Zak2006-12-071-3/+3
|
* Imported from util-linux-2.13-pre4 tarball.Karel Zak2006-12-071-1/+5
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-0/+28