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
0c7f4838
Commit
0c7f4838
authored
15 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
move T_DIR etc into stat.h; move type up
parent
74afa70d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fs.h
+0
-4
0 additions, 4 deletions
fs.h
mkfs.c
+1
-0
1 addition, 0 deletions
mkfs.c
stat.h
+5
-1
5 additions, 1 deletion
stat.h
with
6 additions
and
5 deletions
fs.h
+
0
−
4
View file @
0c7f4838
...
...
@@ -31,10 +31,6 @@ struct dinode {
uint
addrs
[
NADDRS
];
// Data block addresses
};
#define T_DIR 1 // Directory
#define T_FILE 2 // File
#define T_DEV 3 // Special device
// Inodes per block.
#define IPB (BSIZE / sizeof(struct dinode))
...
...
This diff is collapsed.
Click to expand it.
mkfs.c
+
1
−
0
View file @
0c7f4838
...
...
@@ -6,6 +6,7 @@
#include
<assert.h>
#include
"types.h"
#include
"fs.h"
#include
"stat.h"
int
nblocks
=
995
;
int
ninodes
=
200
;
...
...
This diff is collapsed.
Click to expand it.
stat.h
+
5
−
1
View file @
0c7f4838
#define T_DIR 1 // Directory
#define T_FILE 2 // File
#define T_DEV 3 // Special device
struct
stat
{
short
type
;
// Type of file
int
dev
;
// Device number
uint
ino
;
// Inode number on device
short
type
;
// Type of file
short
nlink
;
// Number of links to file
uint
size
;
// Size of file in bytes
};
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