Subject: Re: determining an iso from vnd
To: None <netbsd-help@netbsd.org>
From: George Georgalis <george@galis.org>
List: netbsd-help
Date: 02/01/2007 13:30:15
On Thu, Feb 01, 2007 at 12:05:43PM -0600, Jeremy C. Reed wrote:
>> I have a iso file mounted in the filesyste....
>>
>> Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
>> /dev/vnd0d 12M 12M 0B 100% 0 0 0% /mnt
>>
>> is there any way to determine where the iso is located? lsof
>> didn't help me, should it?
>
>vnconfig -l
>
>That will tell you file system and inode. For example:
>
>glacier:/opt/rainier/pkgsrc$ sudo vnconfig -l
>vnd0: /opt (/dev/wd0f) inode 625836
>vnd1: not in use
>vnd2: not in use
>vnd3: not in use
>
>glacier:/opt/rainier/pkgsrc$ find /opt -xdev -inum 625836 2>/dev/null
>/opt/home/reed/netbsd-i386.iso
thanks. that works.
however, this system is fairly new, and part of the design yeilds
a million billion hard links to files on the partition. in other
words we do frequent rsync hardlink snapshots on the partition
with a lot of files. Soon, the find command will take a long time.
I expect the answer is no, but any thoughts on a more direct
alternative (short of find prune path backup) to using find to
discover the file? eg shouldn't we be able to use stat to look up
the file attributes, like name and path, from the inode?
// George
--
George Georgalis, systems architect, administrator <IXOYE><