CVS commit: src/external/gpl2/lvm2/lib/libdevmapper
Module Name:src Committed By: christos Date: Tue Oct 4 14:33:16 UTC 2016 Modified Files: src/external/gpl2/lvm2/lib/libdevmapper: Makefile Log Message: Hack for powerpc64 To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl2/lvm2/lib/libdevmapper/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/lvm2/lib/libdevmapper/Makefile diff -u src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.9 src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.10 --- src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.9 Wed Sep 11 19:04:10 2013 +++ src/external/gpl2/lvm2/lib/libdevmapper/Makefile Tue Oct 4 10:33:16 2016 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2013/09/11 23:04:10 joerg Exp $ +# $NetBSD: Makefile,v 1.10 2016/10/04 14:33:16 christos Exp $ USE_SHLIBDIR= yes USE_FORT?= no @@ -35,6 +35,11 @@ LDADD+= -lrumpvfs -lrump -lrumpu DBG=-g .endif +# call to `dm_lib_release' lacks nop, can't restore toc; recompile with -fPIC +.if ${MACHINE_ARCH} == "powerpc64" +COPTS.libdm-nbsd-iface.c+= -O0 +.endif + .PATH: ${LIBDEVMAPPER_DISTDIR}/ .PATH: ${LIBDEVMAPPER_DISTDIR}/datastruct .PATH: ${LIBDEVMAPPER_DISTDIR}/mm
CVS commit: src/external/gpl2/lvm2/lib/libdevmapper
Module Name:src Committed By: wiz Date: Wed Nov 19 10:37:29 UTC 2014 Modified Files: src/external/gpl2/lvm2/lib/libdevmapper: libdm-netbsd.h Log Message: Close comment. From Henning Petersen in PR 49403. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h diff -u src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h:1.3 src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h:1.4 --- src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h:1.3 Tue Feb 8 10:45:40 2011 +++ src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h Wed Nov 19 10:37:29 2014 @@ -1,4 +1,4 @@ -/*$NetBSD: libdm-netbsd.h,v 1.3 2011/02/08 10:45:40 rmind Exp $ +/*$NetBSD: libdm-netbsd.h,v 1.4 2014/11/19 10:37:29 wiz Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc.
CVS commit: src/external/gpl2/lvm2/lib/libdevmapper
Module Name:src Committed By: matt Date: Fri Feb 11 06:35:26 UTC 2011 Modified Files: src/external/gpl2/lvm2/lib/libdevmapper: Makefile Log Message: Use LIBDPLIBS To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/gpl2/lvm2/lib/libdevmapper/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/lvm2/lib/libdevmapper/Makefile diff -u src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.5 src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.6 --- src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.5 Thu Dec 23 17:46:55 2010 +++ src/external/gpl2/lvm2/lib/libdevmapper/Makefile Fri Feb 11 06:35:26 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2010/12/23 17:46:55 christos Exp $ +# $NetBSD: Makefile,v 1.6 2011/02/11 06:35:26 matt Exp $ USE_SHLIBDIR= yes USE_FORT?= no @@ -15,7 +15,7 @@ CPPFLAGS+= -D__LIB_DEVMAPPER__ -LDADD+= -lprop +LIBDPLIBS+= prop ${NETBSDSRCDIR}/lib/libprop SRCS+= bitset.c hash.c list.c libdm-common.c libdm-file.c \ libdm-deptree.c libdm-string.c libdm-report.c \
CVS commit: src/external/gpl2/lvm2/lib/libdevmapper
Module Name:src Committed By: rmind Date: Tue Feb 8 10:45:40 UTC 2011 Modified Files: src/external/gpl2/lvm2/lib/libdevmapper: libdm-netbsd.h Log Message: Build fix. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h diff -u src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h:1.2 src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h:1.3 --- src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h:1.2 Tue Feb 8 03:26:13 2011 +++ src/external/gpl2/lvm2/lib/libdevmapper/libdm-netbsd.h Tue Feb 8 10:45:40 2011 @@ -1,4 +1,4 @@ -/*$NetBSD: libdm-netbsd.h,v 1.2 2011/02/08 03:26:13 haad Exp $ +/*$NetBSD: libdm-netbsd.h,v 1.3 2011/02/08 10:45:40 rmind Exp $ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ #define __LIB_DM_H__ #include prop/proplib.h -#include libdm.h +#include dm.h # define MAJOR(x) major((x)) # define MINOR(x) minor((x))
CVS commit: src/external/gpl2/lvm2/lib/libdevmapper
Module Name:src Committed By: haad Date: Wed Dec 9 00:17:23 UTC 2009 Modified Files: src/external/gpl2/lvm2/lib/libdevmapper: Makefile Log Message: Add support for building libdevmapper against RUMP. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl2/lvm2/lib/libdevmapper/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/lvm2/lib/libdevmapper/Makefile diff -u src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.3 src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.4 --- src/external/gpl2/lvm2/lib/libdevmapper/Makefile:1.3 Tue Dec 1 23:12:51 2009 +++ src/external/gpl2/lvm2/lib/libdevmapper/Makefile Wed Dec 9 00:17:23 2009 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2009/12/01 23:12:51 haad Exp $ +# $NetBSD: Makefile,v 1.4 2009/12/09 00:17:23 haad Exp $ USE_SHLIBDIR= yes USE_FORT?= no @@ -23,6 +23,13 @@ dbg_malloc.c pool.c matcher.c parse_rx.c ttree.c \ libdm-nbsd-iface.c libdm_netbsd.c +.ifdef RUMP_ACTION +CPPFLAGS+= -DRUMP_ACTION -DRUMP_SYS_IOCTL -DRUMP_SYS_CLOSE -DRUMP_SYS_OPEN +LDADD+= -lrumpdev_disk -lrumpdev_dm -lrumpdev +LDADD+= -lrumpvfs -lrump -lrumpuser -lpthread +DBG=-g +.endif + .PATH: ${LIBDM_DISTDIR}/ .PATH: ${LIBDM_DISTDIR}/datastruct .PATH: ${LIBDM_DISTDIR}/mm
CVS commit: src/external/gpl2/lvm2/lib/libdevmapper
Module Name:src Committed By: haad Date: Tue Jun 9 18:24:02 UTC 2009 Modified Files: src/external/gpl2/lvm2/lib/libdevmapper: netbsd-dm.h Log Message: Add const to second argument of nbsd_dm_parse_param, too. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h diff -u src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h:1.2 src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h:1.3 --- src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h:1.2 Fri Jun 5 20:03:58 2009 +++ src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h Tue Jun 9 18:24:02 2009 @@ -1,4 +1,4 @@ -/*$NetBSD: netbsd-dm.h,v 1.2 2009/06/05 20:03:58 haad Exp $ */ +/*$NetBSD: netbsd-dm.h,v 1.3 2009/06/09 18:24:02 haad Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -287,7 +287,7 @@ int nbsd_dm_add_uint(const char *, uint64_t, prop_dictionary_t); int nbsd_dm_add_str(const char *, char *, prop_dictionary_t ); -prop_dictionary_t nbsd_dm_parse_param(const char *, char *); +prop_dictionary_t nbsd_dm_parse_param(const char *, const char *); struct dm_ioctl* nbsd_dm_dict_to_dmi(prop_dictionary_t, const int);
CVS commit: src/external/gpl2/lvm2/lib/libdevmapper
Module Name:src Committed By: haad Date: Fri Jun 5 20:03:59 UTC 2009 Modified Files: src/external/gpl2/lvm2/lib/libdevmapper: netbsd-dm.h Log Message: Parse dm param string in libdevmapper and not in a dm target init function. Create proplib param dictionary entry in libdevmapper and pass it to dm in dm_ioctl dict. Param target is then passed to target init function, where is parse. I like this aproach much better than passing char **argv and trusting to user input. XXX. Add more sanity checks in kernel. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h diff -u src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h:1.1 src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h:1.2 --- src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h:1.1 Mon Dec 22 01:48:10 2008 +++ src/external/gpl2/lvm2/lib/libdevmapper/netbsd-dm.h Fri Jun 5 20:03:58 2009 @@ -1,4 +1,4 @@ -/*$NetBSD: netbsd-dm.h,v 1.1 2008/12/22 01:48:10 haad Exp $ */ +/*$NetBSD: netbsd-dm.h,v 1.2 2009/06/05 20:03:58 haad Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -208,6 +208,17 @@ #define DM_TABLE_STAT status #define DM_TABLE_LENGTH length #define DM_TABLE_PARAMS params + +#define DM_TARGET_LINEAR_DEVICE device +#define DM_TARGET_LINEAR_OFFSET offset + +#define DM_TARGET_STRIPE_DEVARRAY device_array +#define DM_TARGET_STRIPE_DEVICEdevice +#define DM_TARGET_STRIPE_OFFSEToffset +#define DM_TARGET_STRIPE_STRIPES stripes +#define DM_TARGET_STRIPE_CHUNKSIZE chunk_size + + //#ifndef __LIB_DEVMAPPER__ //#define DM_TABLE_DEPS deps //#endif @@ -266,7 +277,7 @@ /* Types for nbsd_get_dm_major */ #define DM_CHAR_MAJOR 1 -#define DM_BLOCK_MAJOR 2 +#define DM_BLOCK_MAJOR 2 /* libdm_netbsd.c */ int nbsd_get_dm_major(uint32_t *, int); /* Get dm device major numbers */ @@ -276,6 +287,8 @@ int nbsd_dm_add_uint(const char *, uint64_t, prop_dictionary_t); int nbsd_dm_add_str(const char *, char *, prop_dictionary_t ); +prop_dictionary_t nbsd_dm_parse_param(const char *, char *); + struct dm_ioctl* nbsd_dm_dict_to_dmi(prop_dictionary_t, const int); #endif /* __LIB_DEVMAPPER__ */