summaryrefslogtreecommitdiffstats
path: root/sbin/mdconfig
Commit message (Collapse)AuthorAgeFilesLines
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* MFHgjb2016-03-101-0/+11
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
|/ | | | Sponsored by: The FreeBSD Foundation
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-3/+0
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Add 'p' postfix to mdconfig(8).trasz2015-10-102-6/+9
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* It's 2015, and some people are still trying to use fdisk and thentrasz2015-09-021-2/+1
| | | | | | | | | | | | | go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead. Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first. Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3315
* Whoops, wrong flag.trasz2015-08-061-1/+1
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Tweak mdconfig(8) manual page, in particular revise the EXAMPLEStrasz2015-08-061-47/+46
| | | | | | | | | | section. This removes stuff that doesn't really belong there, and simplifies examples for the basic operations. Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3198
* Add META_MODE support.sjg2015-06-131-0/+24
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-276-615/+285
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-2/+1
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge from headsjg2014-05-081-1/+1
| |\ \
| * \ \ Merge headsjg2014-04-287-21/+661
| |\ \ \
| * \ \ \ Merge from headsjg2013-09-052-34/+61
| |\ \ \ \
| * | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | |
| * | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | |
| * | | | | Sync with HEAD.obrien2013-02-082-4/+14
| |\ \ \ \ \
| | \ \ \ \ \
| | \ \ \ \ \
| | \ \ \ \ \
| | \ \ \ \ \
| *---. \ \ \ \ \ Sync from headsjg2012-11-043-19/+48
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+25
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | Convert sbin/mdconfig/tests from prove format tests to ATF format testsngie2014-11-275-613/+284
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a side effect... 1. The tests now checks for the root user before continuing with kyua, which is more visible than the test being skipped with the TAP protocol 2. The tests work with devices that aren't /dev/md0 by caching the device attached during the test to a file, and later use the cached information to detach the device in the cleanup routine 3. The tests no longer require perl to run MFC after: 1 week PR: 191191 Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | | | use .Mt to mark up email addresses consistently (part1)bapt2014-06-201-2/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | from the latter.
* | | | | | Fix path to the run.pl script to let these tests run.jmmv2014-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Peel, Casey Obtained from: freebsd-testing
* | | | | | Add Makefile missed in r263220.jmmv2014-03-161-0/+13
| | | | | |
* | | | | | Migrate tools/regression/sbin/ to the new tests layout.jmmv2014-03-164-0/+613
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pretty much all that this change does is shuffles the code around and hooks it into the regular build. The code of the old tests has not changed.
* | | | | | multiple: Remove 3rd clause from BSD license where approved by theeadler2014-03-141-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste
* | | | | | Add "null" backend to mdconfig(8). This does exactly what the nametrasz2013-12-042-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | suggests, and is somewhat useful for benchmarking. MFC after: 1 month No objections from: kib Sponsored by: The FreeBSD Foundation
* | | | | | bump date forgotten in r257165jmg2013-10-261-1/+1
| | | | | |
* | | | | | Document that -a will output the device name when -u is not specified..jmg2013-10-261-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when -u is specified it is not... update the docs to say that you can use full device names w/ -u, and update the examples... Submitted by: #vbsdcon MFC after: 3 days
* | | | | | Return 0 if:hrs2013-10-241-6/+12
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. "-u N" specified, no -f, and mdN found, 2. no -u, "-f /pathname" specified, and mdN associated with /pathname found, 3. "-u N" specified, "-f /pathname" specified, and both of them found, 4. "-l" specified and no -f, 5. "-l" specified, "-f /pathname" specified, and /pathname found. otherwise return -1. Spotted by: Julian H. Stacey
* | | | | Resolve fflag with realpath().delphij2013-07-311-1/+3
| | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | | When listing with -f, skip all memory disks that are not vnode-backed.delphij2013-07-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Noticed by: kevlo MFC after: 3 days
* | | | | mdoc: remove EOL whitespace.joel2013-06-291-1/+1
| | | | |
* | | | | - Use length of _PATH_DEV instead of a hardcoded value[*].hrs2013-06-211-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use MD_NAME for "md". Pointed out by: trasz [*] MFC after: 1 week
* | | | | eturn -1 when the specified backing store file is not found in the mdhrs2013-06-201-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device list. MFC after: 1 week
* | | | | - Add "-f file" support to listing mode (-l). When a -f option ishrs2013-06-202-25/+45
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specified, only md(4) devices which have the specified file as backing store are displayed. - Use MD_NAME instead of "md". - Use _PATH_DEV instead of "/dev/". MFC after: 1 week
* | | | Disallow attaching preloaded memory disks via ioctl.jh2012-11-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The feature is dangerous because the kernel code didn't check validity of the memory address provided from user space. - It seems that mdconfig(8) never really supported attaching preloaded memory disks. - Preloaded memory disks are automatically attached during md(4) initialization. Thus there shouldn't be much use for the feature. PR: kern/169683 Discussed on: freebsd-hackers
* | | | Add an example showing the use of gnop(8) to skip over header data.wblock2012-11-041-1/+13
| |/ / |/| | | | | | | | | | | | | | PR: kern/145999 Reviewed by: mjg MFC after: 1 week
* | | Make it possible to resize md(4) devices.trasz2012-07-072-16/+46
| | | | | | | | | | | | | | | Reviewed by: kib Sponsored by: FreeBSD Foundation
* | | Remove ancient vnconfig symlinkeadler2012-07-071-1/+0
| |/ |/| | | | | | | | | Submitted by: ak Approved by: cperciva MFC after: 1 week
* | The -S option, to specify the sector size, has been usable on all types ofgavin2012-06-271-2/+2
|/ | | | | | | memory disks since r135340. Update the man page to reflect this. Noticed by: avg MFC after: 3 days
* Remove end of line whitespace.joel2012-05-121-1/+1
|
* mdoc: use Po and Pc macros instead of parens. Also avoid starting a linejoel2012-05-121-4/+6
| | | | with Ns.
* Fix a couple of style issues. Tweak grammar and markup while here.bjk2012-04-091-22/+27
| | | | Approved by: hrs (mentor)
OpenPOWER on IntegriCloud