summaryrefslogtreecommitdiff
path: root/disk-utils
AgeCommit message (Collapse)AuthorFilesLines
2014-02-16Some utils are linux onlyIgor Pashev1-1/+6
2014-02-10fix mkfs --verbose and man pagePhillip Susi2-6/+2
mkfs did not actually accept the long form --verbose option. Also the man page seemed to indicate that version/verbose/help options were passed to the filesystem specific utility when this is not the case. Signed-off-by: Phillip Susi <psusi@ubuntu.com>
2014-02-06fsck: don't return error if fsck.<type> does not existKarel Zak1-32/+42
The error message is expected for "really wanted" set of filesystems (extN, ..), otherwise it does not make sense for filesystems like btrfs or xfs. Reported-by: Tom Gundersen <teg@jklm.no> Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-17mkswap: fix compiler warning [-Wunused-variable]Karel Zak1-1/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-15partx: use blkid_partlist_get_partition_by_partno()Karel Zak1-32/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-14partx: fix --update ranges and out of order tablesScott Moser1-25/+50
partx --update DEVICE NUMBER was broken in 2 cases: * if NUMBER != 1 * if the partition table was "out of order". Ie, where sda2 came after sda3. References: https://bugs.launchpad.net/ubuntu/+source/cloud-utils/+bug/1244662 Signed-off-by: Scott Moser <smoser@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-19fsck: add ext4 to list of filesystems with progress bars in fsck man pagePhillip Susi1-1/+1
Signed-off-by: Phillip Susi <psusi@ubuntu.com>
2013-11-18mkfs.minix: fix fscanf() format string [coverity scan]Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-14mkswap: remove cruft from the man pagePhillip Susi1-9/+1
I don't think there's any reason to continue to mention behavior of kernels older than 10 years. Signed-off-by: Phillip Susi <psusi@ubuntu.com>
2013-11-04blockdev: don't use HDIO_GETGEOPhillip Susi1-5/+15
blockdev was still using this depreciated ioctl and that was causing blockdev --report to fail on loop and nbd devices. Switch to reading the partition start from sysfs instead. This also allows it to correctly report > 2^32 sector counts. [kzak@redhat.com: - check sysfs_init() return, - use uint64_t rather than unsigned long long] Signed-off-by: Phillip Susi <psusi@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-18fsck.cramfs: add LC_CTYPEKarel Zak1-0/+1
Maybe it would be possible to use LC_ALL, but it requires to review the code to check if there is no any sensitive code. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-18raw: use LC_ALLKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-15docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg6-7/+7
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-10-14textual: equalize four error messages with already existing onesBenno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-10-11blockdev: add note about --setbsz usabilityKarel Zak2-2/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-11Revert "blockdev: Remove the --setbsz (set blocksize) option which has never ↵Karel Zak2-0/+9
worked." This reverts commit b1555acc2f709ac4f3b1e6c686a11cadb7b04f72. It seems that the option is used by kernel guys to test kernel, so let's keep the option in the blockdev(8) although it's almost useless in userspace. All we need is to improve docs to make things more obvious to end users. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-09textual: standardize some "cannot read" and "seek failed" error messagesBenno Schulenberg2-8/+8
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-10-08blockdev: Remove the --setbsz (set blocksize) option which has never worked.Richard W.M. Jones2-9/+0
This option has never worked. If you try setting the block size on a block device, and then read it using --getbsz, you will see that the block size never changes. The reason for this is because the block size is specific to the current file descriptor opening the block device, so the change of block size only persists for as long as blockdev has the device open, and is lost once blockdev exits. Also the block size is not really used anywhere. Filesystems, for example, have their own idea of block size and ignore this setting completely. (Thanks Masayoshi Mizuma for diagnosing the problem) Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2013-10-08partx: correct three messagesBenno Schulenberg1-4/+4
Properly describing the partition type, using a verb instead of a noun, putting the blank line after the command options, and using the correct argument for --output. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-10-08partx: pluralize one messageBenno Schulenberg1-1/+3
Reported-by: Petr Písař <petr.pisar@atlas.cz> Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-10-08mkfs.minix: properly pluralize four messagesBenno Schulenberg1-10/+6
Reported-by: Petr Písař <petr.pisar@atlas.cz> Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-10-01fsck: don't print warning if there is no /etc/fstab at allKarel Zak1-4/+8
Reported-by: Thomas Bächler <thomas@archlinux.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16partx: use TT_FL_FREEDATA for tt tableKarel Zak1-15/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-21misc: use libmnt_table reference counterKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-21misc: use libmnt_cache reference countingKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-21fsck: use libmount fs reference counterKarel Zak1-4/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-13build-sys: remove deprecated elvtune commandKarel Zak3-249/+0
The command is deprecated for years and useless with 2.6.x kernels. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-01mkswap: add note about swap header limit to the man pageKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-07-09mkfs.cramfs: argument to free() is a constant address [clang-analyzer]Sami Kerola1-1/+0
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-06-13mkfs.bfs: fix 64-Bit and endian problemsihno1-33/+37
[kzak@redhat.com: - use cpu_to_leXX() macros rather than htoleXX()] Signed-off-by: Karel Zak <kzak@redhat.com>
2013-06-07textual: improve clarity of some error messagesBenno Schulenberg2-4/+4
Reported-by: Petr Písař <petr.pisar@atlas.cz> Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-05-14mkfs.cramfs: use standard error messageKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-13standard SEE ALSO section of man pagesMike Frysinger1-1/+1
The standard format is to seperate each entry with a comma, and for each one to be on a line by itself. Most util-linux pages follow this, but a few do not. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-04-26swaplabel: check writing to a file descriptor was successfulSami Kerola1-1/+4
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26mkswap: unify write check to a file descriptorSami Kerola1-9/+7
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26mkfs.minix: check writing to a file descriptor was successfulSami Kerola1-1/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26mkfs.cramfs: unify write check to a file descriptorSami Kerola1-3/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26mkfs.bfs: check writing to a file descriptor was successfulSami Kerola1-1/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26fsck.minix: check writing to a file descriptor was successfulSami Kerola1-0/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26fsck.cramfs: check writing to a file descriptor was successfulSami Kerola1-1/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26resizepart: check writing to a file descriptor was successfulSami Kerola1-0/+5
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26partx: check writing to a file descriptor was successfulSami Kerola1-1/+3
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26fdformat: check writing to a file descriptor was successfulSami Kerola1-1/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-10build-sys: add --disable-fdformatKarel Zak1-6/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-10build-sys: add --disable-bfsKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-09docs: add fsck.cramfs manual pageSami Kerola2-0/+58
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-09docs: add mkfs.cramfs manual pageSami Kerola2-0/+91
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-09docs: remove repeated words [checkmans.sh]Sami Kerola1-1/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-09various: fix variable and function declarations [smatch scan]Sami Kerola1-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>
2013-04-05partx: remove deprecated option from usage()Sami Kerola1-1/+0
The fact that -l, --list is deprecated will remain in manual page till unforeseeable future. Meanwhile the usage() can be made shorter. Signed-off-by: Sami Kerola <kerolasa@iki.fi>