diff options
| author | Frans Kaashoek <kaashoek@mit.edu> | 2019-07-04 08:54:23 -0400 | 
|---|---|---|
| committer | Frans Kaashoek <kaashoek@mit.edu> | 2019-07-04 08:57:23 -0400 | 
| commit | fab5e7c1de2288e2b9e41f7010ca85f2a641cf63 (patch) | |
| tree | 02ded2688783b908f1281a09cf6db3cfd53f0b9c /kernel | |
| parent | 6bfb078b146c95918752afd3b3308d748666f4ae (diff) | |
| download | xv6-labs-fab5e7c1de2288e2b9e41f7010ca85f2a641cf63.tar.gz xv6-labs-fab5e7c1de2288e2b9e41f7010ca85f2a641cf63.tar.bz2 xv6-labs-fab5e7c1de2288e2b9e41f7010ca85f2a641cf63.zip | |
Make size in stat.h be a uint64
Supporting print long using %l (a bit of cheat)
Modify ls to print size using %l
We should probably update size in inode too.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/stat.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/kernel/stat.h b/kernel/stat.h index a498321..19543af 100644 --- a/kernel/stat.h +++ b/kernel/stat.h @@ -3,9 +3,9 @@  #define T_DEVICE  3   // Device  struct stat { -  short type;  // Type of file    int dev;     // File system's disk device    uint ino;    // Inode number +  short type;  // Type of file    short nlink; // Number of links to file -  uint size;   // Size of file in bytes +  uint64 size; // Size of file in bytes  }; | 
