waiting for MNT_DETACH

From: Ian Turner
Date: Sun Jul 02 2006 - 14:49:50 EST


Hello all,

I administer a two-node high-availability cluster using DRBD and heartbeat.
One of my concerns is that at failover time, the replicated filesystem might
be in use. I can stop the official services that use the filesystem, but some
other transient scripts might have reason to probe it for a second or two.

umount -l seems like the answer to this question, in that one can ensure no
new accesses will be made to the filesystem, while those that exist can take
their time to finish. The catch is, there does not appear to be a way to tell
if the unmount has really completed or not.

So, here's the question: Is there a way to check if a call to umount2(...,
MNT_DETACH) has completed or not?

Thanks,

--Ian Turner
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/