PKUOS - Pintos
Pintos source browser for PKU Operating System course
Data Fields
inode_disk Struct Reference

On-disk inode. More...

Data Fields

block_sector_t start
 First data sector. More...
 
off_t length
 File size in bytes. More...
 
unsigned magic
 Magic number. More...
 
uint32_t unused [125]
 Not used. More...
 

Detailed Description

On-disk inode.

Must be exactly BLOCK_SECTOR_SIZE bytes long.

Definition at line 15 of file inode.c.

Field Documentation

◆ length

off_t inode_disk::length

File size in bytes.

Definition at line 18 of file inode.c.

Referenced by inode_close(), inode_create(), and inode_length().

◆ magic

unsigned inode_disk::magic

Magic number.

Definition at line 19 of file inode.c.

Referenced by inode_create().

◆ start

block_sector_t inode_disk::start

First data sector.

Definition at line 17 of file inode.c.

Referenced by byte_to_sector(), inode_close(), and inode_create().

◆ unused

uint32_t inode_disk::unused[125]

Not used.

Definition at line 20 of file inode.c.


The documentation for this struct was generated from the following file: