Lecture: file system Q&A

preparation

administrivia

recap

int fd = open("file.tmp", ...);
write(fd, newdata, newdatasize);
close(fd);
rename("file.tmp", "file");