* I think that get direct directory size int the xfs file system
@ 2015-01-26 9:07 lihongliang
2015-01-27 12:44 ` Brian Foster
0 siblings, 1 reply; 2+ messages in thread
From: lihongliang @ 2015-01-26 9:07 UTC (permalink / raw)
To: xfs
[-- Attachment #1.1: Type: text/plain, Size: 638 bytes --]
Hello
Can get direct directory size int the XFS file system?
example:
root@ficsNode1 test1]# mount | grep xfs
/dev/sdc on /xfs type xfs (rw,uquota)
[root@ficsNode1 test1]# pwd
/xfs/test1
[root@ficsNode1 test1]# ls -lh
total 5M
-rw-r--r-- 1 root root 1.0M Jan 26 09:33 block1
-rw-r--r-- 1 root root 1.0M Jan 26 09:33 block2
-rw-r--r-- 1 root root 1.0M Jan 26 09:33 block3
-rw-r--r-- 1 root root 1.0M Jan 26 09:33 block4
-rw-r--r-- 1 root root 1.0M Jan 26 09:33 block5
[root@ficsNode1 test1]#
can I get direct it by call system function the that the /xfs/test1 is 5M?
lihongliang@sobey.com
[-- Attachment #1.2: Type: text/html, Size: 1711 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: I think that get direct directory size int the xfs file system
2015-01-26 9:07 I think that get direct directory size int the xfs file system lihongliang
@ 2015-01-27 12:44 ` Brian Foster
0 siblings, 0 replies; 2+ messages in thread
From: Brian Foster @ 2015-01-27 12:44 UTC (permalink / raw)
To: lihongliang@sobey.com; +Cc: xfs
On Mon, Jan 26, 2015 at 05:07:37PM +0800, lihongliang@sobey.com wrote:
> Hello
> Can get direct directory size int the XFS file system?
> example:
> root@ficsNode1 test1]# mount | grep xfs
> /dev/sdc on /xfs type xfs (rw,uquota)
> [root@ficsNode1 test1]# pwd
> /xfs/test1
> [root@ficsNode1 test1]# ls -lh
> total 5M
> -rw-r--r-- 1 root root 1.0M Jan 26 09:33 block1
> -rw-r--r-- 1 root root 1.0M Jan 26 09:33 block2
> -rw-r--r-- 1 root root 1.0M Jan 26 09:33 block3
> -rw-r--r-- 1 root root 1.0M Jan 26 09:33 block4
> -rw-r--r-- 1 root root 1.0M Jan 26 09:33 block5
> [root@ficsNode1 test1]#
>
> can I get direct it by call system function the that the /xfs/test1 is 5M?
>
No, because that 5MB data point is not a direct attribute of the
directory. It's the sum of the space used by files within the directory.
The blocks used by the directory itself are filled with directory
entries (e.g., data structures that contain the file names listed above
along with a reference to an inode).
A tool like ls or du is used to process a directory to obtain cumulative
data such as the total space used by files in some particular subtree.
Brian
>
> lihongliang@sobey.com
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-27 12:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-26 9:07 I think that get direct directory size int the xfs file system lihongliang
2015-01-27 12:44 ` Brian Foster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox