[pso] [tema4] inode_size

Costin L lukablurr at yahoo.com
Wed May 20 22:34:45 EEST 2009


Pai cred ca o confirmare e functia din header:
    static inline long get_inodes(struct super_block * sb)
    {
        return IZONE_BLOCKS * sb->s_blocksize / inode_size(sb);
    }

Daca ar exista spatiu nefolosit in fiecare bloc cred ca ar trebui sa fie:
         IZONE_BLOCKS * (sb->s_blocksize / inode_size(sb));

In minix se foloseste cealalta abordare:

    #define MINIX_INODES_PER_BLOCK((BLOCK_SIZE)/(sizeof (struct minix_inode)))

https://cs.pub.ro/~pso/lxrng/linux/include/linux/minix_fs.h#L27



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20090520/6fa20ee4/attachment-0001.htm>


More information about the pso mailing list