Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
bcca6c6b
Commit
bcca6c6b
authored
17 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
shuffle fs.c in bottom-up order
parent
0655445b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
defs.h
+1
-1
1 addition, 1 deletion
defs.h
fs.c
+313
-315
313 additions, 315 deletions
fs.c
fs.h
+0
-2
0 additions, 2 deletions
fs.h
fsvar.h
+1
-1
1 addition, 1 deletion
fsvar.h
main.c
+1
-1
1 addition, 1 deletion
main.c
with
316 additions
and
320 deletions
defs.h
+
1
−
1
View file @
bcca6c6b
...
...
@@ -120,7 +120,6 @@ void bwrite(struct buf*, uint);
void
brelse
(
struct
buf
*
);
// fs.c
extern
uint
rootdev
;
void
iinit
(
void
);
struct
inode
*
iget
(
uint
,
uint
);
void
ilock
(
struct
inode
*
);
...
...
@@ -138,6 +137,7 @@ struct inode* mknod1(struct inode*, char*, short, short, short);
int
unlink
(
char
*
);
void
iupdate
(
struct
inode
*
);
int
link
(
char
*
,
char
*
);
struct
inode
*
igetroot
(
void
);
// number of elements in fixed-size array
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))
This diff is collapsed.
Click to expand it.
fs.c
+
313
−
315
View file @
bcca6c6b
This diff is collapsed.
Click to expand it.
fs.h
+
0
−
2
View file @
bcca6c6b
...
...
@@ -55,5 +55,3 @@ struct dirent {
char
name
[
DIRSIZ
];
};
extern
uint
rootdev
;
// Device number of root file system
This diff is collapsed.
Click to expand it.
fsvar.h
+
1
−
1
View file @
bcca6c6b
...
...
@@ -14,7 +14,7 @@ struct inode {
uint
addrs
[
NADDRS
];
};
extern
uint
rootdev
;
#define ROOTDEV 1 // Device number of root file system
#define NAMEI_LOOKUP 1
#define NAMEI_CREATE 2
...
...
This diff is collapsed.
Click to expand it.
main.c
+
1
−
1
View file @
bcca6c6b
...
...
@@ -125,7 +125,7 @@ process0(void)
release
(
&
proc_table_lock
);
p0
=
&
proc
[
0
];
p0
->
cwd
=
iget
(
root
dev
,
1
);
p0
->
cwd
=
igetroot
(
);
iunlock
(
p0
->
cwd
);
// Dummy user memory to make copyproc() happy.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment