Comments (1)
Since each dinode has 64 bytes right now, and there are 13 blocks for inode on disk, xv6 chould at most have 208 inode.
To make the data type of inum consistent, I suggest:
- Changing struct dirent as follows:
#define DIRSIZ 12
struct dirent {
uint inum;
char name[DIRSIZ];
};
- Changing inum to ushort everywhere, which includes much more modifications to the code.
from xv6-riscv.
Related Issues (20)
- 32 or 64bits? HOT 1
- can't get into the kernel if turn on qemu single step HOT 2
- change qemu to 16M ram, unable to boot into kernel HOT 1
- pdos website down?
- Can't get gdb to display C code HOT 1
- where and when set the uservec into stvec HOT 1
- Correct Document(xv6-risc) Errors
- Setting mstatus.MIE in start.c seems meaningless.
- Broken or deprecated file `kernel/ramdisk.c`
- user/sysinfotest.c : is there a bug? HOT 1
- bug?: kfree the same page twice
- gdb issues
- Does `user/sh.c` violate the strict aliasing rules?
- Lab: System calls
- I was able to run xv6-x86 on my m1 mac running ubuntu arm64. Perform the following steps: HOT 2
- Permission To Upstream Getters/Setters?
- How do I compile the kernel without instruction compression? HOT 1
- Truncation of relocation to fit: R_RISCV_PCREL_L012_I against '.L0 HOT 1
- tramponline.S HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xv6-riscv.