]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Petr Uzel [Thu, 17 Feb 2011 12:09:07 +0000 (13:09 +0100)]
include: [xalloc.h]: mention strdup in the file description
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 17 Feb 2011 12:09:06 +0000 (13:09 +0100)]
lscpu: use xstrdup from xalloc.h
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 17 Feb 2011 12:09:05 +0000 (13:09 +0100)]
losetup: spelling fixes
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Sami Kerola [Sat, 12 Feb 2011 20:55:53 +0000 (21:55 +0100)]
hexdump: new usage(), xalloc and err.h stuff
New usage help screen and print version switch. Also fixes to
exit codes, util linux xmalloc replaced emalloc and every error
print is using libc error function.
[kzak@redhat.com: - minor changes in formatting and coding style]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Jens Kristian Søgaard [Fri, 11 Feb 2011 21:28:03 +0000 (22:28 +0100)]
ipcs: really show all resources when -a and -i are combined
When you have more than one resource with the same id (but differing
types) combining -a and -i does not show all resources. This patch
corrects that.
Signed-off-by: Jens Kristian Søgaard <jens@mermaidconsulting.dk>
Karel Zak [Fri, 18 Feb 2011 13:36:04 +0000 (14:36 +0100)]
lsblk: fix readlink() usage
Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 Feb 2011 09:53:50 +0000 (10:53 +0100)]
Revert "libmount: do not check for EAGAIN after flock()"
Linux is not 100% POSIX compatible in this area...
strace: "flock(3, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)"
This reverts commit
78d8c28f746bcc8d4e642c39669d8e58dea8d029 .
Karel Zak [Fri, 18 Feb 2011 09:52:22 +0000 (10:52 +0100)]
Revert "libuuid: do not check for EAGAIN after flock()"
Linux is not 100% POSIX compatible in this area...
strace: "flock(3, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)"
This reverts commit
d6c8d399b93f4646a90d0180fdcc1be35235a9c7 .
Karel Zak [Thu, 17 Feb 2011 15:32:36 +0000 (16:32 +0100)]
build-sys: add uuid_generate_time_safe.3 .gitignore
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Feb 2011 15:30:52 +0000 (16:30 +0100)]
docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Feb 2011 11:00:36 +0000 (12:00 +0100)]
chsh: fix gcc link() warn_unused_result warning
setpwnam.c:176:9: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Feb 2011 10:56:51 +0000 (11:56 +0100)]
fsck: fix -C parsing
Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Feb 2011 10:26:36 +0000 (11:26 +0100)]
tests: [cpuset] call free() for range
The free() before exit() is not so important, but let's keep the
example code nice and consistent.
Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Feb 2011 10:23:24 +0000 (11:23 +0100)]
chsh: fix small memory leak
Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Feb 2011 10:16:43 +0000 (11:16 +0100)]
login: does not ignore setgid() return code for non-roots
Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Feb 2011 10:02:26 +0000 (11:02 +0100)]
fdisk: more robust whole-disk detection
In lib/wholedisk.c, i is set to 0. If fd was a -1, then at
line 18 geometry.start is used without it being initialized.
Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 16 Feb 2011 15:36:18 +0000 (16:36 +0100)]
libuuid: move __uuid function to UUIDD_PRIVATE in uuid.sym
The private functions for uuidd should not be included in the normal
versioned part or the library.
Signed-off-by: Karel Zak <kzak@redhat.com>
Petr Uzel [Mon, 14 Feb 2011 13:43:30 +0000 (14:43 +0100)]
libuuid: update manpage, mention uuid_generate_time_safe
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Mon, 14 Feb 2011 13:43:29 +0000 (14:43 +0100)]
libuuid: introduce uuid_generate_time_safe()
The problem with libuuid interface is that it is impossible to
inform the caller of uuid_generate_time() if the UUID was generated
in a safe manner (either via uuidd, or using the global clock state
counter).
This patch introduces new function,
int uuid_generate_time_safe(uuid_t out)
which can report whether the generated UUID is safe.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Mon, 14 Feb 2011 13:43:28 +0000 (14:43 +0100)]
libuuid: __uuid_generate_time(): report if clock_seq is safe
Propagate return value from get_clock() through __uuid_generate_time().
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Mon, 14 Feb 2011 13:43:27 +0000 (14:43 +0100)]
libuuid: rename uuid__generate_* to __uuid_generate_*
Having uuid_generate_time and uuid__generate_time at
the same time is confusing. These functions are exported,
but not part of the official API (used by uuidd only).
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Mon, 14 Feb 2011 13:43:26 +0000 (14:43 +0100)]
libuuid: get_clock(): report if the clock_seq is safe
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Mon, 14 Feb 2011 13:43:25 +0000 (14:43 +0100)]
libuuid: do not use invalid file descriptor
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Mon, 14 Feb 2011 13:43:24 +0000 (14:43 +0100)]
libuuid: manpage spelling fixes
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Mon, 14 Feb 2011 13:43:23 +0000 (14:43 +0100)]
libuuid: fix test in get_clock()
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Mon, 14 Feb 2011 13:43:22 +0000 (14:43 +0100)]
uuidd: fix manpage: libuuid(3) does not exist
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Benno Schulenberg [Tue, 1 Feb 2011 10:41:29 +0000 (11:41 +0100)]
partx: improve clarity of some messages, gettextize two missed ones
[kzak@redhat.com: - use <disk> rather than <device> in
error/verbose messages]
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Benno Schulenberg [Mon, 31 Jan 2011 21:35:44 +0000 (22:35 +0100)]
textual: improve the wording of some error and usage messages
[kzak@redhat.com: - cleanup lscpu(1) usage text
- use <disk> rather than <device> in partx(8)
usage text]
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Benno Schulenberg [Mon, 31 Jan 2011 10:44:42 +0000 (11:44 +0100)]
textual: fix three typos in message strings and improve consistency
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Sami Kerola [Wed, 16 Feb 2011 14:20:11 +0000 (15:20 +0100)]
fsck: use xmalloc, warn & err and new usage
All compler errors reported by -Wall -Wextra -pedantic are fixed.
The patch also makes fsck to use xalloc instead of it's own malloc.
That will make fsck to exit, which could be good thing, at sections
where it previously did not.
Almost all print outs where touched, where various printfs where
converted to warn or err messages.
Finally theres a fix to counter wrap bug that could (very unlikely)
manifest itself if an user specifies same flag exactly UINT_MAX times.
[kzak@redhat.com: - coding style
- define XALLOC_EXIT_CODE
- use verbose++ in main()]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Tue, 15 Feb 2011 08:03:28 +0000 (09:03 +0100)]
docs: favour small patches
http://www.spinics.net/lists/util-linux-ng/msg04084.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Dave Reisner [Tue, 15 Feb 2011 09:06:08 +0000 (10:06 +0100)]
lib: [strutils] avoid integer overflow on large values
This is visible on a 2TB disk via lsblk, where a large partition
incorrectly displays as 1.171798692T instead of 1.8T. This is
corrected by using a uint64_t type instead of a simple int --
consistant with the type used in lsblk.c to represent the raw size in
bytes.
[kzak@redhat.com: - add EiB support
- add size_to_human_string() to regression tests]
Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sat, 12 Feb 2011 14:02:51 +0000 (15:02 +0100)]
more: new usage output, and some trivial fixes
Usage output screen got to be completely rewrote. Aim is to
assist user to determe which switches to use without reading
manual page. The change also introduced new option to see command
version.
Determination if the executable name is `page' is now easy to see
in source, and effect of using the name is mentioned in manual
page.
Rest of the change is trivial; exit values to compiler warning
removals, magic constants to preprocessor definitions, symbolic
exit values, comment pretty printing and #endif markups.
[kzak@redhat.com: - coding style
- add __unused__ attribute to signal handlers]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
WUEBBELS, Josef \(Extern\) [Fri, 28 Jan 2011 13:15:20 +0000 (14:15 +0100)]
logger: support for logging to UDP socket / remote syslog server
It adds the ability to logger to log a message to a udp socket. The -n option
followed by the hostname of the remote host is mandatory to do this. The
optional -P option can be used to change the UDP destination port (default
514). The function udpopenlog is used to open the udp socket. After that
everything works in almost the same way like it does when logging to a UNIX
socket.
Signed-off-by: Josef Wuebbels <josef.wuebbels@mtu.de>
Fabian Groffen [Tue, 25 Jan 2011 21:44:52 +0000 (22:44 +0100)]
build-sys: provide alternatives for err, errx, warn and warnx
Solaris lacks err, errx, warn and warnx. This also means the err.h header
doesn't exist. Removed err.h include from all files, and included err.h from
c.h instead if it exists, otherwise alternatives are provided.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Fabian Groffen [Mon, 31 Jan 2011 17:58:26 +0000 (18:58 +0100)]
sfdisk: rename warn to my_warn
To avoid a conflict with the warn function from err.h, renamed warn to
my_warn, as the functionality of both is not the same.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Davidlohr Bueso [Tue, 18 Jan 2011 19:38:54 +0000 (16:38 -0300)]
mkfs.minix: general cleanups
This patch provides some minor code fixes: add/remove some macros and close the device after usage.
Also modifies usage() and changes main()'s indentation to 8-characters.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Fri, 11 Feb 2011 10:20:36 +0000 (11:20 +0100)]
docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Feb 2011 09:49:50 +0000 (10:49 +0100)]
include: [c.h]: add fallback for old libs without O_CLOEXEC
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Feb 2011 09:45:09 +0000 (10:45 +0100)]
libmount: add fallbacks for old systems without umount2() syscall
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Feb 2011 09:36:12 +0000 (10:36 +0100)]
include: [at.h]: include c.h for PATH_MAX
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Feb 2011 09:18:00 +0000 (10:18 +0100)]
libmount: replace mkostmps() with more portable mkstemp()
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Feb 2011 08:42:49 +0000 (09:42 +0100)]
build-sys: don't build lsblk on Linux without openat()
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 11 Feb 2011 08:06:27 +0000 (09:06 +0100)]
partx, lsblk: fix gettext calls
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 Feb 2011 08:37:47 +0000 (09:37 +0100)]
build-sys: release++ (v2.19)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 Feb 2011 08:27:06 +0000 (09:27 +0100)]
docs: update v2.19 ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 Feb 2011 08:20:02 +0000 (09:20 +0100)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 Feb 2011 08:18:11 +0000 (09:18 +0100)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Jakub Bogusz [Thu, 10 Feb 2011 08:14:50 +0000 (09:14 +0100)]
po: update pl.po (from translationproject.org)
Benno Schulenberg [Thu, 10 Feb 2011 08:14:50 +0000 (09:14 +0100)]
po: update nl.po (from translationproject.org)
David Prévot [Thu, 10 Feb 2011 08:14:50 +0000 (09:14 +0100)]
po: update fr.po (from translationproject.org)
Joe Hansen [Thu, 10 Feb 2011 08:14:50 +0000 (09:14 +0100)]
po: update da.po (from translationproject.org)
Petr Písař [Thu, 10 Feb 2011 08:14:49 +0000 (09:14 +0100)]
po: update cs.po (from translationproject.org)
Karel Zak [Wed, 9 Feb 2011 19:37:08 +0000 (20:37 +0100)]
include: [c.h]: add unused attribute to ignore_result()
unfortunately, gcc 4.6
void fn (void) {
int foo;
foo = bar ();
}
evaluates that foo is never used. The __attribute__((unused)) is
necessary...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 9 Feb 2011 14:02:41 +0000 (15:02 +0100)]
tests: fix libmount test
Signed-off-by: Karel Zak <kzak@redhat.com>
Petr Uzel [Wed, 9 Feb 2011 12:14:04 +0000 (13:14 +0100)]
libuuid: do not check for EAGAIN after flock()
As per flock() manpage, flock() does not set errno=EAGAIN.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Wed, 9 Feb 2011 12:13:49 +0000 (13:13 +0100)]
libmount: do not check for EAGAIN after flock()
As per flock() manpage, flock() does not set errno=EAGAIN.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Karel Zak [Wed, 9 Feb 2011 13:15:02 +0000 (14:15 +0100)]
mount: add rootcontext= for tmpfs on SELinux boxes
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=476964
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=676100
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 8 Feb 2011 15:35:41 +0000 (16:35 +0100)]
include: [c.h]: fix __alloc_size__ test
Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 8 Feb 2011 15:32:53 +0000 (16:32 +0100)]
libmount: more robust flock() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Petr Uzel [Mon, 7 Feb 2011 13:18:28 +0000 (14:18 +0100)]
libuuid: fix locking of clock state counter file
fcntl(2) does not work for synchronization of threads belonging
to the same process. Use flock(2) instead.
http://marc.info/?l=util-linux-ng&m=
129708412829971 &w=2
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Davidlohr Bueso [Fri, 4 Feb 2011 18:54:43 +0000 (15:54 -0300)]
schedutils: remove unneeded header files
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Benno Schulenberg [Wed, 2 Feb 2011 11:06:24 +0000 (12:06 +0100)]
lscpu: add description of --sysroot option to man page, plus grammar touches
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Tue, 1 Feb 2011 20:55:54 +0000 (21:55 +0100)]
lsblk: small grammar touches to the man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Tue, 1 Feb 2011 11:11:47 +0000 (12:11 +0100)]
partx: normalize the punctuation of man page, and improve grammar here and there
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Eric Sandeen [Tue, 8 Feb 2011 05:44:26 +0000 (23:44 -0600)]
blkid: dynamically allocate devicename array
If more than 128 devices are specified on the blkid cmdline,
the devices[] array will overflow.
We can dynamically allocate the devices[] array based on number
of arguments to avoid this problem.
[kzak@redhat.com: - add "if (optind < argc)" check]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Petr Uzel [Fri, 4 Feb 2011 08:05:58 +0000 (09:05 +0100)]
wipefs: use write_all from include/writeall.h
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Davidlohr Bueso [Thu, 3 Feb 2011 20:43:29 +0000 (17:43 -0300)]
swapon: use EXIT_SUCCESS constants
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Thu, 3 Feb 2011 20:41:56 +0000 (17:41 -0300)]
dmesg: use strtol_or_err instead of atoi
We shouldn't be accepting things like 'dmesg -n 2crapinput'
This patch also changes the exit's value to use EXIT_* constants.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Tue, 8 Feb 2011 14:36:28 +0000 (15:36 +0100)]
lscpu: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Petr Uzel [Thu, 3 Feb 2011 14:04:59 +0000 (15:04 +0100)]
uuidd: correctly report number of generated subsequent UUIDs
Before this change, "uuidd -t -n 1" reported
"
6fd0672e -2f9b-11e0-b9c8-
000feae00cb0 and subsequent 1 UUIDs".
That is two subsequent UUIDs, which is not correct.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 3 Feb 2011 14:04:58 +0000 (15:04 +0100)]
uuidd: fix -n usage
It does not make sense to request zero UUIDs - report error.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 3 Feb 2011 14:04:57 +0000 (15:04 +0100)]
uuidd: increase connection backlog size to SOMAXCONN
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 3 Feb 2011 14:04:55 +0000 (15:04 +0100)]
uuidd: use write_all from include/writeall.h
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 3 Feb 2011 14:04:54 +0000 (15:04 +0100)]
uuidd: use die() where possible
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 3 Feb 2011 14:04:53 +0000 (15:04 +0100)]
uuidd: use daemon(3) library function
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Wed, 2 Feb 2011 13:04:35 +0000 (14:04 +0100)]
uuidd: use UUID_STR_LEN and UUID_LEN
Use named constants for lentgh of UUID's binary and textual
representation, instead of magic numbers.
[kzak@redhat.com: - use sizeof(uuid_t) rather than hardcoded size]
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Petr Uzel [Tue, 1 Feb 2011 15:08:27 +0000 (16:08 +0100)]
uuidd: use UUIDD_OP_BULK_*_UUID named constants
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Tue, 1 Feb 2011 14:46:53 +0000 (15:46 +0100)]
uuidd: fix uuidd -r -n 2
uuidd -r -n 2 failed with "Unexpected reply length from server 36".
Fixed by this patch.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Marek Polacek [Fri, 4 Feb 2011 14:08:48 +0000 (15:08 +0100)]
include: [xalloc.h] include string.h
xalloc.h needs string.h for declaration of strdup(). Otherwise we
can get implicit declaration warning. This patch prevents it.
Signed-off-by: Marek Polacek <mpolacek@redhat.com>
Karel Zak [Mon, 7 Feb 2011 16:29:47 +0000 (17:29 +0100)]
include: [c.h] add fallback for alloc_size attributes
Reported-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 7 Feb 2011 15:20:04 +0000 (16:20 +0100)]
fsck: include c.h, fallback for PATH_MAX
Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 7 Feb 2011 14:52:21 +0000 (15:52 +0100)]
include: [c.h] move ignore_result() to gcc-only block
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 7 Feb 2011 14:17:07 +0000 (15:17 +0100)]
libmount: add and copy FS internal flags
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 7 Feb 2011 14:15:30 +0000 (15:15 +0100)]
libmount: don't prepare update if syscall failed
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 3 Feb 2011 12:14:27 +0000 (13:14 +0100)]
docs: update ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 3 Feb 2011 11:59:58 +0000 (12:59 +0100)]
blkid: add new return code 8 for ambivalent low-level probing result
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 3 Feb 2011 11:34:34 +0000 (12:34 +0100)]
blkid: add note about PART_ENTRY_ tags to blkid.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 3 Feb 2011 11:12:37 +0000 (12:12 +0100)]
blkid: don't return PART_ENTRY_* if partition is empty
The PART_ENTRY_* has nothing to do with the _contents_ of the block
device. So if the device is empty these values should not be printed
and blkid(8) has to return 2.
The PART_ENTRY_* for empty devices should be printed for "-o udev"
output only.
Reported-by: Thomas Bächler <thomas@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 3 Feb 2011 11:01:45 +0000 (12:01 +0100)]
blkid: don't print devname if nothing detected
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Feb 2011 21:32:52 +0000 (22:32 +0100)]
libmount: cleanup helper initialization API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Feb 2011 20:30:17 +0000 (21:30 +0100)]
libmount: add low-level API for umount
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Feb 2011 20:19:14 +0000 (21:19 +0100)]
libmount: cleanup high-level mount API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Feb 2011 13:10:42 +0000 (14:10 +0100)]
libmount: copy mount attrs from utab to context
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Feb 2011 08:38:33 +0000 (09:38 +0100)]
libblkid: check for swap or DM cow on small devices
The 1MiB limit for swap and COW is useless for Fedora LiveDVD where is
938KiB COW device.
Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Fabian Groffen [Tue, 25 Jan 2011 21:48:15 +0000 (22:48 +0100)]
libblkid: conditionalise parts from blkid/topology for Linux
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 26 Jan 2011 19:01:33 +0000 (20:01 +0100)]
build-sys: shell syntax fix in autogen.sh
Use of == as synonym of single = sign backfires on systems where
/bin/sh is dash, like with Ubuntu.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Petr Uzel [Wed, 26 Jan 2011 11:17:00 +0000 (12:17 +0100)]
mount: fix parsing offset= followed by more options
mount does not parse parse offset= option if it is followed by other
options. In umount, the parsing is done with the get_value() function.
This patch moves get_value to fstab.c (with new name get_option_value())
and fixes mount to use the function.
[kzak@redhat.com: - rename to get_option_value()
- use fstab.c rather than sundries.c]
Novell bugzilla: #666150
Reported-by: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Fabian Groffen [Tue, 25 Jan 2011 21:45:51 +0000 (22:45 +0100)]
build-sys: provide missing strnlen from strutils
Solaris lacks strnlen, provide it from strutils.c.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Tobias Klauser [Fri, 21 Jan 2011 15:44:18 +0000 (16:44 +0100)]
swapon: make needlessly global variables static
Also constify the option array.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>