summaryrefslogtreecommitdiffstats
path: root/disk-utils/Makemodule.am
Commit message (Collapse)AuthorAgeFilesLines
* partx: move partx.h to include/Karel Zak2017-07-141-12/+4Star
| | | | | | Let's make the ioctls usable also for libfdisk. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove obsolete [cs]fdisk LDADDsKarel Zak2016-05-041-25/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: always add AM_CFLAGSRuediger Meier2016-02-231-2/+2
| | | | | | | | We were missing our nice compliler warnings for many programs and libs. See next commits how many trivial and non-trival warnings have to be fixed. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add way to control mkfs.minix time stampsSami Kerola2015-08-031-0/+5
| | | | | | | Needed in order to create reproducable file systems image files, so that out come of mkfs.minix can be checksum'ed. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cfdisk: provide extra partinfo with "x"Ondrej Oprala2015-03-271-10/+13
| | | | | | | | | | | | | | | | | | | | | The new 'extra' info provides: * filesystem information from libblkid (TYPE, UUID, LABEL) This feature is based on libblkid ability to probe specified area on the device. It allows to probe for filesystems although the partition devices (e.g. /dev/sda2) does not exist. For example from disk image: # cfdisk /home/archive/fs-images/disk.img * additional information from libfdisk (partition UUID, Name, ...) * mount information from libmount (from fstab or mountinfo) Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com> Co-Author: Karel Zak <kzak@redhat.com>
* build-sys: fix READLINE_LIBS_STATIC usage for fdiskKarel Zak2015-03-261-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: support static build with readlineKarel Zak2015-03-251-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add readline supportKarel Zak2015-03-251-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add GNU Readline support to fdiskKarel Zak2015-03-251-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup realtime lib usageKarel Zak2015-03-061-1/+1
| | | | | | | | * check for timer_create() * define dependence on timer_create() for flock * rename CLOCKGETTIME_LIBS to REALTIME_LIBS Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: use libtinfo to check terminal capabilityKarel Zak2015-02-271-3/+3
| | | | | | | | | | | | | | | The current implementation assumes that all terminals supports colors and users are forcet to use terminal-colors.d/ to disable colors for some terminals. This patch checks for maximal supported colors for the current terminal and colors are automatically disabled for terminals like vt100. The patch moves lib/colors.c from libcommon.la to libtcolors.la to avoid collisions with another utils. Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck: use monotonic time to fsck run time measurementSami Kerola2015-02-101-2/+2
| | | | | | | | Earlier use of gettimeofday() resulted to wrong measurement if system administrator did manual time changes, or NTP or adjtime(3) adjusment happen during fsck run. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: add sfdisk.staticKarel Zak2015-01-131-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: implement --listKarel Zak2014-10-071-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: move --list functionality to separated fileKarel Zak2014-10-071-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: basic main() and friendsKarel Zak2014-10-071-6/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: split swapon-common.cKarel Zak2014-09-221-3/+6
| | | | | | | | | | | swapon - requires libmount and libblkid swapoff - requires libmount swaplabel - requires libblkid This patch add lib/swapprober.c with blkid stuff for swap. It allows to use and link libblkid only when necessary. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove dependence on libsmartcolsKarel Zak2014-08-131-0/+5
| | | | | | It's application business to convert libfdisk_table to string. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdformat: Add new switches -f/--from, -t/--to, -r/--repairJaromir Capik2014-07-291-0/+1
| | | | | | | | | This commit introduces a support for user configurable from/to track and a basic repair mode for broken floppies. It also fixes a recently introduced bug that causes a line breakage when printing the track number. Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: share get_swap_prober() with swaplabel to print uuid and labelSami Kerola2014-07-221-3/+3
| | | | | | | | | | | | The swapon(8) listing was almost complete, apart from label and uuid. This change moves the code from swaplabel(8) to shared scope to be used for printouts in other swap commands, such as swapon. Adding this feature to lsblk(8) was a consideration, but lsblk is not interested of swapfiles, so the swapon seems like a better option to add this information. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck: use private lock file rather than whole-disk directlyKarel Zak2014-06-091-1/+1
| | | | | | | | | | | It seems overkill to lock directly whole-disk device (for -l) when we use the lock only to synchronize fsck instances. It's fsck private business, so don't use system files, but let's use private /run/fsck/<diskname>.lock file. Addresses: https://bugs.freedesktop.org/show_bug.cgi?id=79576 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add BUILD_{SFDISK,BLOCKDEV,MKSWAP,IOSIZE,MKFS}Karel Zak2014-05-211-3/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-minixKarel Zak2014-05-211-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove test_fsck.cramfs (reverts 6c32ae78)Ruediger Meier2014-05-191-5/+0Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* partx: use libsmartcolsOndrej Oprala2014-04-031-2/+2
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* Use libsmartcols in libfdisk and cfdiskOndrej Oprala2014-04-031-0/+5
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* build-sys: ove fdisks to disk-utilsKarel Zak2014-03-111-0/+73
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove deprecated elvtune commandKarel Zak2013-08-131-8/+0Star
| | | | | | The command is deprecated for years and useless with 2.6.x kernels. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-fdformatKarel Zak2013-04-101-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-bfsKarel Zak2013-04-101-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add fsck.cramfs manual pageSami Kerola2013-04-091-0/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: add mkfs.cramfs manual pageSami Kerola2013-04-091-0/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lib/ismounted: basic support for loop devicesKarel Zak2012-12-191-2/+1Star
| | | | | | | | | | | | | | | | | | | | | | # losetup -a /dev/loop0 /dev/loop0: [2053]:1048578 (/home/fs-images/filesystems/ext2.img) # findmnt /dev/loop0 TARGET SOURCE FSTYPE OPTIONS /mnt/test /dev/loop0 ext3 rw,relatime,data=ordered old version: ./test_ismounted /home/fs-images/filesystems/ext2.img not mounted new version: ./test_ismounted /home/fs-images/filesystems/ext2.img mounted on /mnt/test Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.cramfs: compile with -DINCLUDE_FS_TESTS for make checkKarel Zak2012-10-221-0/+5
| | | | | | | | | make check sudo su - cd tests ./run.sh cramfs Signed-off-by: Karel Zak <kzak@redhat.com>
* resizepart: add new commandKarel Zak2012-08-131-2/+7
| | | | | | | This is a simple wrapper for BLKPG_RESIZE_PARTITION (since kernel 3.6). Co-Author: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: always use default $(LDADD)Karel Zak2012-07-091-14/+14
| | | | | | | | The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix swaplabelKarel Zak2012-06-261-1/+1
| | | | | Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-52/+26Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move partx to disk-utils/Karel Zak2012-06-261-0/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert disk-utils/ to moduleKarel Zak2012-06-261-0/+128
Signed-off-by: Karel Zak <kzak@redhat.com>