SCIENTIFIC-LINUX-USERS Archives

October 2006

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stephan Wiesand <[log in to unmask]>
Reply To:
Stephan Wiesand <[log in to unmask]>
Date:
Mon, 9 Oct 2006 15:14:17 +0200
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (31 lines)
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

ATOM RSS1 RSS2