[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] 'block' script broken: wrong error message
On Wed, Jul 04, 2007 at 06:32:36PM +0100, Ian Pratt wrote: > > And another thing: why are path names compared instead of inode > numbers. > > If you know how to get the filesystem and inode numbers out of losetup, > great! # losetup -a /dev/loop0: [fe04]:65738 (/var/lib/vm/0/hda1.img) /dev/loop1: [fe04]:65752 (/var/lib/vm/0/hda3.img) /dev/loop10: [fe04]:17097 (/etc/vm/images/1.3r5136/hda2.img) # stat /var/lib/vm/0/hda1.img File: `/var/lib/vm/0/hda1.img' Size: 3072 Blocks: 8 IO Block: 4096 regular file Device: fe04h/65028d Inode: 65738 Links: 1 Access: (0660/-rw-rw----) Uid: ( 996/ vm) Gid: ( 996/ vm) Access: 2007-07-04 15:34:22.000000000 +0200 Modify: 2007-07-04 15:33:23.000000000 +0200 Change: 2007-07-04 15:33:59.000000000 +0200 So "[fe04]" in "losetup -a" output is device id and the number after that is the inode number. # rpm -q losetup losetup-2.13-0.pre7.2.i686 So it cames from util-linux version 2.13pre7. Greets, Jacek _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |