Commit Graph

71 Commits

Author SHA1 Message Date
sevan cc576e1d8e Update supporting files for components which rely on autoconf to allow systems
introducing since release of software to be recognised. This should hopefully
allow the builds to progress a littles further on systems such as the POWER8
which features a little endian 64-bit PowerPC CPU identified as ppc64le.
2017-02-01 09:26:39 +00:00
christos c610b4a73b Hack for powerpc64 2016-10-04 14:33:16 +00:00
abhinav f7b948b9bc Fix typo: processess -> processes 2016-06-09 09:01:21 +00:00
christos 8ec658f57a - Change LDADD/DPADD in library dependencies to LIBDPLIBS
- Fix some LDADD abuse and remove useless dependencies
- include <bsd.init.mk> in the right place where appropriate
From Rin Okuyama
2016-01-05 13:07:46 +00:00
dholland 5ca5bd7479 Don't use %m in format strings sent to printf. 2015-11-09 00:53:57 +00:00
wiz 971d420649 Close comment.
From Henning Petersen in PR 49403.
2014-11-19 10:37:29 +00:00
joerg 755f404f87 Remove tautologic check. 2014-11-15 01:24:53 +00:00
joerg f7673b99b4 Comment out impossible code. 2014-11-15 01:24:38 +00:00
joerg f933bdb0a3 Use sys/endian.h for bswapXX. 2014-02-20 02:09:58 +00:00
christos bb76f57b5d USE_SSP is not defined in bsd.sys.mk 2014-01-14 20:22:35 +00:00
christos 0eb00b5091 USE_SSP is defined in bsd.own.mk 2014-01-14 19:58:19 +00:00
joerg 975a152cfc If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.
2013-09-11 23:04:09 +00:00
cheusov 8e6f0d9ebd Add .include <bsd.sys.mk> for initializing USE_SSP.
This fixes build failure if USE_FORT=YES
   Approved by christos@
2012-05-02 13:35:03 +00:00
mhitch 2c13773a38 Add logical drive device ld - a number of raid controllers provide these.
Also fix a typo/pasto when checking devices against devices/types in the
configuration file:  use value from configuration, not the end of the
device_info table.  Devices which aren't explicitly specified in the
device_info table can now be used by adding a type entry in the config
file.
2012-01-04 16:37:45 +00:00
joerg 015f3042c3 Pull in report.c, 1.107 from upstream:
Use offsetof() macro and avoid defining dummy static union for FIELD()
macro.  Makes it compilable by clang compiler.
2011-05-30 16:03:02 +00:00
joerg a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg c219644b8d Fix printing of time_t 2011-05-24 15:51:00 +00:00
christos 2c52b012a9 missing string.h 2011-05-15 01:16:29 +00:00
christos 3326babf00 copy from misc directory 2011-05-15 01:13:29 +00:00
matt d4e4f7a60a Use static libdm so dmsetup and lvm can be linked dynamically.
Change LIBDM_* to LIBDEVMAPPER_* so LIBDM can refer to libdm.
2011-03-04 22:48:29 +00:00
matt accc87635b Use LIBDPLIBS 2011-02-11 06:35:26 +00:00
rmind 8adab6527d Build fix. 2011-02-08 10:45:40 +00:00
haad 0527bde829 Switch libdevmapper library to use libdm as it;s backend lib and do not
communicate with device-mapper directly. Our lvm stack now looks like this
lvm<->libdevmapper<->libdm<->dm where only libdm knows how our dm protocol
looks like.

No objections on tech-userlevel@.
2011-02-08 03:26:12 +00:00
haad c73e2bf000 Use DM_DEVICE_CONTROL_MODE, because mapper/control device should have 660
and not 640 permissions.
2011-01-12 08:16:23 +00:00
haad 912a040b47 Allow operator to use lvm in read-only mode. Switch LVM lock dir to
/var/run/lvm and create it in rc.d/mountcritlocal. Fix dm control device
permissions to allow rw for operator.

Test if we are running lvm commands as operator and if that it's true do not
create vg backups and do not print confusing warning.
2011-01-05 14:57:27 +00:00
haad d52c66bf4a Fix my yesterday fix and finally make _get_dev_size recognise partition size
for device without DIOWEDGEINFO, where DIOCGDINFO is used. Patch tested by
Martin Mersberger.
2010-12-29 23:14:21 +00:00
haad d26a38d370 Fix problem where chown was used on normal device in time when only
raw device was created. While here do some cleanup.

Problem find and reported by Martin Mersberger on current-users@.
2010-12-29 10:39:27 +00:00
haad ca7dbf8cb5 Fix bug added by my last commit. This should fix
PR: bin/44286

Reported by: mlelstv@ and Martin Mersberger.
2010-12-29 00:14:04 +00:00
christos 017d3467b1 - don't forget to restore the umask on error.
- save and restore umask for control
- chown/chgrp for raw devices
2010-12-26 14:48:34 +00:00
haad 4c90c8eeab Change way how we get device size from device. Do not use LSEEK but
DIOCGWEDGEINFO and DIOCGDINFO. This should fix problem with raidframe + lvm
reported by

Toby Karyadi on current-users@.

Thanks for reporting this issue.
2010-12-23 21:39:08 +00:00
christos 0318099292 PR/44267: Michael van Elst: LVM devices have wrong permissions
- Centralize CPPFLAGS for DM_DEVICE_{UID,GID,MODE}
- Make DM_DEVICE_GID operator DM_DEVICE_MODE 0640 to be more NetBSD like
- make all the code use DM_DEVICE_MODE instead of hard-coding.
- make sure that all mknod calls are followed by a chown call.
2010-12-23 17:46:54 +00:00
christos 3e6a896a34 false needs stdbool.h 2010-12-23 17:44:33 +00:00
mlelstv 07d2f05926 Get sector size from device properties using DIOCGDISKINFO and
use the disklabel (DIOCGDINFO) only as a fallback. This works
with wedges.
2010-12-23 14:46:25 +00:00
haad 16daab5dae Fix /var/run/dev.db dependency by adding new get_dev_name routine which
converts raw device major:minor number to block device path. By reading
/dev and using stat to find block device major:minor numbers.
2010-03-12 16:24:40 +00:00
wiz 8f657e21de Fix typo (specifed -> specified). 2010-02-18 14:00:39 +00:00
haad ff3b5e1b34 Add support for building libdevmapper against RUMP. 2009-12-09 00:17:23 +00:00
haad 40681c67fa Add support for building RUMP_ACTION libdevmapper which will build and link
libdevmapper with RUMP kernel and libdm(RUMP based device-mapper library).
This enables testing of dmsetup and libdevmapper with RUMP.
2009-12-09 00:15:51 +00:00
haad 2c73152555 Addapt libdevmapper library to new header file changes. 2009-12-05 11:42:24 +00:00
haad 980e89047e Remove duplicated netbsd-dm.h file it is already installed in include/dev/dm.
Add own libddevmapper library header file libdm-netbsd.h.
2009-12-05 11:38:40 +00:00
haad 3d3166c313 Try to fix amd64 build. 2009-12-05 01:52:44 +00:00
haad b49e6087b6 Add two more needed files dev-swap.c and unknown.c. 2009-12-02 01:54:20 +00:00
haad 0fa7e5a89a Fix build, add missing symbols, remove unknown ioctls etc. 2009-12-02 01:53:25 +00:00
haad 447276ebab Fix comment about running ./configure script. 2009-12-02 00:59:19 +00:00
haad d685da8d62 Fix cinflicts created by import of latest lvm2tools LVM2-2-02-56. 2009-12-02 00:58:02 +00:00
haad 7c604eea85 Import of new version of lvm2tools LVM2-2-02-56. 2009-12-02 00:25:22 +00:00
haad 687f790f8f Remove not needed debugging CFLAGS. 2009-12-01 23:12:51 +00:00
haad f26bfe28da Revert my commit which have added knowledge about dm targets to libdevmapper,
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can
have knowledge about target mapping and libdevmapper only passes requests
from lvmtools to kernel and back. Bump major library and driver version.

Requested by: yamt@
2009-12-01 23:12:09 +00:00
haad cfa2bb1730 Revert my commit which added knowledge about dm targets to libdevmapper,
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can
have knowledge about target mapping and libdevmapper only passes requests
from lvmtools to kernel and back. Bump major library and driver version.

Requested by: yamt@
2009-12-01 23:11:17 +00:00
joerg c954cd0eee Only match raw devices. Only match against the char major as extracted
from the kernel. Prevents aliasing nwt0 and rwd0e. OK haad@
2009-10-16 21:00:41 +00:00
joerg cb83818524 Fix markup. 2009-10-15 00:59:01 +00:00