On Fri, 6 Oct 2006, Jon Peatfield wrote:
> I'm sure that this didn't used to happen (well it doesn't on SL3)...
>
> $ cd /tmp
> $ touch new-file
> $ ls -al new-file
> -rw-r--r-- 1 jp107 other 0 Oct 6 01:08 new-file
> $ du -sk new-file
> 4 new-file
> $ echo > new-file
> $ ls -al new-file
> -rw-r--r-- 1 jp107 other 1 Oct 6 01:08 new-file
> $ du -sk new-file
> 8 new-file
This seems to happen if and only if SELinux is active. Adding a security
label to the 1-byte files with chcon also makes it use 8k on a non-SELinux
system.
> if I make slightly bigger files then the 'extra' blocks allocated also
> goes up (to 32K extra that I've seen).
No idea though how the EAs can amount to 32k.
--
Stephan Wiesand
DESY - DV -
Platanenallee 6
15738 Zeuthen, Germany