diff options
| author | haad <haad@NetBSD.org> | 2009-12-05 11:30:26 +0000 |
|---|---|---|
| committer | haad <haad@NetBSD.org> | 2009-12-05 11:30:26 +0000 |
| commit | bd8ee331ed876ad1cf034636ea9a6ac79ce12ec7 (patch) | |
| tree | d0c2997200540684dc6dcfe8f4998a0e11c6a9fe /sys/dev/dm | |
| parent | 902928d6cd6bc7e945a33f8f5c468c0b888f7259 (diff) | |
Include only user-kernel communication protocol related information in this header.
Diffstat (limited to 'sys/dev/dm')
| -rw-r--r-- | sys/dev/dm/netbsd-dm.h | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/sys/dev/dm/netbsd-dm.h b/sys/dev/dm/netbsd-dm.h index 4d8f4464ad8..7d628c99e5d 100644 --- a/sys/dev/dm/netbsd-dm.h +++ b/sys/dev/dm/netbsd-dm.h @@ -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__ */ |
