]> git.decadent.org.uk Git - nfs-utils.git/commit
nfs-utils - mtab locking needed on add as well as update
authorIan Kent <raven@themaw.net>
Thu, 14 Dec 2006 11:34:52 +0000 (20:34 +0900)
committerNeil Brown <neilb@suse.de>
Mon, 18 Dec 2006 22:14:03 +0000 (09:14 +1100)
commita0e8627a9265725f4ece39516d5b40ea2e7cc8ac
tree9f558d6135b51b82c8c15d40ccb6d8d26db47beb
parentc52c3bae6e24afb631430161d6bcd318b4467600
nfs-utils - mtab locking needed on add as well as update

Hi all,

I noticed some mtab corruption the other day when doing some autofs
testing but thought nothing of it.

When investigating another issue I came across utils/mount.c:add_mtab
which looks like it adds an entry to /etc/mtab without performing
correct locking. Perhaps this is not needed when adding entries but I
think it is.
utils/mount/mount.c