Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 23:32:28 -0800 (PST)
From:      Galen Sampson <galen_sampson@yahoo.com>
To:        current@freebsd.org
Subject:   extended attribute files sizes
Message-ID:  <20020301073228.8391.qmail@web14105.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hello all,

I am curious about the file sizes of the backing files for extend attributes. 
I have compiled a custom kernel that has both extended attribute support and
acl support.  I can sucessfully add and remove acls for files.  I am quite
impressed.  I used a sparse backing file (i.e. no -p option when creating the
backing file) to see if acl's would work.  I am aware of the security
implications of this, but my only goal was to test them out.  The size of the
backing file when used with -p and 388 bytes is too large of an overhead for me
to live with anyhow.

I am curious about the file sizes displayed in 'ls -l' for these sparse backing
files.  The sparse files are indeed small.  Unfortunately I see strange results
with 'ls -l'.  An example...

/usr/home/.attribute/system> ls -l
total 49
-rw-------  1 root  wheel  544094812 Feb 28 23:13 posix1e.acl_access
-rw-------  1 root  wheel         12 Feb 28 23:05 posix1e.acl_default
/usr/home/.attribute/system> du -h
 50K    .
/usr/home/.attribute/system>

Is there any reason the file is shown as being 544,094,812 bytes?  I'm sure it
is actually only 50K.  Just curious if this is something a developer should
look at before the release (this is obviously quite minor compared to other
things).

Galen Sampson


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020301073228.8391.qmail>