summaryrefslogtreecommitdiffstats
path: root/sbin/geom
Commit message (Collapse)AuthorAgeFilesLines
* MFC r264400,r265836:ngie2014-12-311-1/+1
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC EFI support for the installeremaste2014-09-151-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r264978 (nwhitehorn): Add EFI support to the installer. This requires that the kernel provide a sysctl to determine what firmware is in use. This sysctl does not exist yet, so the following blocks are in front of the wheels: - I've provisionally called this "hw.platform" after the equivalent thing on PPC - The logic to check the sysctl is short-circuited to always choose BIOS. There's a comment in the top of the file about how to turn this off. If IA64 acquired a boot1.efifat-like thing (probably with very few modifications), the same code could be adapted there. r265016 (nwhitehorn): Finish connecting up installer UEFI support. If the kernel was booted using EFI, set up the disks for an EFI system. If booted from BIOS/CSM, set up for BIOS. r268256 (nwhitehorn): After EFI support was added to the installer, it needed to allow boot partitions of types other than "freebsd-boot" (in particular, "efi"). This allows the removal of some nasty hacks for supporting PowerPC systems, in particular aliasing freebsd-boot to apple-boot on APM and an IBM-specific code on MBR. This changes the installer to use the correct names, which also breaks a degeneracy in the meaning of "freebsd-boot" that allows the addition of support for some newer IBM systems that can boot from GPT in addition to MBR. Since I have no idea how to detect which those systems are, leave the default on IBM PPC systems as MBR for now. Approved by: re PR: 193658 Relnotes: Yes
* MFC r268407 (by gjb):ae2014-08-251-2/+29
| | | | | | | | | | | | | | | Fix non-version text after .Fx macro usage. MFC r269487 (by issyl0): Add generic list, status, load and unload docs to gpart(8) - In the style of gmirror(8). PR: docs/191534 MFC r269852: Add sysctl and loader tunable kern.geom.part.mbr.enforce_chs that is set by default. It can be used to disable automatic alignment to CHS geometry, that GEOM_PART_MBR does.
* MFC r267617:wblock2014-07-151-6/+7
| | | | | Fix spelling, typos, missing articles, contractions. Expanded version of patch supplied with PR.
* MFC r268090:ae2014-07-081-13/+173
| | | | Document all aliases supported by GEOM_PART class.
* MFC r267355:ae2014-07-011-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add UUIDs for DragonFlyBSD's partition types. MFC r267356: Add DragonFlyBSD's Hammer FS types and type names. MFC r267357: Add aliases for DragonFlyBSD's partition types. MFC r267358: Allow dumping to DragonFlyBSD's swap partition. MFC r267359: Add disklabel64 support to GEOM_PART class. This partitioning scheme is used in DragonFlyBSD. It is similar to BSD disklabel, but has the following improvements: * metadata has own dedicated place and isn't accessible through partitions; * all offsets are 64-bit; * supports 16 partitions by default (has reserved place for more); * has reserved place for backup label (but not yet implemented); * has UUIDs for partitions and partition types; MFC r267360: Add disklabel64 support Relnotes: yes
* MFC: r266483marck2014-05-281-0/+24
| | | | | | Document VMware-related filesystems additions. Reviewed by: jmg
* MFC r264039:ae2014-04-091-1/+26
| | | | Document more parition types.
* MFC r259634:ae2014-01-102-1/+20
| | | | | | | | | | | | | | | | | | Prevent users from deactivating the last component of a mirror. MFC r259929: Add an ability to stop gmirror and clear its metadata in one command. This fixes the problem, when gmirror starts again just after stop. The problem occurs when gmirror's component has geom label with equal size. E.g. gpt and gptid have the same size as partition, diskid has the same size as entire disk. When gmirror's geom has been destroyed, glabel creates its providers and this initiate retaste. Now "gmirror destroy" command is available. It destroys geom and also erases gmirror's metadata. PR: 184985
* MFC r258357:ae2014-01-102-1/+118
| | | | | | | Add "resize" verb to gmirror(8) and such functionality to geom_mirror(4). Now it is easy to expand the size of the mirror when all its components are replaced. Also add g_resize method to geom_mirror class. It will write updated metadata to new last sector, when parent provider is resized.
* MFC 257006asomers2013-12-131-3/+31
| | | | | | | | | sbin/geom/class/part/geom_part.c Always validate the return of find_geomcfg(). It could be NULL, for example when the geom is withering. Approved by: ken (mentor) Sponsored by: Spectra Logic Corporation
* Sweep man pages replacing ad -> ada.pluknet2013-10-013-13/+13
| | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only
* Note NULL encryption method for GELIcrees2013-08-051-3/+6
| | | | | | PR: docs/180551 Submitted by: r4721@tormail.org Approved by: gjb (mentor)
* Add a new gptboot(8) man page. Factor out the redundant informationwblock2013-07-011-65/+25
| | | | | | | in gpart(8) and boot(8), adding references to gptboot(8) in both. Reviewed by: jhb, ae, pjd, Paul Schenkeveld <bsdcan@psconsult.nl>, david_a_bright@dell.com (portions), gjb MFC after: 1 week
* Change the set and unset ctlreqs by making the index argument optional.marcel2013-06-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows setting attributes on tables. One simply does not provide an index in that case. Otherwise the entry corresponding the index has the attribute set or unset. Use this change to fix a relatively longstanding bug in our GPT scheme that's the result of rev 198097 (relatively harmless) followed by rev 237057 (damaging). The damaging part being that our GPT scheme always has the active flag set on the PMBR slice. This is in violation with EFI. Existing EFI implementions for both x86 and ia64 reject the GPT. As such, GPT disks created by us aren't usable under EFI because of that. After this change, GPT disks never have the active flag set on the PMBR slice. In order to make the GPT disk bootable under some x86 BIOSes, the reason of rev 198097, one must now set the active attribute on the gpt table. The kernel will apply this to the PMBR slice For (S)ATA: gpart set -a active ada0 To fix an existing GPT disk that has the active flag set in the PMBR, and that does not need the flag, use (again for (S)ATA): gpart unset -a active ada0 The EBR, MBR & PC98 schemes, which also impement at least 1 attribute, now check to make sure the entry passed is valid. They do not have attributes that apply to the table.
* Minor clarificiation.joel2013-04-221-2/+2
| | | | PR: 177455
* Add the Clang specific -Wmissing-variable-declarations to WARNS=6.ed2013-04-191-0/+2
| | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
* update information about debugging sysctl...jmg2013-04-141-3/+6
| | | | MFC after: 1 week
* Remove kernel options from the SYNOPSIS. They are already documented in thejoel2013-04-111-27/+0
| | | | geom(4) manual page SYNOPSIS.
* Minor rewording.joel2013-04-041-2/+2
| | | | Discussed with: mav
* Remove references to ataraid(4) and atacontrol(8).joel2013-04-042-5/+1
|
* o Typo: IEE -> IEEE.maxim2013-03-251-1/+1
| | | | | | PR: docs/173069 Submitted by: Bjorn Heidotting MFC after: 1 week
* Reduce stack usage.pjd2013-03-181-3/+5
|
* Cross-reference gvinum(8) instead of vinum(8).joel2013-03-164-7/+7
|
* Add legacy support to geom raid to create a /dev/arX device for supportsbruno2013-03-081-0/+3
| | | | | | | | | | | | | | | of upgrading older machines using ataraid(4) to newer releases. This optional parameter is controlled via kern.geom.raid.legacy_aliases and will create a /dev/ar0 device that will point at /dev/raid/r0 for example. Tested on Dell SC 1425 DDF-1 format software raid controllers installing from stable/7 and upgrading to stable/9 without having to adjust /etc/fstab Reviewed by: mav Obtained from: Yahoo! MFC after: 2 Weeks
* Fix typo in EFI GPT GUID.benno2013-02-271-1/+1
|
* Fix minor memory leak.pjd2013-02-101-0/+1
|
* Assert that if we are not dealing with keyfile we are dealing with passfile.pjd2013-02-101-0/+2
|
* Use arc4random_buf(3) instead of reimplementing it.pjd2013-02-101-21/+5
|
* Expand description of how gptboot and gptzfsboot choose a partition forwblock2013-01-251-11/+28
| | | | | | | booting. Reviewed by: ae MFC after: 1 week
* For Promise/AMD metadata add support for disks with capacity above 2TiBmav2013-01-171-2/+1
| | | | and for volumes with sector size above 512 bytes.
* Allow to insert new component to geom_raid3 without specifying number.mav2013-01-152-3/+5
| | | | | PR: kern/160562 MFC after: 2 weeks
* Use tabs for indentation.kib2013-01-051-5/+5
| | | | MFC after: 2 weeks
* Do not round up the size of the UFS filesystem to the fragment sizekib2013-01-051-5/+5
| | | | | | | | | when comparing its size with the size of the media, to determine if the last disk block is unused. Submitted by: Andreas Longwitz <longwitz@incore.de> Reviewed by: pjd MFC after: 2 weeks
* Document the output of the show command. Modified version of patchwblock2013-01-031-10/+16
| | | | | | | | | | provided by Bas Smeelen <b.smeelen@ose.nl>. Use of 'gpart list' suggested by by Andrey V. Elsukov <ae@FreeBSD.org>. PR: docs/174270 Submitted by: Ronald F.Guilmette <rfg@tristatelogic.com> Reviewed by: ae (block sizes) MFC after: 1 week
* More -Wmissing-variable-declarations fixes.ed2012-10-191-1/+1
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Add global and per-module sysctls/tunables to enable/disable metadata taste.mav2012-09-131-1/+5
| | | | | | | That should help to handle some cases when disk has some RAID metadata that should be ignored, especially during boot. MFC after: 3 days
* Change the gptboot example so the boot partition is aligned on a 4 kBdes2012-08-291-2/+3
| | | | | | boundary. MFC after: 3 days
* Document "destroy" as an alias for "stop".jimharris2012-08-031-1/+8
|
* New command "gmultipath prefer" to force selection of a specifiedthomas2012-08-032-1/+34
| | | | | | | provider in an Active/Passive configuration. Reviewed by: mav MFC after: 4 weeks
* Remove trailing whitespace.joel2012-07-301-1/+1
|
* The ad(4) driver no longer exists in FreeBSD CURRENT or 9, so change theissyl02012-07-261-7/+7
| | | | | | | | | references to it in gsched(8) to the existing ada(4) driver. PR: docs/170085 Submitted by: olgeni Approved by: gavin MFC after: 5 days
* Improve description of various key used by GELI.pjd2012-07-041-74/+154
| | | | | | PR: docs/169089 Submitted by: John W. O'Brien <john@saltant.com> MFC after: 3 days
* Use possessive "its", no apostrophe.wblock2012-06-271-1/+1
| | | | MFC after: 1 day
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-243-5/+6
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* Clarify error that geli generateseadler2012-05-091-0/+3
| | | | | | | | | | when it finds corrupt data. PR: kern/165695 Submitted by: Robert Simmons <rsimmons0@gmail.com> Reviewed by: pjd Approved by: cperciva MFC after: 1 week
* Add support for RAID5R. Slightly improve support for RAIDMDF.mav2012-05-061-3/+3
|
* Add description for GEOM RAID tunables/sysctls.mav2012-05-061-1/+28
| | | | MFC after: 1 week
* Don't ignore start offset value when user specifies it togetherae2012-05-041-1/+4
| | | | | | | | with alignment. PR: bin/167567 Tested by: Warren Block MFC after: 1 week
* Implement read-only support for volumes in optimal state (without usingmav2012-05-041-4/+6
| | | | redundancy) for the following RAID levels: RAID4/5E/5EE/6/MDF.
OpenPOWER on IntegriCloud