summaryrefslogtreecommitdiffstats
path: root/sbin/mdconfig
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Add missing "static".trasz2012-03-141-1/+1
|
* Rewrite option parsing in mdconfig(8). This makes it more user-friendlytrasz2012-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
* Replace the beerware license on mdconfig(8) with standard 2-clause BSD.trasz2012-01-211-8/+25
| | | | Approved by: phk@
* Somewhere around the 473rd time I mistyped "mdconfig file" instead ofdes2011-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
* whitespace nit - sorry for the churndes2011-04-271-2/+2
|
* whitespace nitdes2011-04-271-1/+1
|
* Add a check to make sure the provider name is "mdN" before printing thebrucec2011-02-141-1/+5
| | | | | | | unit number. Suggested by: jh MFC after: 3 days
* Only print the unit number when invoked with the -n flag.brucec2011-02-131-1/+1
| | | | | | PR: bin/144300 Submitted by: arundel MFC after: 3 days
* Use "cylinder" instead of "cyl" for consistency.joel2010-11-132-2/+2
| | | | Reviewed by: phk
* Make mdconfig(8) WARNS=6 clean:jh2010-01-222-8/+6
| | | | | | | | | - Constify geom_config_get() name argument. - Add void keyword for usage(). - Initialize mdunit to NULL. - Don't call md_prthumanval() at all if length is NULL. Approved by: trasz (mentor)
* Print sizes up to INT64_MAX in md_prthumanval().jh2010-01-181-5/+6
| | | | | | PR: bin/125365 Approved by: trasz (mentor) MFC after: 2 weeks
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-0/+1
| | | | Submitted by: Ulrich Spörlein
* Add the possibility to specify "-o force" with "mdconfig -du".trasz2009-01-102-1/+12
| | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation
* Add -v (verbose) option to -l command, to show size and backing storemarck2008-06-212-7/+17
| | | | | | | of all md devices at one time. Approved by: phk MFC after: 2 weeks
* Every newline should start on it's own line. I didn't do that in theremko2007-11-281-3/+4
| | | | | | previous commit, so make it happen now. Prodded by: brueffer
* Sync with md(4)'s information regarding the swap backend.remko2007-11-281-2/+9
| | | | | | PR: docs/115721 Submitted by: Stefan Lambrev <stefan.lambrev@moneybookers.com> MFC After: 3 days
* Fix exit code when using -l on a non-existent md(4) device.flz2007-11-161-3/+9
| | | | | | PR: conf/116177 Submitted by: Remi Guyomarch <rguyom@pobox.com> MFC after: 3 days
* * Expand the example descriptions, fix mdoc-bugs inkeramida2007-11-111-9/+20
| | | | | | "(-a and -t vnode are implied)" and reuse it near the cd9660 example. * Spell 'backing store' as two words.
* Instead of hardcoding md10 as the device node in the cd9660 example,keramida2007-11-091-3/+2
| | | | | | use a trick submitted by Ruslan. MFC after: 1 day
* Add an example which shows how mdconfig(8) can be usedkeramida2007-05-181-1/+7
| | | | | | | | to mount an ISO 9660 CD image file. PR: 112691 Submitted by: Warren Block, wblock at wonkity.com MFC after: 3 days
* Kris suggested that swap is a better choice as a default than malloc.n_hibma2007-02-202-4/+4
| | | | MFC: 1 week
* [Found the original diff I made, see previous commit for other part]n_hibma2007-02-202-4/+23
| | | | | | | | Assume '-a' and '-t malloc' flags for '-s <size>' (malloc ramdisk) if not specified. Reviewed by: phk (some time ago) MFC: 1 week
* Make attach the default for -f. That wayn_hibma2007-02-202-3/+11
| | | | | | | | | mdconfig -f image works like a charm. Reviewed by: phk (some time ago) MFC: 1 week
* Make WITHOUT_DYNAMICROOT=foo work again: remember to referencephk2006-04-011-2/+2
| | | | libbsdxml and libsbuf.
* Unbreak the build.jasone2006-03-271-6/+1
|
* For now, bring back some of the old bits as a fix for specifying md(4)wkoszek2006-03-271-0/+7
| | | | | | | | | device number at creation time with -u option. Together with XMLizing mdconfig(8), I broke this functionality. This change is temporary. Complete fix will be commited soon. Approved by: cognet (mentor)
OpenPOWER on IntegriCloud