]>
err.no Git - util-linux/log
Karel Zak [Tue, 17 Mar 2009 08:40:17 +0000 (09:40 +0100)]
build-sys: refresh generated libtool-2 stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Mar 2009 21:16:06 +0000 (22:16 +0100)]
blkid: add missing blkidP.h to Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
Ray Wang [Mon, 16 Mar 2009 15:07:42 +0000 (16:07 +0100)]
po: add zh_CN.po (from translationproject.org)
Clytie Siddall [Mon, 16 Mar 2009 15:07:42 +0000 (16:07 +0100)]
po: update vi.po (from translationproject.org)
Benno Schulenberg [Mon, 16 Mar 2009 15:07:42 +0000 (16:07 +0100)]
po: update nl.po (from translationproject.org)
Makoto Kato [Mon, 16 Mar 2009 15:07:41 +0000 (16:07 +0100)]
po: update ja.po (from translationproject.org)
Arif E. Nugroho [Mon, 16 Mar 2009 15:07:41 +0000 (16:07 +0100)]
po: update id.po (from translationproject.org)
Nicolas Provost [Mon, 16 Mar 2009 15:07:41 +0000 (16:07 +0100)]
po: update fr.po (from translationproject.org)
Lauri Nurmi [Mon, 16 Mar 2009 15:07:41 +0000 (16:07 +0100)]
po: update fi.po (from translationproject.org)
Petr Pisar [Mon, 16 Mar 2009 15:07:40 +0000 (16:07 +0100)]
po: update cs.po (from translationproject.org)
Karel Zak [Mon, 16 Mar 2009 13:03:03 +0000 (14:03 +0100)]
tests: disable blkid tests when blkid(8) is not compiled
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Mar 2009 12:08:45 +0000 (13:08 +0100)]
lib: fsprobe - fix gcc warning
lib/fsprobe.c: In function ‘fsprobe_get_fstype_by_devname’:
lib/fsprobe.c:243: warning: return discards qualifiers from pointer target type
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Sat, 14 Mar 2009 19:00:03 +0000 (20:00 +0100)]
blkid: fix non-udev low-probe mode output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 13 Mar 2009 13:31:31 +0000 (14:31 +0100)]
mkswap: clean up man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Mar 2009 15:01:59 +0000 (16:01 +0100)]
mkswap: zap bootbits
/dev/sdb1 originally initialized by cryptsetup:
and OLD mkswap:
# vol_id /dev/sdb1 | grep TYPE
ID_FS_TYPE=swap
# blkid -s TYPE /dev/sdb1
/dev/sdb1: TYPE="crypt_LUKS"
So, we have two different *valid* signatures on the device now!
NEW mkswap:
# blkid -s TYPE /dev/sdb1
/dev/sdb1: TYPE="swap"
# /lib/udev/vol_id /dev/sdb1 | grep TYPE
ID_FS_TYPE=swap
the bootbits (first 1024 bytes) was erased.
We shouldn't zap disk labels (BSD, SUN, ...) and boot loaders (on whole
disk):
# mkswap /dev/sdb2
mkswap: /dev/sdb2: warning: don't erase bootbits sectors
(BSD partition table detected). Use -f to force.
Setting up swapspace version 1, size = 4348 KiB
no label, UUID=
69d87cef -71ac-4fb0-a689-
ce3e930dea17
# mkswap /dev/sdb
mkswap: /dev/sdb: warning: don't erase bootbits sectors
on whole disk. Use -f to force.
Setting up swapspace version 1, size = 8188 KiB
no label, UUID=
97757ad7 -8a84-43d9-bcb4-
16fefd93a2ac
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Mar 2009 13:34:47 +0000 (14:34 +0100)]
libs: pttype - fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Mar 2009 13:31:50 +0000 (14:31 +0100)]
lib: wholedisk - extend API, add test program
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Mar 2009 13:17:59 +0000 (14:17 +0100)]
lib: pttype - extend the API to work with file descriptors
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Mar 2009 12:20:51 +0000 (13:20 +0100)]
lib: pttype: fix DOS detection
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Mar 2009 12:00:27 +0000 (13:00 +0100)]
lib: pttype: add BSD subpartitions support
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Mar 2009 09:22:30 +0000 (10:22 +0100)]
include: add missing files to Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Mar 2009 09:15:50 +0000 (10:15 +0100)]
lib: add pttype.c for PT types detection
This is a small fragment from libdisk (from xfsprogs). The final
solution will be to move the library to util-linux-ng.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Mar 2009 14:23:16 +0000 (15:23 +0100)]
mkswap: remove v0 swap space support
The kernel has not supported v0 swap space format since 2.5.22. The
new version v1 is supported since 2.1.117.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Mar 2009 13:00:21 +0000 (14:00 +0100)]
lib: add is_whole_disk() from fdisk code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Mar 2009 12:34:55 +0000 (13:34 +0100)]
flock: add NLS support, remove tailing white-spaces
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Mar 2009 12:02:45 +0000 (13:02 +0100)]
flock: fix printf format error in usage()
flock.c: In function ‘usage’:
flock.c:75: warning: too few arguments for format
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 11 Mar 2009 11:49:50 +0000 (12:49 +0100)]
flockc: segfaults when file name is not given
$ flock -s
Segmentation fault
ltrace:
__libc_start_main(0x8048870, 2, 0xbfe9f404, 0x8049070, 0x8049060 <unfinished ...>
getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = 115
getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = -1
strtol(0, 0xbfe9f34c, 10, 0x80494e0, 0xbfe9f354 <unfinished ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
Addresses-Red-Had-Bugzilla: #489672
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 10 Mar 2009 12:36:56 +0000 (13:36 +0100)]
cal: remove gcc-ism from nl_langinfo() call
> On Tue, Mar 10, 2009 at 01:15:14PM +0100, Samuel Thibault wrote:
> That will only work with the gcc compiler, which allows to read a
> union field what you wrote in another. Shouldn't
> (int)(intptr_t)nl_langinfo() be just fine?
Signed-off-by: Karel Zak <kzak@redhat.com>
Scott James Remnant [Wed, 4 Mar 2009 17:10:43 +0000 (17:10 +0000)]
hwclock: add --systz option to set system clock from itself
Since the system clock time is already set from the hardware clock by the
kernel (when compiled with CONFIG_RTC_HCTOSYS), there's no particular need to
read the hardware clock again.
This option sets the system clock using itself as a reference if the
hardware clock was in local time. The resulting system clock time
is in UTC, with the kernel timezone set to the difference.
[kzak@redhat.com: - fix the condition that controls read_adjtime() call]
Signed-off-by: Scott James Remnant <scott@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Pádraig Brady [Wed, 4 Mar 2009 10:07:29 +0000 (10:07 +0000)]
cal: determine the first day of week from the locale
Previously it defaulted to Sunday rather than using
the value from the locale. Lauri Nurmi <lanurmi@iki.fi>
provided the detailed argument for this change while
Samuel Thibault <samuel.thibault@ens-lyon.org> provided
the information on how to read the first day of the week
from the locale correctly.
[kzak@redhat.com: - fix "cast from pointer to integer",
nl_langinfo(_NL_TIME_WEEK_1STDAY) call)]
Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 9 Mar 2009 20:09:50 +0000 (21:09 +0100)]
renice: add -n option for compatibility with POSIX
The -n option is required by POSIX.1-200x.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 9 Mar 2009 11:49:51 +0000 (12:49 +0100)]
build-sys: cleanup --with-fsprobe help string
Thanks to Theodore Tso.
Signed-off-by: Karel Zak <kzak@redhat.com>
Theodore Ts'o [Mon, 9 Mar 2009 11:38:02 +0000 (12:38 +0100)]
blkid: add fallback to ext4 for 2.6.29+ kernels if ext2 is not present
Starting in 2.6.29, ext4 can be used to support filesystems without a
journal. So if ext2 is not present, and the kernel version is greater
than 2.6.29, and ext4 is present, return a filesystme type of ext4.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> blkid: Add fallback to
ext4 for 2.6.29+ kernels if ext2 is not present
Starting in 2.6.29, ext4 can be used to support filesystems without a
journal. So if ext2 is not present, and the kernel version is greater
than 2.6.29, and ext4 is present, return a filesystme type of ext4.
[kzak@redhat.com: port from e2fsprogs to util-linux-ng tree]
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
Eric Sandeen [Mon, 9 Mar 2009 11:17:17 +0000 (12:17 +0100)]
blkid: recognize ext4(dev) without journal
ext4/ext4dev no longer require a journal.
w/o this blkid doesn't recognize after:
We still must have one ext3-incompat-feature to flag
as ext4(dev) so we shouldn't ever mis-recognize it.
[kzak@redhat.com: port from e2fsprogs to util-linux-ng tree]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 9 Mar 2009 11:10:59 +0000 (12:10 +0100)]
blkid: blkid.static make target
For compatibility with e2fsprogs tree:
commit
eb630fd8708ae433e55e384079c08e0f0f040d22
Author: Eric Sandeen <sandeen@redhat.com>
Date: Tue Feb 24 23:15:33 2009 -0600
e2fsprogs: blkid.static make target
Nice for testing w/o needing to swizzle around system
libraries...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 9 Mar 2009 08:52:08 +0000 (09:52 +0100)]
fdisk: support "-b 4096" option
The fdisk code is more ready for 4kB sectors and it makes sense to
support such sectr size for "-b" option.
Address-Red-Hat-Bugzilla: #218915
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 9 Mar 2009 08:43:49 +0000 (09:43 +0100)]
login: remove "switching users" nonsense from man page
For more details see the BUGS section in the man page.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 5 Mar 2009 19:59:30 +0000 (20:59 +0100)]
swapon: add error messages for lseek and write
Thanks to Hugh Dickins.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 5 Mar 2009 19:37:31 +0000 (20:37 +0100)]
swapon: fix typo s/warn/warnx/
Thanks to Hugh Dickins.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 5 Mar 2009 19:17:19 +0000 (20:17 +0100)]
swapon: fix wording in man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Mar 2009 15:25:23 +0000 (16:25 +0100)]
lib: fix fsprobe wrapper (const char * is nonsense)
The fsprobe_ functions return newly allocated strings.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Mar 2009 15:10:24 +0000 (16:10 +0100)]
lib: gcc warning in fix fsprobe
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Mar 2009 15:06:52 +0000 (16:06 +0100)]
blkid: fix gcc warning in blkid_get_cache_filename()
cache.c: In function `blkid_get_cache_filename':
cache.c:113 warning: return makes pointer from integer without a cast
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Mar 2009 15:00:39 +0000 (16:00 +0100)]
blkid: use "char **" rather than "unsigned char **"
Use "char" to be consistent with the old high level API.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Mar 2009 14:34:10 +0000 (15:34 +0100)]
mount: fix gcc warning (variable used uninitialized)
fstab.c: In function ‘getfs_by_spec’:
fstab.c:400 warning: ‘name’ may be used uninitialized in this
function
fstab.c:402 warning: ‘value’ may be used uninitialized in this
function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Mar 2009 14:31:39 +0000 (15:31 +0100)]
simmpleinit: fix gcc warning (buffer size in read())
simpleinit.c:846:
/usr/include/bits/unistd.h:43 warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than
size of the destination buffer
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Mar 2009 13:53:27 +0000 (14:53 +0100)]
swapon: add -f/--fixpgsz option
The patch:
commit
3399a218f4eff4016a22044e7c416521bc37c53c
Author: Matthias Koenig <mkoenig@suse.de>
Date: Thu Nov 27 12:32:56 2008 +0100
swapon: add swap format detection and pagesize check
introduced a new feature. This feature should be optional (disabled by
default) to keep happy people who use swap-space bad blocks or
nonstandard swap-space size.
CC: Hugh Dickins <hugh@veritas.com>
CC: Olaf Hering <olh@suse.de>
CC: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Mar 2009 13:15:35 +0000 (14:15 +0100)]
swapon: cleanup man page
The patch also fix stupid bug in swapoff long options array.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 2 Mar 2009 15:41:03 +0000 (16:41 +0100)]
swapon: rewrite SWSUSPEND signature rather than exec mkswap
> On Thu, Jan 22, 2009 at 04:46:57PM +0000, Hugh Dickins wrote:
> Though your swapon may mkswap for suspend reasons: hmm, wouldn't it
> do very much better just to rewrite the swap signature, than exec
> mkswap - maybe nobody ever uses the badpages list, but it really
> should be respected.
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 2 Mar 2009 15:12:26 +0000 (16:12 +0100)]
swapon: do_swapon() refactoring (split into two functions)
The patch moves all checks to the separate swapon_checks() function.
This is a little more aggressive, but currently the do_swapon() is
too long.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 2 Mar 2009 14:16:21 +0000 (15:16 +0100)]
swapon: use err.h stuff
The code is much more simple with warn()/err() that with fprintf() and
strerror(), ...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 2 Mar 2009 13:21:03 +0000 (14:21 +0100)]
swapon: simplify spec to devname conversion
We needn't to use spec_to_devname() and check for pseudo filesystems.
The swap{on,off} is always checking for the 'swap' fstype.
This patch also removes the dependence on xmalloc.c.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 2 Mar 2009 12:00:49 +0000 (13:00 +0100)]
swapon: add generic swap_get_header()
We need to proper swap header detection for swsuspend data and for
swap PAGE_SIZE checks. It's better to reuse the code in both cases.
The patch removes duplicate stat() call too.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 2 Mar 2009 10:24:03 +0000 (11:24 +0100)]
swapon: do_swapon() refactoring (move stat() checks)
It's better to do stat() based checks immediately after the stat()
call.
Signed-off-by: Karel Zak <kzak@redhat.com>
Hugh Dickins [Thu, 22 Jan 2009 16:46:57 +0000 (16:46 +0000)]
mkswap: handle 2^32 pages
mkswap (when built 32-bit) could not quite support the maximum size
of swap area (2^32 pages): change unsigned long pagecounts to unsigned
long long pagecounts, and fix maxpages for the case when more is asked.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Karel Zak [Thu, 26 Feb 2009 22:46:28 +0000 (23:46 +0100)]
docs: add a note about kpartx to TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Feb 2009 22:19:19 +0000 (23:19 +0100)]
partx: use ioctls from lib/blkdev.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Feb 2009 22:03:46 +0000 (23:03 +0100)]
fdisk: (and partx) remove BLKGETLASTSECT
This odd ioctl is unsupported in the current 2.4 and 2.6 mainline.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Feb 2009 14:28:11 +0000 (15:28 +0100)]
partx: don't duplicate lib/blkdev.c code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Feb 2009 13:23:06 +0000 (14:23 +0100)]
partx: convert hard sector size to 512-byte sectors
The msdos PT depends on a sector size (BLKSSZGET), but partx(8) counts
internally with 512-byte sectors only. The dos.c has to convert start
and size to 512-byte sectors.
sysfs (kernel uses 512-byte sectors only):
# cat /sys/block/sdb/sdb1/{start,size}
256
16128
(note that 16128 * 512 =
8257536 ; 8Mb)
old version:
# partx /dev/sdb
1: 32- 2047 ( 2016 sectors, 1 MB)
^^^^
start, end and sectors are correct, but in 4KiB sectors
The size in MB is completely wrong.
new version:
# partx -l /dev/sdb
1: 256- 16383 ( 16128 sectors, 8 MB)
start, end and sectors are converted to 512-byte sectors. The size in
MB is correct now.
Note that this change is important, because "partx -a" counts the size
of a new partition in 512-byte sectors for all PT formats (sun, gpt, ...).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Feb 2009 11:31:07 +0000 (12:31 +0100)]
addpart: 512-byte sectors in code, bytes in man-page
The addpart.c code uses 512-byte sectors for partition start and
length, but in the addpart.8 man page is "in bytes". The code (and
this code is pretty old) is always right... the man page has to be
fixed.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Feb 2009 09:56:35 +0000 (10:56 +0100)]
blockdev: add note that the StartSec is in 512-byte sectors
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Feb 2009 09:19:05 +0000 (10:19 +0100)]
fdisk: use real sector size in verify() and warn_cylinders()
4KiB-sector disk:
Note: sector size is 4096 (not 512)
Disk /dev/sdb: 8 MB,
8388608 bytes
8 heads, 32 sectors/track, 8 cylinders, total 2048 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Disk identifier: 0x6aad54da
Device Boot Start End Blocks Id System
/dev/sdb1 32 2047 8064 83 Linux
old version (mix 512 and real sectors):
Command (m for help): v
14367 unallocated sectors
new version:
Command (m for help): v
31 unallocated 4096-byte sectors
Signed-off-by: Karel Zak <kzak@redhat.com>
Eric Sandeen [Thu, 26 Feb 2009 08:53:09 +0000 (09:53 +0100)]
fdisk: doesn't handle large (4KiB) sectors properly
fdisk (at least with the -u option) does not handle sector sizes other
than 512.
Address-Red-Hat-Bugzilla: #487227
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 24 Feb 2009 15:41:17 +0000 (16:41 +0100)]
mount: remove useless if-before-free tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 24 Feb 2009 15:41:06 +0000 (16:41 +0100)]
getopt: remove useless if-before-free tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 24 Feb 2009 15:40:52 +0000 (16:40 +0100)]
fsck: remove useless if-before-free tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 24 Feb 2009 15:39:04 +0000 (16:39 +0100)]
blkid: fix a syntax nit
Signed-off-by: Karel Zak <kzak@redhat.com>
Jim Meyering [Tue, 24 Feb 2009 14:58:37 +0000 (15:58 +0100)]
blkid: remove useless if-before-free tests
[kzak@redhat.com: - port the original e2fsprogs patch to util-linux-ng]
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Jim Meyering [Tue, 24 Feb 2009 14:46:27 +0000 (15:46 +0100)]
blkid: don't dereference NULL upon slashless module dependency line
* probers/ext.c (check_for_modules): Skip current line if it has no slash.
[kzak@redhat.com: - port the original e2fsprogs patch to util-linux-ng]
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Feb 2009 12:21:40 +0000 (13:21 +0100)]
build-sys: add missing files to include/Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Feb 2009 12:18:28 +0000 (13:18 +0100)]
fsck: remove \007 from warning message
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Feb 2009 11:14:48 +0000 (12:14 +0100)]
tests: remove obsolete stuff from Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 19 Feb 2009 18:01:34 +0000 (19:01 +0100)]
losetup: cleanup man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 19 Feb 2009 17:36:25 +0000 (18:36 +0100)]
losetup: detach more devices by "-d <loop> [<loop> ..]"
This patch allows to detach more devices by "losetup -d",
for example:
# losetup -a
/dev/loop0: [0804]:
9955739 (/home/images/ary0.img)
/dev/loop1: [0804]:
9955740 (/home/images/ary1.img)
/dev/loop2: [0804]:
9955745 (/home/images/ary2.img)
# losetup -d /dev/loop0 /dev/loop1 /dev/loop2
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 22:40:17 +0000 (23:40 +0100)]
tests: refresh expected mount(8) outputs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 22:33:25 +0000 (23:33 +0100)]
tests: disable suid mount test
Unfortunately, libtool wrapper cannot be suid...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 22:16:57 +0000 (23:16 +0100)]
mount: inform about UID and eUID when verbose > 2
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 21:46:01 +0000 (22:46 +0100)]
blkid: blkid_evaluate_spec() shouldn't ignore $BLKID_FILE
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 20:50:55 +0000 (21:50 +0100)]
tests: refresh ipcs expected outputs
Unfortunately, the last rebase in the topic/blkid branch has removed
tailing white spaces. Grrr...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 20:45:48 +0000 (21:45 +0100)]
tests: refresh cal(1) expected outputs
Unfortunately, the last rebase in the topic/blkid branch has removed
tailing white spaces. Grrr...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 20:44:00 +0000 (21:44 +0100)]
tests: we needn't blkid.sh
after "libtoolization" we needn't extra blkid.sh wrapper
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 20:28:23 +0000 (21:28 +0100)]
tests: chmod -x ts/lscpu/mk-input.sh
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 20:27:18 +0000 (21:27 +0100)]
tests: cleanup ts/md5
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 20:19:47 +0000 (21:19 +0100)]
tests: cleanup ts/minix
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 16:20:30 +0000 (17:20 +0100)]
build-sys: add fsck binary to .gitignore
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 16:16:46 +0000 (17:16 +0100)]
tests: cleanup lscpu reg.tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 15:48:20 +0000 (16:48 +0100)]
tests: cleanup ts/cramfs/mkfs-endianness
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 15:45:01 +0000 (16:45 +0100)]
tests: cleanup ts/cramfs/fsck-endianness
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 15:34:34 +0000 (16:34 +0100)]
tests: cleanup ts/bitops
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 15:10:45 +0000 (16:10 +0100)]
tests: add fsck:ismounted reg.test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 14:43:34 +0000 (15:43 +0100)]
lib: add test_ismounted for regression test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 14:35:28 +0000 (15:35 +0100)]
po: update list of .c files
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 14:34:51 +0000 (15:34 +0100)]
fsck: cosmetic changes (NLS, paths, ...)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 14:25:50 +0000 (15:25 +0100)]
fsck: link with generic fsprobe wrapper
This is a way how link fsck with libblkid (e2sprogs or util-linxu-ng
version) and libvolume_id.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 14:21:55 +0000 (15:21 +0100)]
lib: make open_device() optional in fsprobe.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Feb 2009 14:06:49 +0000 (15:06 +0100)]
fsck: move fsck from e2fsprogs to util-linux-ng
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Feb 2009 23:49:58 +0000 (00:49 +0100)]
blkid: fix low-probe mode return codes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Feb 2009 23:41:42 +0000 (00:41 +0100)]
blkid: add TODO hint about blkid_parse_tag_string()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Feb 2009 23:37:28 +0000 (00:37 +0100)]
blkid: add cmdline interface for blkid_probe_filter_usage()
Signed-off-by: Karel Zak <kzak@redhat.com>