]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mount, umount, swapon, fsck, lsblk, findmnt: ignore malformed lines
authorKarel Zak <kzak@redhat.com>
Thu, 15 Oct 2015 09:53:44 +0000 (11:53 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Nov 2015 09:24:17 +0000 (10:24 +0100)
commit9d90f3345dda4209a79a7509126f3902803e5d66
treede94382d14159b14d61d70e25e9370b1cd143175
parent085e8209f8dacb5fd92853969f2c9fdd4be33f9b
mount, umount, swapon, fsck, lsblk, findmnt: ignore malformed lines

The libmount provides way how to deal with parsing errors in fstab --
on error callback function is executed and according to the return
libmount manipulate with the malformed line, possible are three
states:

  1/ fatal error; all file ignored              (callback rc < 0)
  2/ recoverable error; malformed line ignored  (callback rc > 0)
  3/ ignore the error                           (callback rc == 0)

The 2/ is the default if no callback specified.

Unfortunately our utils uses 3/. The correct way is to use 2/.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.c
misc-utils/findmnt.c
misc-utils/lsblk.c
sys-utils/mount.c
sys-utils/swapon-common.c
sys-utils/umount.c