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
commit47a344ec501feff828bddd47947097744927e0e6 (patch)
treea865988476886f75c3ce15f38fd41f994ce5b028 /bsdfsck
parent4b19fdd10d70d2125c2f0a8e3d412a20d21fa20d (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 */