From: Ben Pfaff Date: Wed, 5 Apr 2006 20:59:27 +0000 (+0000) Subject: Comment. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=commitdiff_plain;h=29c1ba099f587c7f6fb714c140ed47a69c59566f Comment. Thanks to "Vincenzo Di Nicola" for the question. --- diff --git a/src/filesys/inode.c b/src/filesys/inode.c index 8e954ab..17f4b46 100644 --- a/src/filesys/inode.c +++ b/src/filesys/inode.c @@ -76,6 +76,9 @@ inode_create (disk_sector_t sector, off_t length) bool success = false; ASSERT (length >= 0); + + /* If this assertion fails, the inode structure is not exactly + one sector in size, and you should fix that. */ ASSERT (sizeof *disk_inode == DISK_SECTOR_SIZE); disk_inode = calloc (1, sizeof *disk_inode);