Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/dm Include only user-kernel communication protocol r...



details:   https://anonhg.NetBSD.org/src/rev/6c6ec6daab96
branches:  trunk
changeset: 749655:6c6ec6daab96
user:      haad <haad%NetBSD.org@localhost>
date:      Sat Dec 05 11:30:26 2009 +0000

description:
Include only user-kernel communication protocol related information in this header.

diffstat:

 sys/dev/dm/netbsd-dm.h |  32 +++++++-------------------------
 1 files changed, 7 insertions(+), 25 deletions(-)

diffs (45 lines):

diff -r 3a3b3c870afa -r 6c6ec6daab96 sys/dev/dm/netbsd-dm.h
--- a/sys/dev/dm/netbsd-dm.h    Sat Dec 05 10:38:27 2009 +0000
+++ b/sys/dev/dm/netbsd-dm.h    Sat Dec 05 11:30:26 2009 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: netbsd-dm.h,v 1.5 2009/12/01 23:12:10 haad Exp $      */
+/*        $NetBSD: netbsd-dm.h,v 1.6 2009/12/05 11:30:26 haad Exp $      */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -255,29 +255,11 @@
  */
 #define DM_NOFLUSH_FLAG                (1 << 11) /* In */
 
-#ifdef __LIB_DEVMAPPER__
-
-#  define MAJOR(x) major((x))
-#  define MINOR(x) minor((x))
-#  define MKDEV(x,y) makedev((x),(y))
-
-/* Name of device-mapper driver in kernel */
-#define DM_NAME "dm"
-
-/* Types for nbsd_get_dm_major */
-#define DM_CHAR_MAJOR 1
-#define DM_BLOCK_MAJOR 2       
-
-/* libdm_netbsd.c */
-int nbsd_get_dm_major(uint32_t *, int); /* Get dm device major numbers */
-
-int nbsd_dmi_add_cmd(const char *, prop_dictionary_t);
-int nbsd_dmi_add_version(const int [3], prop_dictionary_t);
-int nbsd_dm_add_uint(const char *, uint64_t, prop_dictionary_t);
-int nbsd_dm_add_str(const char *, char *, prop_dictionary_t );
-
-struct dm_ioctl* nbsd_dm_dict_to_dmi(prop_dictionary_t, const int);
-
-#endif /* __LIB_DEVMAPPER__ */
+/*
+ * If set, any table information returned will relate to the inactive
+ * table instead of the live one.  Always check DM_INACTIVE_PRESENT_FLAG
+ * is set before using the data returned.
+ */
+#define DM_QUERY_INACTIVE_TABLE_FLAG    (1 << 12) /* In */
 
 #endif /* __NETBSD_DM_H__ */



Home | Main Index | Thread Index | Old Index