From c24ac5d76353d04955cc348f1cb5b95743c42b38 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Fri, 3 Apr 2015 08:22:02 -0400 Subject: Disentangle block size from the disk's sector size. Set block size to 1024 to show that they can be different. Clean up mkfs, simplifying specifying fs parameters, remove some redundancy between fs and mkfs, and fix disk layout bugs. Call blocks in the file system blocks instead of sectors. Passes usertests for different block sizes. --- fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs.c') diff --git a/fs.c b/fs.c index 1803cb4..286252d 100644 --- a/fs.c +++ b/fs.c @@ -16,8 +16,8 @@ #include "mmu.h" #include "proc.h" #include "spinlock.h" -#include "buf.h" #include "fs.h" +#include "buf.h" #include "file.h" #define min(a, b) ((a) < (b) ? (a) : (b)) -- cgit v1.2.3