From 29c1ba099f587c7f6fb714c140ed47a69c59566f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 5 Apr 2006 20:59:27 +0000 Subject: [PATCH] Comment. Thanks to "Vincenzo Di Nicola" for the question. --- src/filesys/inode.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2