[systemd-devel] [PATCH 1/2] Adding unmount functions to be used in shutdown
Karel Zak
kzak at redhat.com
Wed Oct 6 06:43:38 PDT 2010
On Wed, Oct 06, 2010 at 03:01:02PM +0200, Lennart Poettering wrote:
> > > + if (streq(mp->path, "/"))
> > > + continue;
> > > +
> > > + /* Trying to umount. Forcing to umount if busy (only for NFS mounts) */
> > > + if (umount2(mp->path, MNT_FORCE) == 0)
> >
> > You have to execute things like /sbin/umount.<type> if you want to run your
> > code on systems with NFS or cluster filesystems.
>
> Can you elaborate on this? what does the umount.nfs tool do that matters
I don't know and I don't care, the umount.<type> is supported API :-)
> here? I can only see /bin/umount.udisks in my install here...
$ repoquery -q --whatprovides /sbin/umount.*
glusterfs-client-0:2.0.9-2.fc14.x86_64
nfs-utils-1:1.2.2-6.fc14.x86_64
udisks-0:1.0.1-4.fc14.x86_64
(The umount.glusterfs is probably nonsense rhbz#640620)
Karel
--
Karel Zak <kzak at redhat.com>
http://karelzak.blogspot.com
More information about the systemd-devel
mailing list