Lazy umount emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Lazy umount is a Linux-only feature that let userland tell the kernel to
umount a filesystem as soon as it drops the last reference to it. It is
used at a few places by GlusterFS and is a portability problem.
brick-replace will not currently work without it, which is a critical
problem.

I wrote a basic lazy umount emulation: it spawn a thread that will try
periodically try to umount. Could someone review?
http://review.gluster.com/8649

For now the prototype is 
int gf_umount_lazy (char *xlname, char *path);

The thing could be factorized further: if this is considered useful, I
can do a umount wrapper with a flag argument which value could be
GF_MNT_LAZY, GF_MNT_FORCE. I can also add a timeout to the periodical
lazy umount attemps. Please comment.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@xxxxxxxxxx
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-devel




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux