aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig
Commit message (Collapse)AuthorAgeFilesLines
* First pass to fix the 'tests' packages.Glen Barber2016-02-021-0/+4
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295171
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andEnji Cooper2015-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 Notes: svn path=/head/; revision=289172
* Add 'p' postfix to mdconfig(8).Edward Tomasz Napierala2015-10-102-6/+9
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289113
* It's 2015, and some people are still trying to use fdisk and thenEdward Tomasz Napierala2015-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 Notes: svn path=/head/; revision=287396
* Whoops, wrong flag.Edward Tomasz Napierala2015-08-061-1/+1
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=286361
* Tweak mdconfig(8) manual page, in particular revise the EXAMPLESEdward Tomasz Napierala2015-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 Notes: svn path=/head/; revision=286360
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-276-615/+285
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-2/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ Merge headSimon J. Gerraty2014-04-287-21/+661
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ \ Merge from headSimon J. Gerraty2013-09-052-34/+61
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | Sync with HEAD.David E. O'Brien2013-02-082-4/+14
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ \ Sync from headSimon J. Gerraty2012-11-043-19/+48
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | | Convert sbin/mdconfig/tests from prove format tests to ATF format testsEnji Cooper2014-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 Notes: svn path=/head/; revision=275170
* | | | | | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | | | | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-2/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | | | Fix path to the run.pl script to let these tests run.Julio Merino2014-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Peel, Casey Obtained from: freebsd-testing Notes: svn path=/head/; revision=263814
* | | | | Add Makefile missed in r263220.Julio Merino2014-03-161-0/+13
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=263222
* | | | | Migrate tools/regression/sbin/ to the new tests layout.Julio Merino2014-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. Notes: svn path=/head/; revision=263220
* | | | | multiple: Remove 3rd clause from BSD license where approved by theEitan Adler2014-03-141-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste Notes: svn path=/head/; revision=263142
* | | | | Add "null" backend to mdconfig(8). This does exactly what the nameEdward Tomasz Napierala2013-12-042-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | suggests, and is somewhat useful for benchmarking. MFC after: 1 month No objections from: kib Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258909
* | | | | bump date forgotten in r257165John-Mark Gurney2013-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=257182
* | | | | Document that -a will output the device name when -u is not specified..John-Mark Gurney2013-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 Notes: svn path=/head/; revision=257165
* | | | | Return 0 if:Hiroki Sato2013-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 Notes: svn path=/head/; revision=257036
* | | | Resolve fflag with realpath().Xin LI2013-07-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=253833
* | | | When listing with -f, skip all memory disks that are not vnode-backed.Xin LI2013-07-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Noticed by: kevlo MFC after: 3 days Notes: svn path=/head/; revision=252523
* | | | mdoc: remove EOL whitespace.Joel Dahl2013-06-291-1/+1
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=252379
* | | | - Use length of _PATH_DEV instead of a hardcoded value[*].Hiroki Sato2013-06-211-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use MD_NAME for "md". Pointed out by: trasz [*] MFC after: 1 week Notes: svn path=/head/; revision=252051
* | | | eturn -1 when the specified backing store file is not found in the mdHiroki Sato2013-06-201-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device list. MFC after: 1 week Notes: svn path=/head/; revision=252036
* | | | - Add "-f file" support to listing mode (-l). When a -f option isHiroki Sato2013-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 Notes: svn path=/head/; revision=252033
* | | Disallow attaching preloaded memory disks via ioctl.Jaakko Heinonen2012-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 Notes: svn path=/head/; revision=243372
* | | Add an example showing the use of gnop(8) to skip over header data.Warren Block2012-11-041-1/+13
| |/ |/| | | | | | | | | | | | | | | PR: kern/145999 Reviewed by: mjg MFC after: 1 week Notes: svn path=/head/; revision=242546
* | Make it possible to resize md(4) devices.Edward Tomasz Napierala2012-07-072-16/+46
| | | | | | | | | | | | | | | | Reviewed by: kib Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=238215
* | Remove ancient vnconfig symlinkEitan Adler2012-07-071-1/+0
| | | | | | | | | | | | | | | | | | Submitted by: ak Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=238202
* | The -S option, to specify the sector size, has been usable on all types ofGavin Atkinson2012-06-271-2/+2
|/ | | | | | | | | | memory disks since r135340. Update the man page to reflect this. Noticed by: avg MFC after: 3 days Notes: svn path=/head/; revision=237645
* Remove end of line whitespace.Joel Dahl2012-05-121-1/+1
| | | | Notes: svn path=/head/; revision=235355
* mdoc: use Po and Pc macros instead of parens. Also avoid starting a lineJoel Dahl2012-05-121-4/+6
| | | | | | | with Ns. Notes: svn path=/head/; revision=235344
* Fix a couple of style issues. Tweak grammar and markup while here.Benjamin Kaduk2012-04-091-22/+27
| | | | | | | Approved by: hrs (mentor) Notes: svn path=/head/; revision=234047
* Add missing "static".Edward Tomasz Napierala2012-03-141-1/+1
| | | | Notes: svn path=/head/; revision=232964
* Rewrite option parsing in mdconfig(8). This makes it more user-friendlyEdward Tomasz Napierala2012-01-271-118/+131
| | | | | | | | | | by removing the ordering requirements and adding more descriptive error messages; it also makes it more readable and maintainable. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=230612
* Replace the beerware license on mdconfig(8) with standard 2-clause BSD.Edward Tomasz Napierala2012-01-211-8/+25
| | | | | | | Approved by: phk@ Notes: svn path=/head/; revision=230423
* Somewhere around the 473rd time I mistyped "mdconfig file" instead ofDag-Erling Smørgrav2011-04-292-20/+49
| | | | | | | | | | "mdconfig -f file", I decided that it would be easier to make mdconfig DWIM than to teach my fingers to type the correct command line. MFC after: 3 weeks Notes: svn path=/head/; revision=221232