Go to file
Zhi Li 04f087eced mountpoint: fix a minor bug with 0:0 devno
zhi@debian-lizhi:~$ mountpoint /sys
/sys is not a mountpoint
zhi@debian-lizhi:~$

The problem is in mountpoint.c, function dir_to_device(), which uses 0 as an
error return value, but for sysfs 0 is its device number:

zhi@debian-lizhi:~$ cat /proc/self/mountinfo
14 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
15 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw

My change is on dir_to_device, seperating device number from return value.

Signed-off-by: Zhi Li <lizhi1215@gmail.com>
2012-02-29 14:53:31 +01:00
Documentation docs: corrections to FSF license files, and postal address 2012-02-24 14:13:35 +01:00
config build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
disk-utils build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
fdisk build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
fsck fsck: make fs->type usage more robust [smatch scan] 2012-01-17 17:28:46 +01:00
getopt docs: corrections to FSF license files, and postal address 2012-02-24 14:13:35 +01:00
hwclock build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
include include: add /proc/locks path to pathnames 2012-02-29 12:27:41 +01:00
lib build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
libblkid build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
libmount build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
libuuid build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
login-utils build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
m4 build-sys: fix UL_INIT_BUILD macro 2011-11-04 14:08:30 +01:00
man/ru build-sys: s/ruman/ruman1/ 2012-02-28 18:11:23 +01:00
misc-utils lslocks: add --notruncate, minor fixes in man page 2012-02-29 14:26:46 +01:00
mount build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
partx build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
po po: merge changes 2012-02-24 11:38:14 +01:00
schedutils build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
sys-utils mountpoint: fix a minor bug with 0:0 devno 2012-02-29 14:53:31 +01:00
term-utils agetty: check localtime() result 2012-02-06 16:02:28 +01:00
tests tests: make output and diff dirs usage more robust 2012-02-28 14:37:45 +01:00
text-utils build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
tools tools: use gpg-aggent in ko-release-gen 2012-02-07 11:30:56 +01:00
.gitignore build-sys: rename and move macros 2011-11-03 12:32:49 +01:00
AUTHORS docs: update AUTHORS file 2012-02-24 11:44:38 +01:00
COPYING docs: corrections to FSF license files, and postal address 2012-02-24 14:13:35 +01:00
ChangeLog build-sys: use AUTOMAKE_OPTIONS = gnu 2011-05-26 15:04:01 +02:00
Makefile.am build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
NEWS build-sys: release++ (v2.21) 2012-02-24 11:53:46 +01:00
README docs: use correct translation project url 2012-01-30 12:32:27 +01:00
README.licensing rename util-linux-ng back to util-linux 2010-11-30 11:41:59 +01:00
autogen.sh build-sys: enhance error message for missing libtoolize 2011-10-10 13:56:53 +02:00
configure.ac lslocks: new command 2012-02-29 14:08:11 +01:00

README

                                  util-linux

              util-linux is a random collection of Linux utilities

     Note that in years 2006-2010 this project used the name "util-linux-ng".

MAILING LIST:

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


DOWNLOAD:

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


SOURCE CODE:

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


NLS (PO TRANSLATIONS):

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


VERSION SCHEMA:

      Standard releases:

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

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

      Development releases:

         <major>.<minor>-rc<N>