Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2011 14:53:28 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        =?KOI8-R?B?68/O2MvP1yDl18fFzsnK?= <kes-kes@yandex.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Re[4]: How to check where space is LOST
Message-ID:  <CA%2BtpaK3_wtMk%2BjgWH6ZY4zqJb4-96f5=%2BDE_Q4j1toGMs9ExOQ@mail.gmail.com>
In-Reply-To: <CA%2BtpaK2M3jBsjrrdQUQkFFXecLdy7b29jgmK2zfbYnQ=hzGV-g@mail.gmail.com>
References:  <955223604.20110912012332@yandex.ru> <CA%2BtpaK0Oy-dKvJ6sTnYbP11LukNFiQVz50DQZQdnTG7D%2BuGZ4w@mail.gmail.com> <1395681231.20110912084617@yandex.ru> <CA%2BtpaK1efLVwOYj7ZaAWLCc-8px=K2oKYZN0iYk0x9%2BydNfP_w@mail.gmail.com> <1479400055.20110912223943@yandex.ru> <CA%2BtpaK2M3jBsjrrdQUQkFFXecLdy7b29jgmK2zfbYnQ=hzGV-g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/9/12 Adam Vande More <amvandemore@gmail.com>

> 2011/9/12 =EB=CF=CE=D8=CB=CF=D7 =E5=D7=C7=C5=CE=C9=CA <kes-kes@yandex.ru>
>
>> # fstat -f /var
>>
>> USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
>>
>> root     snmpd      20545    3 /var      47141 -rw-------  37217152  w
>>
>> root     snmpd      20545    8 /var      47159 -rw-r-----     728  r
>>
>> root     cron       20455   wd /var      47105 drwxr-x---     512  r
>>
>> ...
>>
>>
>> # find /var -inum 47141 -ls
>>
> You find the inode number with fstat(1) then use find(1) to translate it =
to
> a filename.  It works fine here, if it doesn't work for you perhaps you h=
ave
> a user error or there is some other sort of bug.
>

One other thing, it's possible the inode is gone by the time you have run
find(1) so be sure you are working with current fstat(1) output.  May be
easier to script the transform if this is something you are doing regularly=
.


--=20
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK3_wtMk%2BjgWH6ZY4zqJb4-96f5=%2BDE_Q4j1toGMs9ExOQ>