Module Name:    src
Committed By:   uch
Date:           Sat Jul 16 12:35:32 UTC 2011

Modified Files:
        src/sys/fs/v7fs: v7fs_datablock.c v7fs_datablock.h

Log Message:
export v7fs_datablock_addr for makefs


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/fs/v7fs/v7fs_datablock.c
cvs rdiff -u -r1.1 -r1.2 src/sys/fs/v7fs/v7fs_datablock.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/v7fs/v7fs_datablock.c
diff -u src/sys/fs/v7fs/v7fs_datablock.c:1.2 src/sys/fs/v7fs/v7fs_datablock.c:1.3
--- src/sys/fs/v7fs/v7fs_datablock.c:1.2	Wed Jul 13 12:18:22 2011
+++ src/sys/fs/v7fs/v7fs_datablock.c	Sat Jul 16 12:35:32 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: v7fs_datablock.c,v 1.2 2011/07/13 12:18:22 uch Exp $	*/
+/*	$NetBSD: v7fs_datablock.c,v 1.3 2011/07/16 12:35:32 uch Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: v7fs_datablock.c,v 1.2 2011/07/13 12:18:22 uch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: v7fs_datablock.c,v 1.3 2011/07/16 12:35:32 uch Exp $");
 #if defined _KERNEL_OPT
 #include "opt_v7fs.h"
 #endif
@@ -58,12 +58,6 @@
 #define	DPRINTF(fmt, args...)	((void)0)
 #endif
 
-struct v7fs_daddr_map {
-	int level; /* direct, index1, index2, index3 */
-	v7fs_daddr_t index[3];
-};
-
-static int v7fs_datablock_addr(size_t, struct v7fs_daddr_map *);
 static int v7fs_datablock_deallocate(struct v7fs_self *, v7fs_daddr_t);
 static int loop1(struct v7fs_self *, v7fs_daddr_t, size_t *,
     int (*)(struct v7fs_self *, void *, v7fs_daddr_t, size_t), void *);
@@ -198,7 +192,7 @@
 	return error;
 }
 
-static int
+int
 v7fs_datablock_addr(size_t sz, struct v7fs_daddr_map *map)
 {
 #define	NIDX		V7FS_DADDR_PER_BLOCK

Index: src/sys/fs/v7fs/v7fs_datablock.h
diff -u src/sys/fs/v7fs/v7fs_datablock.h:1.1 src/sys/fs/v7fs/v7fs_datablock.h:1.2
--- src/sys/fs/v7fs/v7fs_datablock.h:1.1	Mon Jun 27 11:52:24 2011
+++ src/sys/fs/v7fs/v7fs_datablock.h	Sat Jul 16 12:35:32 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: v7fs_datablock.h,v 1.1 2011/06/27 11:52:24 uch Exp $	*/
+/*	$NetBSD: v7fs_datablock.h,v 1.2 2011/07/16 12:35:32 uch Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -42,5 +42,11 @@
 int v7fs_datablock_expand(struct v7fs_self *, struct v7fs_inode *, size_t);
 int v7fs_datablock_contract(struct v7fs_self *, struct v7fs_inode *, size_t);
 int v7fs_datablock_size_change(struct v7fs_self *, size_t, struct v7fs_inode *);
+
+struct v7fs_daddr_map {
+	int level; /* direct, index1, index2, index3 */
+	v7fs_daddr_t index[3];
+};
+int v7fs_datablock_addr(size_t, struct v7fs_daddr_map *);
 __END_DECLS
 #endif /*!_V7FS_INODE_H_ */

Reply via email to