]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Andreas Henriksson [Tue, 14 Oct 2014 10:07:21 +0000 (12:07 +0200)]
script: may be hangs
Signed-off-by: Karel Zak <kzak@redhat.com>
Raphael S. Carvalho [Thu, 9 Oct 2014 00:46:07 +0000 (21:46 -0300)]
blkdiscard: fix underflow when offset is greater than device size
If offset (range[0]) is greater than device size (blksize), the variable 'end'
will be greater than blksize, and range[1] (length) will be recalculated.
The underflow happens when subtracting range[0] (offset) from blksize, thus
range[1] will be the result of an underflow. The bug leads to unwanted behavior
from the program, where range[1] is likely to be a high number and then will
discard a considerable amount of blocks from the device. The fix consists of
exitting the program with an error message when the condition stated above is
true. Spotted while auditing the code.
Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
Helmut Grohne [Tue, 7 Oct 2014 21:07:19 +0000 (23:07 +0200)]
build-sys: check for libtoolize rather than libtool
The system libtool program has architecture dependent behaviour. It is
therefore unavailable in cross build environments. The only place it was
used in util-linux is autogen.sh to determine the availability of
libtool. All other places correctly use libtoolize or
$(top_builddir)/libtool.
Signed-off-by: Helmut Grohne <helmut@subdivi.de>
Benno Schulenberg [Wed, 1 Oct 2014 19:35:17 +0000 (21:35 +0200)]
textual: grammarize an informative message, and tweak some comments
Also add two clarifying comments for translators.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Søren Holm [Wed, 1 Oct 2014 14:14:02 +0000 (16:14 +0200)]
libmount: provide version as int for better compiletime test
Signed-off-by: Søren Holm <sgh@sgh.dk>
Karel Zak [Tue, 14 Oct 2014 08:20:19 +0000 (10:20 +0200)]
dmesg: improve reltime colors
[ +0.004034] sd 113:0:0:0: [sdb] Attached SCSI disk
[Oct10 13:04] sdb: unknown partition table
[ +0.034011] sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 >
.. the "Oct10 13:04" is possible to colorize by "timebreak"
scheme (default is bold green).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 13 Oct 2014 11:30:28 +0000 (13:30 +0200)]
tests: add PMBR sfdisk test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 10 Oct 2014 10:56:45 +0000 (12:56 +0200)]
tests: add sfdisk GPT tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 10 Oct 2014 10:53:12 +0000 (12:53 +0200)]
libfdisk: fix script next_token()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 10 Oct 2014 10:52:24 +0000 (12:52 +0200)]
sfdisk: leave on error
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 10 Oct 2014 10:24:10 +0000 (12:24 +0200)]
libfdisk: make script header parser more pedantic
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 12:08:59 +0000 (14:08 +0200)]
tests: test cazy sizes for sfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 12:03:45 +0000 (14:03 +0200)]
libfdisk: (dos) reset logical partition stuff after error
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 11:21:04 +0000 (13:21 +0200)]
tests: update sfdisk tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 11:03:52 +0000 (13:03 +0200)]
libfdisk: cleanup script dump
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 10:23:59 +0000 (12:23 +0200)]
sfdisk: ask on EOF
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 10:10:36 +0000 (12:10 +0200)]
libfdisk: (dos) follow explicit sizes
* this patch add to dos driver support for fdisk_partition->size_explicit
to avoid unexpected last sector alignment for sizes explicitly specified
in sectors
* add support for small "first LBA", the current default is to use
1MiB offset for the first partition and for each EBR. This is not
backwardly compatible and it makes impossible to apply sfdisk
scripts/dumps from old systems, because original offset can be
smaller than 2048 sectors (old sfdisk default is 1 sector).
The solution is on the fly to detect this situation and change
fdisk_context->first_lba to 1 sector. Nasty.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 10:10:09 +0000 (12:10 +0200)]
libfdisk: (gpt) follow explicit size, fiz size+1 buf
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 10:09:07 +0000 (12:09 +0200)]
libfdisk: follow explicitly specified partition size
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 10:06:52 +0000 (12:06 +0200)]
libfdisk: add functions to play nasty games with first/last LBA
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 10:03:32 +0000 (12:03 +0200)]
fdisk: reset cached output fields when change disk label
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Oct 2014 10:02:17 +0000 (12:02 +0200)]
libfdisk: allow to specify partition size by explicit number of sectors
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 8 Oct 2014 11:11:59 +0000 (13:11 +0200)]
libfdisk: use skip_blank() in scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 8 Oct 2014 11:00:56 +0000 (13:00 +0200)]
sfdisk: cleanup isatty() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 8 Oct 2014 11:00:19 +0000 (13:00 +0200)]
libfdisk: (dos) don't inform about logical partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 8 Oct 2014 10:59:50 +0000 (12:59 +0200)]
libfdisk: consolidate script parser code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 7 Oct 2014 13:33:18 +0000 (15:33 +0200)]
libfdisk: fix script parser
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 7 Oct 2014 13:32:09 +0000 (15:32 +0200)]
libfdisk: (dos) fix booable flag usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 6 Oct 2014 12:53:25 +0000 (14:53 +0200)]
sfdisk: add --label-nested for hybrid GPT
regular disk label:
# sfdisk --list /dev/sdb
..
Disklabel type: gpt
Disk identifier:
9DF9A9F1 -0654-4E7A-9A5E-
36E66D60FD79
Device Start End Sectors Size Type
/dev/sdb1 2048 22527 20480 10M Linux filesystem
/dev/sdb2 22528 43007 20480 10M Linux swap
/dev/sdb3 43008 204766 161759 79M Linux filesystem
nested (PMBR):
# sfdisk --list --label-nested dos /dev/sdb
...
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdb1 1 204799 204799 100M ee GPT
and for example:
# sfdisk --label-nested dos /dev/sdb <<EOF
1, 2047, ee
, 10M, L
, 10M, S
,,
creates hybrid GPT (PMBR partitions point to the same location as GPT)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 6 Oct 2014 11:32:43 +0000 (13:32 +0200)]
libfdisk: propagate assign-device operation to parent
Let's make it possible to use fdisk_assign_device() for nested
contexts.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Oct 2014 12:47:05 +0000 (14:47 +0200)]
libfdisk: fix sun and sgi to be usable from sfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Oct 2014 10:42:54 +0000 (12:42 +0200)]
fdisk: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Oct 2014 10:40:19 +0000 (12:40 +0200)]
sfdisk: add --output <list> for print command(s)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Oct 2014 10:40:04 +0000 (12:40 +0200)]
fdisk: add --output <list> for print command(s)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Oct 2014 10:12:23 +0000 (12:12 +0200)]
libfdisk: add fdisk_label_get_field_by_name() and const for labels
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Oct 2014 10:11:31 +0000 (12:11 +0200)]
libfdisk: (gpt) remove 'Cylinders'
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Oct 2014 13:49:24 +0000 (15:49 +0200)]
sfdisk: add --part-attrs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Oct 2014 13:49:05 +0000 (15:49 +0200)]
libfdisk: (gpt) parse attr bits
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Oct 2014 13:48:04 +0000 (15:48 +0200)]
build-sys: add hint about 'make'
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Oct 2014 12:44:49 +0000 (14:44 +0200)]
libfdisk: (dos) use script label-id
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Oct 2014 11:43:52 +0000 (13:43 +0200)]
sfdisk: cleanup option names
Rename options to --part-{label,uuid,type} to be compatible with
another tools (like lsblk, parts, etc).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Oct 2014 11:22:56 +0000 (13:22 +0200)]
sfdisk: add --name
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Oct 2014 11:00:35 +0000 (13:00 +0200)]
sfdisk: add --uuid command
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Oct 2014 10:18:31 +0000 (12:18 +0200)]
sfdisk: more update to the man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Sep 2014 13:14:44 +0000 (15:14 +0200)]
sfdisk: update man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Sep 2014 10:28:01 +0000 (12:28 +0200)]
sfdisk: add --append
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Sep 2014 09:39:02 +0000 (11:39 +0200)]
sfdisk: be sensitive to PT limits
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Sep 2014 09:31:07 +0000 (11:31 +0200)]
sfdisk: add --backup and --backup-file
The option --backup force sfdisk to store *all* fragments of the
partition table (including MBR partition tables store in the
extended partitions) to
$HOME/sfdisk-<devname>-<offset>.bak
The options -O, -backup-file <path> allows to override the default
path, but sfdisk still appends <devname>-<offset>.bak to the <path>.
The backup files always contain only raw data from the device, so it's
possible to use dd(1) to restore original data on the device.
The original sfdisk also supported -O <file>, but semantic was little
bit different:
- all was based on 512-byte sectors
- all sectors was stored to the one file in format
<offset>|<sector>|<offset>|...
this original concept makes the backup files specific to sfdisk and with
dependence on sector size.
The new concept is the same we already use for wipefs(8) backup files.
Example (disk with GPT):
# sfdisk /dev/sda --backup
Welcome to sfdisk (util-linux 2.25.202-f4deb-dirty).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Backup files:
PMBR (offset 0, size 512): /root/sfdisk-sda-0x00000000.bak
GPT Header (offset 512, size 512): /root/sfdisk-sda-0x00000200.bak
GPT Entries (offset 1024, size 16384): /root/sfdisk-sda-0x00000400.bak
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Sep 2014 08:30:14 +0000 (10:30 +0200)]
sfdisk: add --no-reread and --force
and also check if the device is in use.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Sep 2014 10:31:52 +0000 (12:31 +0200)]
sfdisk: add --no-act
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Sep 2014 09:56:49 +0000 (11:56 +0200)]
sfdisk: add deprecated --Linux
The sfdisk does not care about compatibility with classic DOS
partitioning, and it does not warn about incompatibility with DOS at
all. It means that --Linux is default and it's unnecessary to use
this option.
It's the same situation like with "--unit S", these options are very
probably often used in scripts, and these all is default now. So for
backward compatibility new sfdisk accepts these options on command
line, but prints "option is deprecated" warning message.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Sep 2014 08:43:19 +0000 (10:43 +0200)]
sfdisk: add --quiet
Note that original sfdisk implementation suppressed warning
messages for --quiet.
Now we keep warning and error messages visible, but suppress
extra info messages only (for example to make it more usable in
scripts). IMHO suppress warnings is bad idea.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Sep 2014 08:21:35 +0000 (10:21 +0200)]
sfdisk: add --unit and --show-geometry, update deprecated.txt
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Sep 2014 13:25:02 +0000 (15:25 +0200)]
libfdisk: remove old label drives' API for parttypes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Sep 2014 11:53:16 +0000 (13:53 +0200)]
libfdisk: (sgi) add set_part() API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Sep 2014 11:43:14 +0000 (13:43 +0200)]
libfdisk: (bsd) add set_part() API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Sep 2014 11:14:01 +0000 (13:14 +0200)]
libfdisk: use new set_part API in fdisk_set_partition_type()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Sep 2014 11:10:14 +0000 (13:10 +0200)]
libfdisk: (gpt) check string_to_guid()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Sep 2014 10:56:39 +0000 (12:56 +0200)]
sfdisk: cleanup sync() usage, fix --activate
* use sync() only if we change disk layout
* don't use sync() when we change details (like partition type)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Sep 2014 10:54:05 +0000 (12:54 +0200)]
linfdisk: cleanup fsync usage
* always use fsync() if the device open read-write
* use sync() on demand
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Sep 2014 10:24:33 +0000 (12:24 +0200)]
sfdisk: use fdisk_set_partition_type()
This is more simple than the generic fdisk_set_partition() API.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Sep 2014 11:02:04 +0000 (13:02 +0200)]
sfdisk: cleanup usage() and long options
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Sep 2014 10:37:52 +0000 (12:37 +0200)]
sfdisk: add --parttype
The patch also makes --{id,change-id,print-id} deprecated in favour
of --parttype. The original --id is too generic option name and the
--print-id and --change-id are unnecessary and inconsistent with
another sfdisk options (e.g. we don't have --change-bootable)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 13:28:15 +0000 (15:28 +0200)]
sfdisk: add --verify
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 12:41:46 +0000 (14:41 +0200)]
sfdisk: add --list-types
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 12:23:50 +0000 (14:23 +0200)]
sfdisk: add missing stuff to usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 12:13:57 +0000 (14:13 +0200)]
sfdisk: make dump format usable on stdin
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 11:53:35 +0000 (13:53 +0200)]
libfdisk: (gpt) use generic API to change UUID and name
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 11:34:15 +0000 (13:34 +0200)]
libfdisk: (gpt) implement fdisk_set_partition() backend
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 10:52:49 +0000 (12:52 +0200)]
libfdisk: (dos) implement fdisk_set_partition() backend
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 10:48:56 +0000 (12:48 +0200)]
libfdisk: add fdisk_set_partition()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Sep 2014 09:48:06 +0000 (11:48 +0200)]
libfdisk: cleanup internal drivers' API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Sep 2014 12:31:28 +0000 (14:31 +0200)]
sfdisk: support -N for primary partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Sep 2014 12:31:08 +0000 (14:31 +0200)]
libfdisk: add fdisk_copy_parttype()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Sep 2014 11:18:15 +0000 (13:18 +0200)]
sfdisk: require confirmation before write to the device
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Sep 2014 10:51:25 +0000 (12:51 +0200)]
libfdisk: make yes/no dialogs more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 9 Sep 2014 13:51:19 +0000 (15:51 +0200)]
sfdisk: improve UI
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 9 Sep 2014 11:36:16 +0000 (13:36 +0200)]
libfdisk: cleanup script size= code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 9 Sep 2014 11:04:57 +0000 (13:04 +0200)]
libfdisk: return partno when add new partition
* improve the way how sfdisk report results
* the API change simplify applications
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 8 Sep 2014 14:17:11 +0000 (16:17 +0200)]
sfdisk: implement command_fdisk()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 8 Sep 2014 14:16:31 +0000 (16:16 +0200)]
libfdisk: fix script partitions size parsing
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 8 Sep 2014 14:13:42 +0000 (16:13 +0200)]
libfdisk: (dos) more carefully check for primary partitions
* check if there is space for primary partitions, if no and extended
exists then create logical partitions
* create extended if @pa->type is extended partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Sep 2014 12:11:12 +0000 (14:11 +0200)]
sfdisk: cleanup comments and command_activate()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Sep 2014 11:05:49 +0000 (13:05 +0200)]
sfdisk: add --activate
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Sep 2014 11:05:34 +0000 (13:05 +0200)]
libfdisk: add fdisk_partition_is_bootable()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Sep 2014 09:21:21 +0000 (11:21 +0200)]
sfdisk: add comments, remove unnecessary function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Sep 2014 09:11:38 +0000 (11:11 +0200)]
sfdisk: add --show-size
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Sep 2014 08:35:29 +0000 (10:35 +0200)]
fdisk: refactor /proc/partitions usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Sep 2014 13:54:59 +0000 (15:54 +0200)]
sfdisk: update usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Sep 2014 13:50:36 +0000 (15:50 +0200)]
sfdisk: add --dump functionality
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Sep 2014 12:16:08 +0000 (14:16 +0200)]
sfdisk: --list just one device
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Sep 2014 12:05:16 +0000 (14:05 +0200)]
sfdisk: implement --list
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Sep 2014 12:04:50 +0000 (14:04 +0200)]
fdisk: improve --list output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Sep 2014 10:07:44 +0000 (12:07 +0200)]
fdisk: move --list functionality to separated file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 2 Sep 2014 16:57:27 +0000 (18:57 +0200)]
sfdisk: basic main() and friends
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 7 Oct 2014 12:54:58 +0000 (14:54 +0200)]
tests: add sfdisk test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 7 Oct 2014 11:41:40 +0000 (13:41 +0200)]
libmount: fix mnt_is_readonly() #ifdef
This issue affects util-linux portability to GNU/HURD
Reported-by: Pino Toscano (from Red Hat)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 7 Oct 2014 10:44:34 +0000 (12:44 +0200)]
libblkid: zeroize errno on blkid_probe_get_buffer() success
Since
37f4060225df0591ab8e1dd676dbc8115d900d4f prober functions are
sensitive to errno, it seems more robust to set errno=0 with in
blkid_probe_get_buffer() on success than set the zero on all places
where we call blkid_probe_get_buffer().
Addresses: https://github.com/karelzak/util-linux/issues/119
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 7 Oct 2014 10:12:39 +0000 (12:12 +0200)]
flock: zero timeout is valid
This patch reverts Sami's "timeout cannot be zero", introduced
in commit
605325b23b36238c8f3ae165e37cab9064553cf7 .
The --timeout 0 has been originally interpreted as --nonblock. The
patch also add hint about this behavior to the man page.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=
1149974
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 7 Oct 2014 09:54:33 +0000 (11:54 +0200)]
losetup: improve man page -D docs
Signed-off-by: Karel Zak <kzak@redhat.com>