]> err.no Git - util-linux/log
util-linux
16 years agoMerge commit 'origin/master'
LaMont Jones [Fri, 7 Dec 2007 15:17:33 +0000 (08:17 -0700)]
Merge commit 'origin/master'

16 years agotests: redirect libblkid cache to BLKID_FILE
Karel Zak [Thu, 6 Dec 2007 21:46:00 +0000 (22:46 +0100)]
tests: redirect libblkid cache to BLKID_FILE

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoMerge commit 'origin/master'
LaMont Jones [Thu, 6 Dec 2007 04:31:04 +0000 (21:31 -0700)]
Merge commit 'origin/master'

16 years agodocs: add note about incorrect tag 2.13.1
Karel Zak [Wed, 5 Dec 2007 11:40:44 +0000 (12:40 +0100)]
docs: add note about incorrect tag 2.13.1

The git tag 2.13.1 is typo. I forgot to use -rc1 suffix for this tag.
The real 2.13.1 is going to be released with tag 2.13.1-REAL. Sorry.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoMerge branch 'stable/v2.13'; commit 'origin/master'
LaMont Jones [Wed, 5 Dec 2007 03:30:16 +0000 (20:30 -0700)]
Merge branch 'stable/v2.13'; commit 'origin/master'

Conflicts:

getopt/getopt.1

16 years agohwclock: check for ENODEV
David Woodhouse [Tue, 4 Dec 2007 13:44:05 +0000 (14:44 +0100)]
hwclock: check for ENODEV

/sbin/hwclock is supposed to fall back to using /dev/rtc0 if /dev/rtc isn't
working (which it isn't, because mkinitrd creates it with the old device
numbers, and we're switching to the new RTC_CLASS driver).

Unfortunately, it'll only cope if the error it gets is ENOENT (i.e. the device
node doesn't exist). It doesn't fall back to the next device in the list if the
error is ENODEV, which is what happens when the device node exists, but there's
no driver.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agosfdisk: allow partitioning drives of over 2^31 sectors.
Kunihiko IMAI [Mon, 20 Aug 2007 12:12:53 +0000 (06:12 -0600)]
sfdisk: allow partitioning drives of over 2^31 sectors.

sfdisk would incorrectly complain that there was no room when partitioning
a drive over 2^31 sectors in size.

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
16 years agolosetup: use standard uintxy_t types (struct loop_info64)
Samuel Thibault [Mon, 3 Dec 2007 13:17:23 +0000 (14:17 +0100)]
losetup: use standard uintxy_t types (struct loop_info64)

The kernel loop_info64 definition uses __u{8,32,64} types,
but userspace uses unsigned {long long,int,char} types.

This patch turns into exactly defined standard uint{8,32,64}_t types.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agofdisk: non-linux support (use standard uintxy_t instead __uxy)
Samuel Thibault [Sat, 27 Oct 2007 17:27:31 +0000 (18:27 +0100)]
fdisk: non-linux support (use standard uintxy_t instead __uxy)

 - #include <linux/types.h> is turned into #include <stdint.h>, much more
   portable, and __uxy were turned into uintxy_t.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agosetarch: add missing alpha subarchs
Oliver Falk [Mon, 3 Dec 2007 12:34:42 +0000 (13:34 +0100)]
setarch: add missing alpha subarchs

Signed-off-by: Oliver Falk <oliver@linux-kernel.at>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoswapon: readjust the usage summaries
Benno Schulenberg [Wed, 28 Nov 2007 19:18:48 +0000 (20:18 +0100)]
swapon: readjust the usage summaries

swapon.8: reorder options, lowercase command names, tweak sentences.
swapon.c: tweak descriptions, adjust spaces for proper alignment.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
16 years agortcwake: misc cleanups
David Brownell [Fri, 30 Nov 2007 21:42:41 +0000 (13:42 -0800)]
rtcwake: misc cleanups

Cleanups for rtcwake:

  - Minor doc updates:  highlight the framebuffer problem,
    give correct history of this code
  - Improve debug output
  - Fix some linelength bugs

Note that this code predated the sysfs "wakealarm" mechanism, and
works around several now-fixed bugs in the kernel RTC framework.

Nowadays it would make sense to make this program use only the sysfs
interface to the RTC, using "since_epoch" instead of RTC_RD_TIME and
"wakealarm" instead of the four other ioctls.  That could simplify
the mess involved in timezone handling.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agohwclock.sh: drop redundant file pointer. Closes: #453333
LaMont Jones [Wed, 28 Nov 2007 21:22:29 +0000 (14:22 -0700)]
hwclock.sh: drop redundant file pointer.  Closes: #453333

16 years agoblockdev: add --getsz to blockdev.8
Karel Zak [Wed, 28 Nov 2007 14:19:24 +0000 (15:19 +0100)]
blockdev: add --getsz to blockdev.8

This patch also marks --getsize as deprecated option.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoswapon: fix typo in usage()
Karel Zak [Wed, 28 Nov 2007 14:01:14 +0000 (15:01 +0100)]
swapon: fix typo in usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agogetopt: fix path to examples in getopt.1
Karel Zak [Wed, 28 Nov 2007 13:45:27 +0000 (14:45 +0100)]
getopt: fix path to examples in getopt.1

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: use MNTTYPE_SWAP (from mntent.h)
Karel Zak [Wed, 28 Nov 2007 13:37:09 +0000 (14:37 +0100)]
mount: use MNTTYPE_SWAP (from mntent.h)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: cleanup usage of _PATH_*
Karel Zak [Wed, 28 Nov 2007 13:35:24 +0000 (14:35 +0100)]
mount: cleanup usage of _PATH_*

The macros MOUNTED and MNTTAB are deprecated. This patch standardize
and consolidate all path macros and remove mount_paths.h.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoinclude: add mount paths to pathnames.h
Karel Zak [Wed, 28 Nov 2007 13:08:33 +0000 (14:08 +0100)]
include: add mount paths to pathnames.h

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoagetty: non-linux support (use pathnames.h)
Karel Zak [Wed, 28 Nov 2007 12:19:42 +0000 (13:19 +0100)]
agetty: non-linux support (use pathnames.h)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoinclude: cleanup pathnames.h
Karel Zak [Wed, 28 Nov 2007 12:17:16 +0000 (13:17 +0100)]
include: cleanup pathnames.h

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agotests: add test for include/pathnames.h
Karel Zak [Wed, 28 Nov 2007 11:52:59 +0000 (12:52 +0100)]
tests: add test for include/pathnames.h

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agotests: move test_bkdev to lib/
Karel Zak [Wed, 28 Nov 2007 11:27:00 +0000 (12:27 +0100)]
tests: move test_bkdev to lib/

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agotests: rename test_sysinfo, remove tailing white-spaces
Karel Zak [Wed, 28 Nov 2007 11:11:51 +0000 (12:11 +0100)]
tests: rename test_sysinfo, remove tailing white-spaces

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoscript: cleanup includes
Samuel Thibault [Wed, 28 Nov 2007 09:59:24 +0000 (10:59 +0100)]
script: cleanup includes

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agosfdisk: remove unnecessary linux/unistd.h
Samuel Thibault [Wed, 28 Nov 2007 09:44:31 +0000 (10:44 +0100)]
sfdisk: remove unnecessary linux/unistd.h

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: cleanup usage of linux/major.h
Samuel Thibault [Wed, 28 Nov 2007 09:40:32 +0000 (10:40 +0100)]
build-sys: cleanup usage of linux/major.h

The utils like fdisk or login are usable on non-linux systems.
This patch allows to compile on systems without linux/major.h.

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
16 years agosys-utils: correct setarch.8 manpage link creation. Closes: #453245
Frédéric Bothamy [Wed, 28 Nov 2007 00:44:16 +0000 (17:44 -0700)]
sys-utils: correct setarch.8 manpage link creation.  Closes: #453245

At least on Debian, .so commands are relative to the man directory
(e.g., /usr/share/man), not to the subdirectory:
    % man i386
    man: can't open /usr/share/man/setarch.8: No such file or directory
    No manual entry for i386

See also http://bugs.debian.org/453245

Signed-off-by: Frédéric Bothamy <frederic.bothamy@free.fr>
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agoMerge commit 'origin/master'
LaMont Jones [Tue, 27 Nov 2007 03:48:14 +0000 (20:48 -0700)]
Merge commit 'origin/master'

16 years agofdisk: non-linux support (MAXPATHLEN)
Karel Zak [Mon, 26 Nov 2007 14:19:29 +0000 (15:19 +0100)]
fdisk: non-linux support (MAXPATHLEN)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agonamei: non-linux support (get_current_dir_name() and PATH_MAX)
Karel Zak [Mon, 26 Nov 2007 13:58:29 +0000 (14:58 +0100)]
namei: non-linux support (get_current_dir_name() and PATH_MAX)

Co-Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agowall: cleanup MAXHOSTNAMELEN
Karel Zak [Mon, 26 Nov 2007 13:45:55 +0000 (14:45 +0100)]
wall: cleanup MAXHOSTNAMELEN

Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoagetty: cleanup MAXHOSTNAMELEN
Karel Zak [Mon, 26 Nov 2007 13:45:55 +0000 (14:45 +0100)]
agetty: cleanup MAXHOSTNAMELEN

Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agocfdisk: display cylinders beyond 1024
Peter Breitenlohner [Fri, 16 Nov 2007 10:37:43 +0000 (11:37 +0100)]
cfdisk: display cylinders beyond 1024

There is absolutely no reason why cfdisk should not display
cylinders beyond 1024. The number of cylinders needs to be
truncated only for the CHS field.

Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
16 years agogetopt: install example scripts as SCRIPTS, not DATA
Peter Breitenlohner [Fri, 16 Nov 2007 10:50:17 +0000 (11:50 +0100)]
getopt: install example scripts as SCRIPTS, not DATA

The example scripts should be installed with execute permissions,
as for util-linux-2.12r and earlier, i.e., as SCRIPTS and not as DATA

Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
16 years agomount: fix fd leak
Matthias Koenig [Wed, 21 Nov 2007 15:46:33 +0000 (16:46 +0100)]
mount: fix fd leak

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
16 years agoswapon: cleanup usage output
Karel Zak [Mon, 26 Nov 2007 12:07:40 +0000 (13:07 +0100)]
swapon: cleanup usage output

17 years agoMerge branch 'stable/v2.13'
LaMont Jones [Thu, 22 Nov 2007 03:09:46 +0000 (20:09 -0700)]
Merge branch 'stable/v2.13'

Conflicts:

NEWS
configure.ac
debian/changelog
mount/lomount.c
mount/mount.c
po/ca.po
po/cs.po
po/da.po
po/de.po
po/es.po
po/et.po
po/fi.po
po/fr.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/nl.po
po/pt_BR.po
po/ru.po
po/sl.po
po/sv.po
po/tr.po
po/uk.po
po/util-linux-ng.pot
po/vi.po

17 years agoagetty: drop useless and unused diff from upstream
LaMont Jones [Thu, 22 Nov 2007 02:59:51 +0000 (19:59 -0700)]
agetty: drop useless and unused diff from upstream

Signed-off-by: LaMont Jones <lamont@debian.org>
17 years agosys-utils: Drop duplicate install of setarch manpage links.
LaMont Jones [Thu, 22 Nov 2007 02:57:43 +0000 (19:57 -0700)]
sys-utils: Drop duplicate install of setarch manpage links.

Signed-off-by: LaMont Jones <lamont@debian.org>
17 years agoagetty: drop useless and unused diff from upstream
LaMont Jones [Thu, 22 Nov 2007 02:59:51 +0000 (19:59 -0700)]
agetty: drop useless and unused diff from upstream

Signed-off-by: LaMont Jones <lamont@debian.org>
17 years agosys-utils: Drop duplicate install of setarch manpage links.
LaMont Jones [Thu, 22 Nov 2007 02:57:43 +0000 (19:57 -0700)]
sys-utils: Drop duplicate install of setarch manpage links.

Signed-off-by: LaMont Jones <lamont@debian.org>
17 years agoMerge commit 'origin/stable/v2.13' into stable/v2.13. Closes: #446175
LaMont Jones [Wed, 21 Nov 2007 23:12:11 +0000 (16:12 -0700)]
Merge commit 'origin/stable/v2.13' into stable/v2.13.  Closes: #446175

17 years agoMerge commit 'origin/master'
LaMont Jones [Wed, 21 Nov 2007 23:13:04 +0000 (16:13 -0700)]
Merge commit 'origin/master'

17 years agobuild-sys: cleanup disk-utils/Makefile.am (use $utils_common)
Karel Zak [Wed, 21 Nov 2007 01:38:25 +0000 (02:38 +0100)]
build-sys: cleanup disk-utils/Makefile.am (use $utils_common)

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomkfs.minix: device size cleanup
Matthias Koenig [Tue, 13 Nov 2007 15:28:39 +0000 (16:28 +0100)]
mkfs.minix: device size cleanup

Use blkdev_get_size() function and some size related cleanup.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agomkfs.minix: add sectorsize check
Matthias Koenig [Tue, 13 Nov 2007 15:28:38 +0000 (16:28 +0100)]
mkfs.minix: add sectorsize check

Minix filesystem until version 2 has a fixed blocksize of 1024 bytes.
If you try to create a filsystem on a device with a physical sectorsize
larger than 1024 bytes, this resulting minix fs cannot be mounted,
because the physical sectorsize must be smaller than the filesystem
blocksize.
This patch adds a check for this and will refuse to create a filesystem
if the sectorsize is bigger than the blocksize.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agomount: don't call canonicalize(SPEC) for cifs, smbfs and nfs
Karel Zak [Wed, 21 Nov 2007 00:46:57 +0000 (01:46 +0100)]
mount: don't call canonicalize(SPEC) for cifs, smbfs and nfs

When calling "mount -t smbfs //foo/bar /mnt/foo", mount.smbfs will be
called with /foo/bar if /foo/bar exists locally, and will display its
usage.

The patch also removes duplicate canonicalize() from mounted()
function.

Reported-By: Pascal Terjan <pterjan@linuxfr.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: don't call canonicalize(SPEC) for cifs, smbfs and nfs
Karel Zak [Wed, 21 Nov 2007 00:46:57 +0000 (01:46 +0100)]
mount: don't call canonicalize(SPEC) for cifs, smbfs and nfs

When calling "mount -t smbfs //foo/bar /mnt/foo", mount.smbfs will be
called with /foo/bar if /foo/bar exists locally, and will display its
usage.

The patch also removes duplicate canonicalize() from mounted()
function.

Reported-By: Pascal Terjan <pterjan@linuxfr.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: add ts-mount-noncanonical
Karel Zak [Wed, 21 Nov 2007 00:42:23 +0000 (01:42 +0100)]
tests: add ts-mount-noncanonical

mount(8) shouldn't canonicalize SPEC path for cifs, smbfs, nfs, ...

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agochangelog: release
LaMont Jones [Tue, 20 Nov 2007 02:32:10 +0000 (19:32 -0700)]
changelog: release

17 years agometa: drop Conflicts: bsdmainutils too
LaMont Jones [Tue, 20 Nov 2007 02:30:21 +0000 (19:30 -0700)]
meta: drop Conflicts: bsdmainutils too

17 years agochangelog: release
LaMont Jones [Mon, 19 Nov 2007 20:10:17 +0000 (13:10 -0700)]
changelog: release

17 years agocal comes from bsdmainutils as well.
LaMont Jones [Mon, 19 Nov 2007 04:16:48 +0000 (21:16 -0700)]
cal comes from bsdmainutils as well.

Drop the Replaces:, too, since we don't replace anything anymore.

17 years agomount: drop the part always true from a while condition
Pascal Terjan [Thu, 15 Nov 2007 18:26:18 +0000 (19:26 +0100)]
mount: drop the part always true from a while condition

Signed-off-by: Pascal Terjan <pterjan@linuxfr.org>
17 years agobuild-sys: remove hardcoded _GNU_SOURCE
Karel Zak [Wed, 19 Sep 2007 22:57:01 +0000 (00:57 +0200)]
build-sys: remove hardcoded _GNU_SOURCE

We have AC_GNU_SOURCE, so we needn't any extra hardcoded _GNU_SOURCE.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agochangelog: start new release
LaMont Jones [Thu, 15 Nov 2007 05:53:01 +0000 (22:53 -0700)]
changelog: start new release

17 years agoMerge commit 'origin/stable/v2.13' into stable/v2.13
LaMont Jones [Thu, 15 Nov 2007 04:58:23 +0000 (21:58 -0700)]
Merge commit 'origin/stable/v2.13' into stable/v2.13

17 years agopo: update POTFILES.in
Karel Zak [Tue, 13 Nov 2007 20:27:41 +0000 (21:27 +0100)]
po: update POTFILES.in

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: fix missing deps for swapon
Matthias Koenig [Tue, 13 Nov 2007 11:51:37 +0000 (12:51 +0100)]
build-sys: fix missing deps for swapon

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agobuild-sys: release++
Karel Zak [Tue, 13 Nov 2007 09:46:57 +0000 (10:46 +0100)]
build-sys: release++

Increment release number to v2.13.1

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: add v2.13.1 ReleaseNotes
Karel Zak [Tue, 13 Nov 2007 09:38:14 +0000 (10:38 +0100)]
docs: add v2.13.1 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update AUTHORS file
Karel Zak [Mon, 12 Nov 2007 21:39:33 +0000 (22:39 +0100)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update po files
Karel Zak [Mon, 12 Nov 2007 11:19:37 +0000 (12:19 +0100)]
po: update po files

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update fi.po (from translationproject.org)
Lauri Nurmi [Mon, 12 Nov 2007 11:05:17 +0000 (12:05 +0100)]
po: update fi.po (from translationproject.org)

17 years agopo: update hu.po (from translationproject.org)
Gabor Kelemen [Mon, 12 Nov 2007 10:48:10 +0000 (11:48 +0100)]
po: update hu.po (from translationproject.org)

17 years agolosetup: fix errno usage
Karel Zak [Thu, 25 Oct 2007 10:10:31 +0000 (12:10 +0200)]
losetup: fix errno usage

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: fix ChangeLog URL
Pascal Terjan [Sat, 3 Nov 2007 10:55:52 +0000 (11:55 +0100)]
docs: fix ChangeLog URL

Signed-off-by: Pascal Terjan <pterjan@linuxfr.org>
17 years agopo: update hu.po (from translationproject.org)
Gabor Kelemen [Mon, 12 Nov 2007 10:48:10 +0000 (11:48 +0100)]
po: update hu.po (from translationproject.org)

17 years agoMerge commit 'origin/master'
LaMont Jones [Thu, 8 Nov 2007 03:07:28 +0000 (20:07 -0700)]
Merge commit 'origin/master'

Conflicts:

mount/Makefile.am
mount/my_dev_t.h

17 years agobuild-sys: non-linux support
Samuel Thibault [Sun, 4 Nov 2007 15:54:27 +0000 (15:54 +0000)]
build-sys: non-linux support

Here is a patch that disables linux-specific tools on non-linux targets.

Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-Off-By: Karel Zak <kzak@redhat.com>
17 years agomore: non-linux support
Samuel Thibault [Sun, 4 Nov 2007 16:39:36 +0000 (16:39 +0000)]
more: non-linux support

Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
17 years agomount: use blkdev_get_size()
Karel Zak [Wed, 7 Nov 2007 23:54:58 +0000 (00:54 +0100)]
mount: use blkdev_get_size()

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosfdisk: use get_linux_version()
Karel Zak [Wed, 7 Nov 2007 23:27:51 +0000 (00:27 +0100)]
sfdisk: use get_linux_version()

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoelvtune: use get_linux_version()
Karel Zak [Wed, 7 Nov 2007 20:25:48 +0000 (21:25 +0100)]
elvtune: use get_linux_version()

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: cleanup KERNEL_VERSION, remove my_dev_t.h
Karel Zak [Wed, 7 Nov 2007 20:13:59 +0000 (21:13 +0100)]
mount: cleanup KERNEL_VERSION, remove my_dev_t.h

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoblockdev: use lib/blkdev.c, fix --report
Karel Zak [Wed, 7 Nov 2007 19:59:28 +0000 (20:59 +0100)]
blockdev: use lib/blkdev.c, fix --report

This patch replaces duplicate code with blkdev_ functions from
lib/blkdev.c.

The patch also fix the output from "blockdev --report". The Size field
was in 512-byte sectors instead in real size in bytes.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: cleanup BLK* ioctls usage
Karel Zak [Wed, 7 Nov 2007 18:05:31 +0000 (19:05 +0100)]
fdisk: cleanup BLK* ioctls usage

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomkswap: cleanup kB vs. KiB usage in error messages
Karel Zak [Wed, 7 Nov 2007 12:46:34 +0000 (13:46 +0100)]
mkswap: cleanup kB vs. KiB usage in error messages

mkswap(8) man page is talking about KiB (2^10), but the mkswap binary
uses kB (10^3) in error messages. That's strange. Let's use KiB
everywhere.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomkswap: BLKGETSIZE cleanup
Karel Zak [Wed, 7 Nov 2007 12:26:27 +0000 (13:26 +0100)]
mkswap: BLKGETSIZE cleanup

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agolib: add blkdev.{c,h}
Stefan Krah [Wed, 7 Nov 2007 11:37:30 +0000 (12:37 +0100)]
lib: add blkdev.{c,h}

Now we duplicate BLK* ioctls on many places... This patch also
fix BLKGETSIZE64 usage in dependence on kernel version.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Stefan Krah <stefan@bytereef.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomkswap: linux_version() code consolidation
Karel Zak [Tue, 6 Nov 2007 01:40:49 +0000 (02:40 +0100)]
mkswap: linux_version() code consolidation

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agolib: add linux_version.{c,h}
Stefan Krah [Tue, 6 Nov 2007 01:40:13 +0000 (02:40 +0100)]
lib: add linux_version.{c,h}

Signed-off-by: Stefan Krah <stefan@bytereef.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update fi.po (from translationproject.org)
Lauri Nurmi [Tue, 6 Nov 2007 00:35:42 +0000 (01:35 +0100)]
po: update fi.po (from translationproject.org)

17 years agodocs: fix ChangeLog URL
Pascal Terjan [Sat, 3 Nov 2007 10:55:52 +0000 (11:55 +0100)]
docs: fix ChangeLog URL

Signed-off-by: Pascal Terjan <pterjan@linuxfr.org>
17 years agosetarch: tweak the help text, and gettextize a forgotten message
Benno Schulenberg [Mon, 5 Nov 2007 23:26:59 +0000 (00:26 +0100)]
setarch: tweak the help text, and gettextize a forgotten message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
17 years agomkfs.cramfs: remove unused header file
lizf [Thu, 1 Nov 2007 09:14:52 +0000 (17:14 +0800)]
mkfs.cramfs: remove unused header file

Remove including of assert.h

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
17 years agomount: remove MS_{REPLACE,AFTER,BEFORE,OVER}
Karel Zak [Tue, 6 Nov 2007 00:05:27 +0000 (01:05 +0100)]
mount: remove MS_{REPLACE,AFTER,BEFORE,OVER}

mount(8) and linux kernel don't support these mount flags. It's legacy
from an unimplemented stuff.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosfdisk: cleanup 83 gcc warnings
Randy Dunlap [Tue, 16 Oct 2007 00:38:57 +0000 (17:38 -0700)]
sfdisk: cleanup 83 gcc warnings

Fix strict gcc warnings that come from using:
  ("-Wall -Wp,-D_FORTIFY_SOURCE=2")

83 warnings fixed:
sfdisk.c:249: warning: pointer targets in initialization differ in signedness
sfdisk.c:376: warning: pointer targets in passing argument 1 of 'chars_to_ulong' differ in signedness
sfdisk.c:702: warning: pointer targets in passing argument 1 of 'copy_to_int' differ in signedness
sfdisk.c:703: warning: pointer targets in passing argument 1 of 'copy_to_int' differ in signedness
sfdisk.c:1709: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness
sfdisk.c:1709: warning: pointer targets in assignment differ in signedness
sfdisk.c:1714: warning: pointer targets in passing argument 1 of 'index' differ in signedness
sfdisk.c:1714: warning: pointer targets in assignment differ in signedness
sfdisk.c:1719: warning: pointer targets in passing argument 1 of 'index' differ in signedness
sfdisk.c:1719: warning: pointer targets in assignment differ in signedness
sfdisk.c:1723: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:1723: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:1723: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:1723: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:1723: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:1723: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:1729: warning: pointer targets in passing argument 1 of 'index' differ in signedness
sfdisk.c:1729: warning: pointer targets in assignment differ in signedness
sfdisk.c:1739: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:1739: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:1739: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:1739: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:1739: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:1739: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:1739: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:1739: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
sfdisk.c:2021: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2021: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2021: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2021: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2021: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2021: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2059: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2059: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2059: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2059: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2059: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2059: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2061: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2061: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2061: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2061: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2061: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2061: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2063: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2063: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2063: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2063: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2063: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2063: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2065: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2065: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2065: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2065: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2065: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2065: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2067: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness
sfdisk.c:2083: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness
sfdisk.c:2096: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness
sfdisk.c:2130: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2130: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2130: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2130: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2130: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2130: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2132: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
sfdisk.c:2154: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness
sfdisk.c:2155: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness
sfdisk.c:2156: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness
sfdisk.c:2167: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness
sfdisk.c:2168: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness
sfdisk.c:2169: warning: pointer targets in passing argument 1 of 'get_ul' differ in signedness

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoscript: cleanup gcc warnings
Randy Dunlap [Tue, 16 Oct 2007 00:38:40 +0000 (17:38 -0700)]
script: cleanup gcc warnings

Fix strict gcc warnings that come from using:
  ("-Wall -Wp,-D_FORTIFY_SOURCE=2")

script.c:239: warning: ignoring return value of 'write', declared with attribute warn_unused_result
script.c:330: warning: ignoring return value of 'write', declared with attribute warn_unused_result
script.c:331: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomore: cleanup gcc warnings
Randy Dunlap [Tue, 16 Oct 2007 00:38:22 +0000 (17:38 -0700)]
more: cleanup gcc warnings

Fix strict gcc warnings that come from using:
  ("-Wall -Wp,-D_FORTIFY_SOURCE=2")

more.c:185: warning: passing argument 1 of 'setupterm' discards qualifiers from pointer target type
more.c:205: warning: passing argument 1 of 'tparm' discards qualifiers from pointer target type
more.c:812: warning: pointer targets in passing argument 2 of 'mbrtowc' differ in signedness
more.c:931: warning: pointer targets in passing argument 2 of 'mbrtowc' differ in signedness
more.c:1285: warning: pointer targets in passing argument 1 of 'ttyin' differ in signedness
more.c:1486: warning: pointer targets in passing argument 1 of 'ttyin' differ in signedness
more.c:1879: warning: pointer targets in passing argument 2 of 'mbrtowc' differ in signedness

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
17 years agobuild: don't deliver col* and ul as part of bsdutils for now. Closes: #446939
LaMont Jones [Mon, 29 Oct 2007 20:07:55 +0000 (14:07 -0600)]
build: don't deliver col* and ul as part of bsdutils for now.  Closes: #446939

Bsdmainutils delivers these files, so we'll not conflict with them for now.

17 years agoMerge branch 'stable/v2.13'
LaMont Jones [Tue, 30 Oct 2007 14:27:59 +0000 (08:27 -0600)]
Merge branch 'stable/v2.13'

17 years agochangelog: release
LaMont Jones [Mon, 29 Oct 2007 20:30:37 +0000 (14:30 -0600)]
changelog: release

17 years agobuild: don't deliver col* and ul as part of bsdutils for now. Closes: #446939
LaMont Jones [Mon, 29 Oct 2007 20:07:55 +0000 (14:07 -0600)]
build: don't deliver col* and ul as part of bsdutils for now.  Closes: #446939

Bsdmainutils delivers these files, so we'll not conflict with them for now.

17 years agoMerge commit 'origin/stable/v2.13' into stable/v2.13
LaMont Jones [Fri, 26 Oct 2007 12:48:29 +0000 (06:48 -0600)]
Merge commit 'origin/stable/v2.13' into stable/v2.13

17 years agoMerge commit 'origin/master'
LaMont Jones [Fri, 26 Oct 2007 12:48:18 +0000 (06:48 -0600)]
Merge commit 'origin/master'

Conflicts:

mount/Makefile.am
mount/mount.c

17 years agodocs: add info about .bugfix releases and branches
Karel Zak [Mon, 22 Oct 2007 08:47:46 +0000 (10:47 +0200)]
docs: add info about .bugfix releases and branches

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomkswap: possible to crash with SELinux relabeling support
KaiGai Kohei [Mon, 22 Oct 2007 08:30:19 +0000 (10:30 +0200)]
mkswap: possible to crash with SELinux relabeling support

When fgetfilecon() is failed with -ENODATA, this process does not
exit.  However, "oldcontext" is not initialized in this case, so
context_new() will be called with uninitialized "oldcontext" at the
next.

Finally, it makes a segmentation fault, because context_new() have to
refer an incorrect memory region.

The attached patch fixes this matter using matchpathcon().  If we
cannot obtain actual file context due to -ENODATA, a context which is
returned by matchpathcon() is applied as oldcontext.  Then, the type
of the context is relabeled to "swapfile_t" explicitly.

Signed-off-by: KaiGai Kohei <kaigai@kaigai.gr.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: use losetup -s
Karel Zak [Thu, 25 Oct 2007 22:55:36 +0000 (00:55 +0200)]
tests: use losetup -s

Signed-off-by: Karel Zak <kzak@redhat.com>