Go to file
Karel Zak 0c0f93fcc3 fsck: improve whole-disk check, detect stacked devices
The current heuristic for conversion from partition to whole-disk
is based on device names. It's pretty poor. This patch replaces this
code with blkid_devno_to_wholedisk(). This solution is based on
/sys FS and it works for arbitrary partitioned devices.

The another problem is the way how fsck determines stacked devices.
The current code checks device name for "md" prefix only. It does not
care about DM, dm-ccypt, and so on. This patch uses
/sys/block/.../slaves/, but it does not fully resolves dependencies
between all devices. The method is simple -- fsck does not check
stacked devices in parallel with any other device.

Signed-off-by: Karel Zak <kzak@redhat.com>
2010-08-19 15:33:45 +02:00
config libmount: add basic dirs 2010-06-03 15:20:10 +02:00
disk-utils mkfs: add `mkfs.ext4` to section SEE ALSO of `mkfs.8`. 2010-07-29 17:45:57 +02:00
docs docs: update v2.18 ReleaseNotes 2010-06-30 14:51:06 +02:00
example.files uuidd: move uuidd.rc to misc-utils directory 2009-06-30 15:04:49 +02:00
fdisk cfdisk: fix n+1 again 2010-08-09 13:33:17 +02:00
fsck fsck: improve whole-disk check, detect stacked devices 2010-08-19 15:33:45 +02:00
getopt getopt.1: formatting 2009-08-17 12:11:13 +02:00
hwclock hwclock: add --predict for predicting RTC reading at a given time 2010-03-29 10:30:01 +02:00
include lscpu: fix CPU_EQUAL_S macro 2010-06-16 22:50:42 +02:00
lib portability: fix mntent.h and pty.h usage 2010-07-26 11:43:51 +02:00
licenses Imported from util-linux-2.9v tarball. 2006-12-07 00:25:39 +01:00
login-utils agetty: add -c to reuse cflags 2010-08-18 09:38:49 +02:00
m4 build-sys: rewrite TLS detection 2009-12-04 15:45:19 +01:00
misc-utils look: fix memory leak in look(1) 2010-07-29 17:51:02 +02:00
mount losetup: use stdout and return 0 for --help 2010-08-04 11:54:19 +02:00
partx build-sys: replace ../ with $top_srcdir 2010-05-24 12:37:12 +02:00
po po: merge changes 2010-06-30 14:46:19 +02:00
schedutils chrt: add --verbose to man page, correct -V for --version, alphabetize 2010-06-15 12:34:09 +02:00
shlibs libblkid: wrong PT detection on RAID0 2010-08-13 09:59:31 +02:00
sys-utils lscpu: add -x and {On,Off}-line CPU(s) mask/list 2010-08-11 15:41:48 +02:00
tests tests: add blkid test for partitioned RAID0 2010-08-18 09:38:50 +02:00
text-utils portability: use standard constants 2010-07-26 11:41:04 +02:00
tools fdisk: rename ENABLE_CMDTAGQ macro 2008-11-26 14:24:52 +01:00
.gitignore git: ignore index files generated by ctags and cscope 2010-05-28 14:29:26 +02:00
AUTHORS docs: update AUTHORS file 2010-06-07 14:19:41 +02:00
COPYING Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
DEPRECATED docs: mark line(1) as deprecated 2010-08-04 12:14:57 +02:00
INSTALL Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
Makefile.am fsck: improve whole-disk check, detect stacked devices 2010-08-19 15:33:45 +02:00
NEWS build-sys: release++ (v2.18) 2010-06-30 15:08:21 +02:00
README docs: README width and language correction 2009-09-07 12:52:33 +02:00
README.devel textual: slightly improve two README files 2010-06-30 12:51:36 +02:00
README.licensing textual: slightly improve two README files 2010-06-30 12:51:36 +02:00
TODO docs: add note about sfdisk to TODO 2010-08-10 09:06:29 +02:00
autogen.sh build-sys: remove gtkdocize from autogen.sh 2009-11-07 00:06:53 +01:00
configure.ac build-sys: drop shlibs/Makefile.am that only adds SUBDIRS 2010-07-29 17:48:01 +02:00

README

                          util-linux-ng
           (fork of util-linux, based on version 2.13-pre7)

         util-linux is a random collection of Linux utilities

WEB PAGE:

     http://kernel.org/~kzak/util-linux-ng/


MAILING LIST:

      E-MAIL: util-linux-ng@vger.kernel.org
      URL:    http://vger.kernel.org/vger-lists.html#util-linux-ng


DOWNLOAD:

      ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/


SOURCE CODE:

      Web interface:
          http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git
      Checkout:
          git clone git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git util-linux-ng

NLS (PO TRANSLATIONS):

      PO files are maintained by:
          http://translationproject.org/domain/util-linux-ng.html

NEUTRALITY:

      The stuff in util-linux-ng should be rather distribution-neutral.
      No RPMs/DEBs/... are provided - get yours from your distributor.


VERSION SCHEMA:

      Standard releases:

          <major>.<minor>[.<maint>[.<bugfix>]]

             major = fatal and deep changes
             minor = typical release with new fetures
             maint = maintenance releases; bug fixes only
             bugfix = unplanned releases for critical/security bugs

      Development releases:

         <major>.<minor><suffix>

             suffix = "devel" or "-rc<N>"


COMPILATION:

      See the INSTALL file for more details.

      Notes:
            * use SUID_CFLAGS and SUID_LDFLAGS when you want to define special
              compiler options for typical suid programs, for example:

                  ./configure SUID_CFLAGS="-fpie" SUID_LDFLAGS="-pie"

              This feature is currently supported for chfn, chsh, newgrp,
              write, mount, and umount.


STATIC LINKING:

      Use --enable-static-programs[=LIST] configure option when you want to use
      statically linked programs.

      Note, mount(8) uses get{pw,gr}nam() and getpwuid() functions for
      translation from username and groupname to UID and GID. These functions
      could be implemented by dynamically loaded independent modules (NSS) in
      your libc (e.g. glibc). These modules are not statically linked to
      mount(8) and mount.static is still using dlopen() like dynamically
      linked version.

      The translation won't work in environment where NSS modules are
      not installed.

      For example normal system (NSS modules are available):

              # ./mount.static -v -f -n -ouid=kzak /mnt/foo
              LABEL=/mnt/foo on /mnt/foo type vfat (rw,uid=500)
                                                       ^^^^^^^
      and without NSS modules:

              # chroot . ./mount.static -v -f -n -ouid=kzak /mnt/win
              LABEL=/mnt/win on /mnt/win type vfat (rw,uid=kzak)
                                                       ^^^^^^^^