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] testing that volumes are not currently attached to loopback

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] testing that volumes are not currently attached to loopback devices
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Thu, 9 Apr 2009 22:42:58 +1000
Delivery-date: Thu, 09 Apr 2009 05:43:27 -0700
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acm5ELYCpXoIbRcqRsSNkDYTuxdj1A==
Thread-topic: testing that volumes are not currently attached to loopback devices
xend will not start a domain if one of the block devices is currently
mounted elsewhere, but it will not detect if the device is currently
attached to a loopback device. I wouldn't have thought this a problem,
provided that the loop device itself wasn't in use, but it causes all
sorts of strange things to happen.

My loop device was mounted with the following command 'losetup --offset
32256 /dev/loop4 /dev/vg00/virt-domu_name-0', which allows me to mount
the filesystem with ntfs-3g (32256 is the offset of the partition in the
disk image).

The symptoms were that windows would BSoD shortly after login, chkdsk
always reported errors (as done under the recovery console) and changes
made in the DomU filesystem didn't seem to stick. As soon as I
un-attached the loopback device (losetup -d) all those problems went
away. For some strange reason this didn't result in the total
destruction of the filesystem :)

The box I'm testing this on is 3.1.x... is it fixed in any later
versions? Any idea how to detect if a volume is attached via losetup?
Any idea why this causes a problem at all?

Thanks

James

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

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