Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/v7fs export v7fs_datablock_addr for makefs
details: https://anonhg.NetBSD.org/src/rev/a5ae070e8f7e
branches: trunk
changeset: 767341:a5ae070e8f7e
user: uch <uch%NetBSD.org@localhost>
date: Sat Jul 16 12:35:32 2011 +0000
description:
export v7fs_datablock_addr for makefs
diffstat:
sys/fs/v7fs/v7fs_datablock.c | 12 +++---------
sys/fs/v7fs/v7fs_datablock.h | 8 +++++++-
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (61 lines):
diff -r 6b78a5085494 -r a5ae070e8f7e sys/fs/v7fs/v7fs_datablock.c
--- a/sys/fs/v7fs/v7fs_datablock.c Sat Jul 16 12:20:01 2011 +0000
+++ b/sys/fs/v7fs/v7fs_datablock.c Sat Jul 16 12:35:32 2011 +0000
@@ -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
diff -r 6b78a5085494 -r a5ae070e8f7e sys/fs/v7fs/v7fs_datablock.h
--- a/sys/fs/v7fs/v7fs_datablock.h Sat Jul 16 12:20:01 2011 +0000
+++ b/sys/fs/v7fs/v7fs_datablock.h Sat Jul 16 12:35:32 2011 +0000
@@ -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_ */
Home |
Main Index |
Thread Index |
Old Index