20.01.2015 Views

Midterm Exam - Stanford Secure Computer Systems Group

Midterm Exam - Stanford Secure Computer Systems Group

Midterm Exam - Stanford Secure Computer Systems Group

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

– p. 10/16<br />

Fragment allocation<br />

• Allocate space when user writes beyond end of file<br />

• Want last block to be a fragment if not full-size<br />

- If already a fragment, may contain space for write – done<br />

- Else, must deallocate any existing fragment, allocate new<br />

field×ØÐ×Þ<br />

- (Partial) soution: new×ØØstruct<br />

- Tells applications file system block size<br />

• If no appropriate free fragments, break full block<br />

• Problem: Slow for many small writes<br />

- stdio library can buffer this much data

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!