page 14

read_data(file)
readfile
	if (dir) error;
	return read_data;
readdir
	if (!dir) error;
	readdata(offset);
	entry=data;
	offset += entry.rec_len;
	return entry;

------------------
how do I query size of device?

segment & headers into mkplfs
	   -> has blocksize

segment usage file w/ inode

multiple inodes in a single block?
	ifile gets: block #, offset

what do fsync & sync do?
how do I lock segments into memory?
	maybe have "big changes" area that is written to during iput, write?
	flushed during sync?
	how about dirt + locked, then unlock + wait_on_* ?