Se eu entendi sua pergunta corretamente, eu diria que isso depende. Um Inode normalmente pode vincular a 12 blocos de dados, do artigo da wikipedia :
In the past, the structure may have consisted of eleven or thirteen
pointers, but most modern file systems use fifteen pointers. These
pointers consist of (assuming 15 pointers in the inode):
- Twelve pointers that directly point to blocks of the file's data
(direct pointers)
- One singly indirect pointer (a pointer that points to a block of
pointers that then point to blocks of the file's data)
- One doubly indirect pointer (a pointer that points to a block of
pointers that point to other blocks of pointers that then point to
blocks of the file's data)
- One triply indirect pointer (a pointer that points to a block of
pointers that point to other blocks of pointers that point to other
blocks of pointers that then point to blocks of the file's data)
Assim, enquanto o arquivo for < 12 blocos de dados * (o tamanho do bloco) e o Inode liga-se diretamente aos blocos de dados. Se o arquivo for > 12 blocos então estará usando uma combinação de blocos indiretos e blocos indiretos duplos.
Vocêpodeverquantosblocosumarquivoestáconsumindousandoocomandostat
:
comandostatstat#1
%stat/bin/lsFile:'/bin/ls'Size:117144Blocks:232IOBlock:4096regularfileDevice:fd00h/64768dInode:2496176Links:1Access:(0755/-rwxr-xr-x)Uid:(0/root)Gid:(0/root)Access:2013-04-1716:24:20.593606056-0400Modify:2010-11-0307:43:02.000000000-0400Change:2011-09-0920:25:22.133239242-0400
comandostatstat#2
%stat/etc/httpd/conf/httpd.confFile:'/etc/httpd/conf/httpd.conf'Size:34417Blocks:72IOBlock:4096regularfileDevice:fd00h/64768dInode:3147109Links:1Access:(0644/-rw-r--r--)Uid:(0/root)Gid:(0/root)Access:2012-09-2621:04:47.303641015-0400Modify:2010-10-2706:01:44.000000000-0400Change:2010-12-1819:30:00.719999998-0500
perguntachmod
Quantoaoseuproblemacomchmod
,acreditoquevocêprecisasepararsuaspermissõessimbólicas(u+rg+r)comumavírgula,nãoumespaço,daseguinteforma:
%chmodu+rw,g+rfilename.txt
referências
Aquiestãoalgunsrecursosadicionaissobreinodesquevocêpodequererlerparaobterummelhorentendimentosobreinodes.