Dolda2000 GitWeb
/
vcfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make blocktree indir block sizes variable.
[vcfs.git]
/
mkfs.vc.c
diff --git
a/mkfs.vc.c
b/mkfs.vc.c
index
a507abe
..
764c8e4
100644
(file)
--- a/
mkfs.vc.c
+++ b/
mkfs.vc.c
@@
-45,19
+45,19
@@
int main(int argc, char **argv)
root.data.d = 0;
root.xattr.d = 0;
strcpy(dots.name, ".");
root.data.d = 0;
root.xattr.d = 0;
strcpy(dots.name, ".");
- if(btput(st, &root.data, 0, &dots, sizeof(dots) - sizeof(dots.name) + 2)) {
+ if(btput(st, &root.data, 0, &dots, sizeof(dots) - sizeof(dots.name) + 2
, DIRBLSIZE
)) {
fprintf(stderr, "mkfs.vc: could not create root directory entries: %s\n", strerror(errno));
exit(1);
}
strcpy(dots.name, "..");
fprintf(stderr, "mkfs.vc: could not create root directory entries: %s\n", strerror(errno));
exit(1);
}
strcpy(dots.name, "..");
- if(btput(st, &root.data, 1, &dots, sizeof(dots) - sizeof(dots.name) + 3)) {
+ if(btput(st, &root.data, 1, &dots, sizeof(dots) - sizeof(dots.name) + 3
, DIRBLSIZE
)) {
fprintf(stderr, "mkfs.vc: could not create root directory entries: %s\n", strerror(errno));
exit(1);
}
frev.ct = now;
frev.root.d = 0;
fprintf(stderr, "mkfs.vc: could not create root directory entries: %s\n", strerror(errno));
exit(1);
}
frev.ct = now;
frev.root.d = 0;
- if(btput(st, &frev.root, 0, &root, sizeof(root))) {
+ if(btput(st, &frev.root, 0, &root, sizeof(root)
, INOBLSIZE
)) {
fprintf(stderr, "mkfs.vc: could not store root directory inode: %s\n", strerror(errno));
exit(1);
}
fprintf(stderr, "mkfs.vc: could not store root directory inode: %s\n", strerror(errno));
exit(1);
}