]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: remount does not add entry to mtab file
authorKarel Zak <kzak@redhat.com>
Mon, 27 Aug 2012 17:26:07 +0000 (19:26 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 27 Aug 2012 17:26:07 +0000 (19:26 +0200)
commitc3085df65fe18c9f6077e1903a6ead19a4318d6d
tree71407b2d1c981e11eb7e8bab425008115d75bf3b
parent1abde0cdbc3e9e5ec21427e2a13647e9c5de075b
libmount: remount does not add entry to mtab file

 # mount -n -o ro /dev/sda1 /
 # mount -o remount,rw /dev/sda1 /

For the backward compatibility the command mount(8) should to add a
new entry to the file /etc/mtab on remount if the original entry not
found (because previous mount has been called with -n).

Reported-by: <frinnst> on IRC
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab_update.c