X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ffilesys%2Ffilehdr.h;h=32792df804fc9172e03822ea54312e9943f5b7b2;hb=41cc2728b06b5e1eeb4cf5a4979692640049e047;hp=7b0ecc234005887332b2eb6f97f7c9a55e0087ba;hpb=aa9a8ed3132ec405c8362b3fddf3868871fb7993;p=pintos-anon diff --git a/src/filesys/filehdr.h b/src/filesys/filehdr.h index 7b0ecc2..32792df 100644 --- a/src/filesys/filehdr.h +++ b/src/filesys/filehdr.h @@ -7,22 +7,22 @@ #include "off_t.h" #define DIRECT_CNT ((DISK_SECTOR_SIZE - sizeof (off_t) * 2) \ - / sizeof (disk_sector_no)) + / sizeof (disk_sector_t)) struct filehdr { off_t length; size_t sector_cnt; - disk_sector_no sectors[DIRECT_CNT]; + disk_sector_t sectors[DIRECT_CNT]; }; struct bitmap; struct filehdr *filehdr_allocate (struct bitmap *, off_t length); void filehdr_deallocate (struct filehdr *, struct bitmap *); -struct filehdr *filehdr_read (disk_sector_no); -void filehdr_write (const struct filehdr *, disk_sector_no); +struct filehdr *filehdr_read (disk_sector_t); +void filehdr_write (const struct filehdr *, disk_sector_t); void filehdr_destroy (struct filehdr *); -disk_sector_no filehdr_byte_to_sector (const struct filehdr *, off_t); +disk_sector_t filehdr_byte_to_sector (const struct filehdr *, off_t); off_t filehdr_length (const struct filehdr *); void filehdr_print (const struct filehdr *);