64 | | For a file, the number of occupied clusters on block device can be directly obtained from the <size>. The <size> attribute is a number of bytes stored on block device (in the directory entry), and copied in memory as a specific field in the associated inode. |
65 | | For a directory, the< size> attribute must be set to 0. The number of occupied clusters on block device can be obtained from the <is_dir> field in the associated inode: This field is set to 0 for a file, and contain the number of occupied clusters, that cannot be zero, because a directory contains always the '.' and '..' entries. |
| 64 | For a file, the number of occupied clusters on the block device can be directly obtained from the <size> attribute, that is a number of bytes stored on block device (in the directory entry), and copied in memory as a specific field in the associated inode. |
| 65 | For a directory, the< size> attribute must be set to 0. The number of occupied clusters on block device can be directly obtained from the <is_dir> field in the associated inode: This field is set to 0 for a file, and contain the number of occupied clusters, that cannot be zero, because a directory contains always the '.' and '..' entries. |