X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Ffilesys%2Ffree-map.c;h=db0dc4ae1905014fdd9a1acfa592e03643658381;hp=34f2060b1860f23d20ea29f5ed687ec4cbb7a139;hb=69abf67e46fa36f6db047586a56204dcad4f07b8;hpb=12ab4901debfa37cc8a1dd59d5f188788f6bf776 diff --git a/src/filesys/free-map.c b/src/filesys/free-map.c index 34f2060..db0dc4a 100644 --- a/src/filesys/free-map.c +++ b/src/filesys/free-map.c @@ -21,8 +21,9 @@ free_map_init (void) /* Allocates CNT consecutive sectors from the free map and stores the first into *SECTORP. - Returns true if successful, false if all sectors were - available. */ + Returns true if successful, false if not enough consecutive +   sectors were available or if the free_map file could not be +   written. */ bool free_map_allocate (size_t cnt, block_sector_t *sectorp) {