WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] multiple mount protection

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] multiple mount protection
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Tue, 20 Dec 2005 21:50:18 +1100
Delivery-date: Tue, 20 Dec 2005 10:53:00 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYFUyqy4HpIqn9DRsWBHkOz9cNqsg==
Thread-topic: multiple mount protection
Through my own absent mindedness, I keep getting bitten with mounting
filesystems more than once and breaking them. Xen is good in that it
won't start a domain if it detects that one of its filesystems is
already mounted, but only on that physical machine - there are many
other ways I can go wrong!

Are there any filesystems which natively support protection for multiple
mounts? I can't quite imagine how such a thing might work... probably
via a 'scratch pad' where if the filesystem appears to be mounted, the
new mountee would set a flag there and wait for a pre-determined time
(say, 10 seconds), in which time the current mountee (if one existed)
would have reset the flag. If the flag remains set for the
pre-determined time, the new mountee can assume that there was an
unclean unmount (eg crash) and that journal recovery can be commenced.
Block device caching would have to be taken into account, which may be
the bit that makes it unworkable. But even if the possibility of a race
condition exists, it would still probably save me most of the time :)

James

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>