Tuesday 15 September 2015

filesystems - Xfs file size, inode size and block size -



filesystems - Xfs file size, inode size and block size -

ll /srv/node/dcodxx/test.sh -rw-r--r--. 1 root root 7 nov 5 11:18 /srv/node/dcodxx/test.sh

the size of file shown in bytes. file stored in xfs filesystem block size 4096 bytes.

xfs_info /srv/node/sdaxx/ meta-data=/dev/sda isize=256 agcount=32, agsize=7630958 blks = sectsz=4096 attr=2, projid32bit=0 info = bsize=4096 blocks=244190646, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal bsize=4096 blocks=119233, version=2 = sectsz=4096 sunit=1 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0

does mean block can house more 1 file, if not happens remaining bytes (4096-7)? also, 256 bytes reserved inode stored, if stored in same block file, shouldn't file size larger(256+7)?

does mean block can house more 1 file, if not happens remaining bytes (4096-7)?

a block cannot contain more 1 file. if file bigger 1 block, multiple blocks used. modern filesystems xfs have functionality called "inline", files little enough(no more 60 bytes) can stored in inode, in space taken store pointers blocks.

where 256 bytes reserved inode stored, if stored in same block file, shouldn't file size larger(256+7)?

inode info stored in inode table

filesystems inode xfs

No comments:

Post a Comment