Contiguous Allocation

Allocate files like segmented memory

When creating a file, make the user pre-specify the length and allocate all at once

Pasted image 20231210105731.png

Inode contents

Pros

How do you know how large a file will be?

Use Delayed Allocation

  • The write syscall only affects the buffer cache
  • Allow write into buffers before deciding where to place it on disk
  • Assign disk space only when the buffers are flushed

Other advantages