Quota reports inconsistent result with du command

I have Solaris 9 9/04 installed.

root@ultrasoul #quota -v ultrasoul

Disk quotas for ultrasoul (uid 201):

Filesystem usage quota limit timeleft files quota limit timeleft

/var/mail 0 56320 56320 1 8 10

/usr0 2148 307200 307200 28 0 0

root@ultrasoul #du -hs /var/mail/ultrasoul

50M /var/mail/ultrasoul

I wonder why the size of /var/mail is 56MB but du tells that the /var/mail/ultrasoul is 50MB.

If more info is needed, pls let me know.

[501 byte] By [staygreena] at [2007-11-26 15:11:57]
# 1

> I have Solaris 9 9/04 installed.

>

>

> root@ultrasoul #quota -v ultrasoul

>Disk quotas for ultrasoul (uid 201):

> Filesystem usage quota limit timeleft files quota

> limit timeleft

>/var/mail 0 56320 56320 1 8 10

> /usr0 2148 307200 307200 28 0 0

>

>root@ultrasoul #du -hs /var/mail/ultrasoul

> 50M /var/mail/ultrasoul

Well, any data in /var/mail but outside ultrasoul would appar in df but not du. The correct analog would be to run 'du -sk /var/mail'.

Also, if any open files in the filesystem were unlinked, they would remain on the filesystem, but cannot be seen by 'du'. That's not very common on /var/mail, though.

--

Darren

Darren_Dunhama at 2007-7-8 9:03:02 > top of Java-index,General,Talk to the Sysop...