Commit Graph

73 Commits

Author SHA1 Message Date
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
christos 229a6fd0df make the default action abort for the empty log message; it used to be
continue. requested by joerg.
2010-02-19 23:50:55 +00:00
wiz 8f657e21de Fix typo (specifed -> specified). 2010-02-18 14:00:39 +00:00
snj 875f862227 Properly replace @MKTEMP_SH_FUNCTION@, @MKTEMP@, and @SENDMAIL@.
Fixes PR bin/39629.
2009-12-29 06:00:35 +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
dsl 80ca15a6f8 Fix compressed server accesses.
According to http://cvs.savannah.gnu.org/viewvc/ccvs/src/?root=cvs
this was broken between revs 1.29 and 1.32 for a perion of 4 months
about 4 years ago.
Not sure at all why/how we have the broken version.
Our old code, the latest gnu code and this fix all differ slightly,
but have the same effect.
2009-11-27 18:38:29 +00:00
christos bd1f9e6807 short-circuit yacc. We cannot make %pure-parser 2009-10-29 02:36:48 +00:00
christos 6deb2c22d2 we have getdelim and getline. 2009-10-19 01:24:19 +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
apb ecf07e7982 It's expected that config will be NULL in a cvs client, but not
in a server or with a local CVSROOT.
2009-09-05 12:50:33 +00:00
dholland 39ad663dea Check group membership correctly; ingroup() returns a truth value, not a gid.
PR bin/41995.
2009-09-05 06:18:55 +00:00
haad 425cc847f0 Create default target_params parse routine which is called when we doesn't
find name of a target in known target list. This routine will pass whole param
string in a dictionary with key called params.
2009-06-09 18:29:09 +00:00
haad 869a99f661 Add const to second argument of nbsd_dm_parse_param, too. 2009-06-09 18:24:02 +00:00
haad b05bf051db Bump libdevmapper minor number, because of ioctl protocol change. 2009-06-05 20:11:21 +00:00
haad 3deb22c2eb 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.
2009-06-05 19:57:25 +00:00
christos fbb2acb8c2 change it from nonsense to english 2009-05-22 19:08:06 +00:00
tnn ce13d3aef1 fix build, #ifdef -> #if (hi christos) 2009-05-22 18:44:16 +00:00
christos d421f645e5 make this work for big endian machines too. 2009-05-22 17:51:26 +00:00
christos 9ee9e0d7de bypass the .y -> .c rule for getdate.y 2009-05-03 17:13:07 +00:00
christos b3737fd337 remove dup line. 2009-04-21 18:43:52 +00:00
christos 0b1f6791df Fix LOCALID expansion (from Anon Ymous) 2009-04-21 17:27:50 +00:00
christos 00ca2326ad regen. 2009-04-20 22:22:53 +00:00
christos ac4b68d25e Put back cvsstamp support. From Anon Ymous 2009-04-20 22:22:08 +00:00
christos 428488169d put back -u 2009-04-20 17:13:42 +00:00
christos 2d265727f9 we don't need memrchr anymore. 2009-04-12 22:30:48 +00:00
christos 889c434e54 - fix bug with cvs group auth
- use our own getopt
- add config tests for optreset
2009-04-10 11:20:28 +00:00
christos 009831ecb0 Add getopt.c which got lost. 2009-04-08 21:57:15 +00:00
christos 4a1c940567 argh. try to make this portable across all NetBSD platforms. 2009-04-08 19:02:35 +00:00
christos 3039dd7cbb fix closing paren 2009-04-08 17:24:55 +00:00
christos 0eb8ebe6b2 sorting ate a file. 2009-04-08 17:12:52 +00:00
christos 6b662a8eac deal with LP64 2009-04-08 17:03:55 +00:00
christos 601e05914b Hook cvs 2009-04-08 16:30:12 +00:00
christos 274254cdae Port over NetBSD fixes:
- remove configure hooks to other os's
- handle symlinks in cvsroot
- configurable CVS local directory name
- unlock patch
- setxid patch (handle setuid CVS and drop privileges correctly)
- when __SSP__ avoid alloca
- admin commands in history
- programmable admin group
- always enforce admin group
- protocol independent network handling (handle ipv6)
- correct issue with wrong revision in resurrected files
- centralize cvs password cleanup in memory
- don't segv if we re-enter exit handlers
- more sprintf -> snprintf
- extra empty line in editor buffer
- alias 't' with 'T' in logmsg.c for compatibility
- alias config "LocalKeyword" with "tag" and "UserAdminOptions" with
  "AdminOptions" for compatibility.
- disable Checking-prog and Update-prog for security
- take account of our current umask when computing the mode of files.
2009-04-08 16:27:51 +00:00
christos a7c918477d from ftp.gnu.org 2009-04-07 22:10:01 +00:00
haad 526dfe53d4 Merge conflicts and NetBSD local changes. 2009-02-18 12:16:13 +00:00
haad bec4d750d4 Import new lvm2tools 2.02.44 version and libdevmapper 1.02.30. 2009-02-18 11:16:14 +00:00
haad cdcbc2b421 Add xen xbd device to disk device filtering list, this will enable using of lvm
under the DomU.
2009-01-30 09:59:46 +00:00