Re: waiting for MNT_DETACH

From: Ingo Oeser
Date: Mon Jul 03 2006 - 18:41:39 EST


Hi Ian,

On Sunday, 2. July 2006 20:51, Ian Turner wrote:
> I administer a two-node high-availability cluster using DRBD and heartbeat.
>
> So, here's the question: Is there a way to check if a call to umount2(...,
> MNT_DETACH) has completed or not?

Check the usage count (refcount) of the DRBD module. It should be as low as
you would expect with a normal umount.

"cat /sys/module/drbd/refcnt" should be the right command.


Regards

Ingo Oeser
-
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/