xfs
[Top] [All Lists]

Re: ls -l versus du -sk after xfs_fsr

To: Ludek Finstrle <luf@xxxxxxxxxx>
Subject: Re: ls -l versus du -sk after xfs_fsr
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Mon, 26 Sep 2005 10:23:59 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20050926071451.GA3751@xxxxxxxxxxxxxxxxx>
References: <20050926071451.GA3751@xxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)
Ludek Finstrle wrote:
Hello,

  I have problem with diferrence in filesize between ls -l and du -sk
after xfs_fsr (it was ok before running xfs_fsr):

# ls -l Drafts
-rw-rw----  1  user  group  74646  Apr 15 17:37  Drafts
# du -b Drafts
3221303296  Drafts

Is there a way to correct it?

can you run xfs_bmap -v Drafts

I'm curious to see how this is laid out on disk.... whether it is really using 3G of blocks...

If the file is otherwise readable (i.e. the first 74646 bytes are right) simply copying the file to a new name & back -might- solve the problem. I haven't seen this particular problem before...

If you can keep the original problematic file around, though, it'd be interesting to figure out what's happened here.

-Eric

My versions:
kernel 2.4.31 vanilla + ACL patches
xfsprogs-2.6.36-1
acl-2.2.31-1
attr-2.4.23-0

Thanks

Luf



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