Re: Incorrect file size?



Hi,

On Fri, Jun 20, 2008 at 03:34:26PM +0300, Krassimir Slavchev wrote:
# ls -l
total 1239702
- -rw------- 1 vscan vscan 4398199488512 Jun 20 15:18 auto-whitelist
- -rw------- 1 vscan vscan 22 Jun 20 15:18 bayes.lock
- -rw------- 1 vscan vscan 102168 Jun 20 15:18 bayes_journal
- -rw------- 1 vscan vscan 1099639861248 Jun 20 15:18 bayes_seen
- -rw------- 1 vscan vscan 21057536 Jun 20 15:18 bayes_toks

but:
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ar0s1a 19G 3.9G 14G 22% /
...

# du
1239758 .

# mount
/dev/ar0s1a on / (ufs, local)
...

This is most likely due to the use of 'sparse files': sequential file
data that consists of only zeros doesn't need have actual storage
associated to it. This is quite normal in UNIX environments, and quite
harmless.

--
Rink P.W. Springer - http://rink.nu
"Anyway boys, this is America. Just because you get more votes doesn't
mean you win." - Fox Mulder
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Disable read/write caching to disk?
    ... FreeBSD. ... or a Global UFS. ... >> ro mount only sees the changes from the time of ro mount. ... > the filesystem even though they aren't accessible. ...
    (freebsd-current)
  • Re: Cant mount(1M) a gunzipped/lofied x86.miniroot file on SPARC ...
    ... and mount as a UFS filesystem ... I can do all of the steps above, *except* the mount ... SPARC UFS and x86 UFS are not compatible. ... Have the x86 machine ...
    (comp.unix.solaris)
  • Re: Incorrect file size?
    ... Rink Springer wrote: ... Filesystem Size Used Avail Capacity Mounted on ... /dev/ar0s1a on / (ufs, local) ...
    (freebsd-stable)
  • Re: unmounting a filesystem safely that doesnt exist anymore
    ... You might give the automounter a whirl. ... filesystem on hotplugable hardware look like it's coming from a ... UFS formatted memory stick which complicated things. ... mount a UFS volume but because it's a UFS volume it never feels the ...
    (freebsd-stable)
  • Re: unmounting a filesystem safely that doesnt exist anymore
    ... You might give the automounter a whirl. ... filesystem on hotplugable hardware look like it's coming from a ... UFS formatted memory stick which complicated things. ... mount a UFS volume but because it's a UFS volume it never feels the ...
    (freebsd-questions)