projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lint cleanup
[unix-history]
/
usr
/
src
/
sys
/
ufs
/
ffs
/
fs.h
diff --git
a/usr/src/sys/ufs/ffs/fs.h
b/usr/src/sys/ufs/ffs/fs.h
index
153539e
..
99adbe1
100644
(file)
--- a/
usr/src/sys/ufs/ffs/fs.h
+++ b/
usr/src/sys/ufs/ffs/fs.h
@@
-1,6
+1,6
@@
/* Copyright (c) 1981 Regents of the University of California */
/* Copyright (c) 1981 Regents of the University of California */
-/* fs.h 1.
7
%G% */
+/* fs.h 1.
8
%G% */
/*
* Each disk drive contains some number of file systems.
/*
* Each disk drive contains some number of file systems.
@@
-156,7
+156,7
@@
struct fs
#define itog(x,fs) ((x)/(fs)->fs_ipg)
/* turn inode number into disk block address */
#define itog(x,fs) ((x)/(fs)->fs_ipg)
/* turn inode number into disk block address */
-#define itod(x,fs) (
cgimin(itog(x,fs),fs)+FRAG*((x)%(fs)->fs_ipg/INOPB
))
+#define itod(x,fs) (
(daddr_t)(cgimin(itog(x,fs),fs)+FRAG*((x)%(fs)->fs_ipg/INOPB)
))
/* turn inode number into disk block offset */
#define itoo(x) ((x)%INOPB)
/* turn inode number into disk block offset */
#define itoo(x) ((x)%INOPB)