Go to file
Mark McLoughlin c332702516 mount: "can't create lock file" message sometimes means failure, sometimes not
What the patch does is goes from the situation where:

  1) If /etc/mtab doesn't exist and /etc is read-only, you get the
     "can't create lock file" message and the mount fails

  2) If /etc/mtab does exist and /etc is read-only,you get the same
     message but the mount succeeds

Clearly, the failure to update /etc/mtab should either cause the mount
to fail or not ... sometimes causing it to fail, and sometimes not
(each with the same message) is not useful.

This patch sets the same behaviour for create and update mtab. In both
cases it prints error message and the mount succeeds.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-02-14 14:28:19 +01:00
config build-sys: use dist_man_MANS instead of man_MANS 2007-12-17 10:08:49 +01:00
disk-utils build-sys: use dist_man_MANS instead of man_MANS 2007-12-17 10:08:49 +01:00
docs docs: update ReleaseNotes 2007-08-28 00:38:57 +02:00
example.files raw: add file with udev rule example 2007-01-26 20:06:38 +01:00
fdisk fdisk: better fallback for get_random_id() 2008-01-28 14:55:04 +01:00
getopt build-sys: use dist_man_MANS instead of man_MANS 2007-12-17 10:08:49 +01:00
hwclock build-sys: use dist_man_MANS instead of man_MANS 2007-12-17 10:08:49 +01:00
include include: <stdint.h> provides everything 2007-12-18 01:10:48 +01:00
lib tests: move test_bkdev to lib/ 2007-11-28 12:27:00 +01:00
licenses Imported from util-linux-2.9v tarball. 2006-12-07 00:25:39 +01:00
login-utils login: fix a small memory leak and remove unnecessary zeroing 2008-01-28 14:07:16 +01:00
misc-utils setterm: add -blan [force|poke] options for TIOCL_{BLANKED,BLANK}SCREEN 2008-02-08 02:01:27 +01:00
mount mount: "can't create lock file" message sometimes means failure, sometimes not 2008-02-14 14:28:19 +01:00
partx partx: use swab macros from bitops.h 2007-12-17 13:57:28 +01:00
po po: update POTFILES.in 2007-11-13 21:27:41 +01:00
schedutils build-sys: use dist_man_MANS instead of man_MANS 2007-12-17 10:08:49 +01:00
sys-utils rtcwake: fix UTC time usage 2008-02-08 01:33:39 +01:00
tests cal: fix weekday alignment for certain locales 2008-01-17 02:21:53 +01:00
text-utils more: replace CBAUD with cfgetispeed() 2008-01-03 16:43:53 +01:00
tools tools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans 2007-06-15 10:17:51 +02:00
.gitignore build-sys: amend .gitignore 2007-05-16 11:43:30 +02:00
AUTHORS docs: update AUTHORS file 2007-09-05 11:55:50 +02:00
COPYING Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
DEPRECATED docs: mark vipw(1) is deprecated in favor of vipw from shadow-utils 2008-01-07 12:53:32 +01:00
INSTALL Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
Makefile.am build-sys: build arch(1) during distcheck 2007-12-17 10:14:41 +01:00
NEWS docs: fix ChangeLog URL 2007-11-06 01:09:04 +01:00
README docs: add info about .bugfix releases and branches 2007-10-25 21:50:59 +02:00
README.devel docs: add note about incorrect tag 2.13.1 2007-12-05 12:41:30 +01:00
README.licensing docs: fix BSD licence name in README.licensing 2007-08-17 13:02:03 +02:00
TODO cal: add support for highlighting an arbitrary date 2007-10-11 14:19:39 +02:00
autogen.sh build-sys: autogen.sh reports versions of autotools now 2007-09-02 13:43:31 +02:00
configure.ac setterm: add -blan [force|poke] options for TIOCL_{BLANKED,BLANK}SCREEN 2008-02-08 02:01:27 +01:00

README

                          utils-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.