summaryrefslogtreecommitdiff
path: root/bsdfsck
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-26 16:04:42 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-26 16:04:42 +0000
commit885d5e9c5de2858aabe8886354657a4570c90716 (patch)
tree398e7f6c968ce4129a0be0a463bf3f98e5ea75b1 /bsdfsck
parent5f380e7bea94ec1407108ef4573f9eddf1b375c0 (diff)
Formerly fsck.h.~6~
Diffstat (limited to 'bsdfsck')
-rw-r--r--bsdfsck/fsck.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/bsdfsck/fsck.h b/bsdfsck/fsck.h
index 6b99eb4f..23542d6d 100644
--- a/bsdfsck/fsck.h
+++ b/bsdfsck/fsck.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)fsck.h 8.1 (Berkeley) 6/5/93
- * $Id: fsck.h,v 1.5 1994/08/25 15:17:16 mib Exp $
+ * $Id: fsck.h,v 1.6 1994/08/26 16:04:42 mib Exp $
*/
/* Begin GNU Hurd */
@@ -99,6 +99,18 @@ struct odirtemplate {
#define fs_cs(fs, indx) \
fs_csp[(indx) >> (fs)->fs_csshift][(indx) & ~(fs)->fs_csmask]
+#define dblksize(fs, dip, lbn) \
+ (((lbn) >= NDADDR || (dip)->di_size >= ((lbn) + 1) << (fs)->fs_bshift) \
+ ? (fs)->fs_bsize \
+ : (fragroundup(fs, blkoff(fs, (dip)->di_size))))
+
+/* missing macros */
+
+/* Convert bytes to disk blocks */
+#define btodb(bytes) ((bytes) / DEV_BSIZE)
+
+
+
/* End GNU Hurd additions */