| To: | YeYin <eyniy@xxxxxx> |
|---|---|
| Subject: | Re: du result is smaller than xfs_quota report |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Wed, 21 Oct 2015 18:13:31 +1100 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxxx>, xfs <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <tencent_756CDB1668EC804906FB9672@xxxxxx> |
| References: | <tencent_7585C3B40C484DE23B248E82@xxxxxx> <0952A0E9-F360-46CE-BE7A-1B8473700F08@xxxxxxxxxxx> <tencent_756CDB1668EC804906FB9672@xxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Wed, Oct 21, 2015 at 02:37:04PM +0800, YeYin wrote:
> > Is anything mounted under that directory hierarchy, and hiding files from
> > du's view?
>
>
> No, Thanks. I found some unlinked inodes, but I can't get some useful
> information:
>
>
> # xfs_db -xr -c 'agi 1' -c p /dev/sda4
....
> unlinked[0-63] = 0:78272 ....
> # xfs_db -xr -c 'inode 78272' -c p /dev/sda4
That's because 78272 isn't an real inode number. It's a AG relative
inode number ("agino") of 78272. The global inode number folds in
the AG number to it, and this is from AG 1. So:
xfs_db> convert agno 1 agino 78272 ino
<inum>
xfs_db> inode <inum>
xfs_db> p
....
Cheers,
Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: du result is smaller than xfs_quota report, YeYin |
|---|---|
| Next by Date: | Re: du result is smaller than xfs_quota report, YeYin |
| Previous by Thread: | Re: du result is smaller than xfs_quota report, YeYin |
| Next by Thread: | Re: du result is smaller than xfs_quota report, YeYin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |