diff options
author | rtm <rtm> | 2008-10-20 18:05:48 +0000 |
---|---|---|
committer | rtm <rtm> | 2008-10-20 18:05:48 +0000 |
commit | 8eb20827c273df183986f95fc13cad8b28ea8ae6 (patch) | |
tree | b12861a3925ebda9683a96a2af0ebe98c0a39372 | |
parent | 15a269363777c0cd95e2a56e7def0a4dc3122e21 (diff) | |
download | xv6-labs-8eb20827c273df183986f95fc13cad8b28ea8ae6.tar.gz xv6-labs-8eb20827c273df183986f95fc13cad8b28ea8ae6.tar.bz2 xv6-labs-8eb20827c273df183986f95fc13cad8b28ea8ae6.zip |
Explain why itrunc() is OK w.r.t. crashes.
-rw-r--r-- | fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -359,6 +359,8 @@ bmap(struct inode *ip, uint bn, int alloc) } // Truncate inode (discard contents). +// Only called after the last dirent referring +// to this inode has been erased on disk. static void itrunc(struct inode *ip) { |