File Attributes
File attributes 是 file 的 metadata:描述 OS 如何識別、定位、保護與管理這個 file。
常見 attributes:
- Name:給 user 使用的 symbolic name。
- Identifier:file system 內部識別碼,例如 inode number。
- Type:regular file、directory、device file 等。
- Location:資料 blocks 或 metadata 所在位置。
- Size:目前大小,也可能記錄 allocated size。
- Protection:誰可以 read / write / execute。
- Timestamps:creation、last modification、last access time。
- Owner / group:用於 protection 與 accounting。
Attributes 通常存在 directory entry、FCB / inode、或其他 file-system metadata 中。