summaryrefslogtreecommitdiff
path: root/bsdfsck/fsck.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsdfsck/fsck.h')
-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 */