summaryrefslogtreecommitdiffstats
path: root/sbin/geom/class/part
Commit message (Collapse)AuthorAgeFilesLines
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-241-2/+2
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* 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
* Document GEOM_PART_LDM scheme and partition types.ae2012-03-191-2/+38
| | | | MFC after: 1 month
* Provide a better explanation for the sizing of the boot partition, anddes2012-01-131-10/+14
| | | | | | | | reduce the size of the partition in the example from 128 blocks to 94 blocks so it will end on a 128-block boundary. Also remove the -b option from the next example. MFC after: 3 weeks
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | | error: variable 'secsz' set but not used Reviewed by: ae Approved by: dim MFC after: 3 days
* Whitespace-only fix. Translators, please feel free to ignore.wblock2012-01-091-3/+4
| | | | | | Approved by: gjb (mentor) MFC after: 3 days X-MFC-with: r227774, r227777, r227800
* Clarity improvements.wblock2012-01-091-8/+8
| | | | | Approved by: gjb (mentor) MFC after: 3 days
* Correct and expand BSD partitioning scheme description.wblock2011-11-211-7/+9
| | | | | | | | Correct GUID to GPT in RECOVERING section. Reviewed by: ae Approved by: gjb (mentor) MFC after: 1 week
* Fix date.wblock2011-11-211-1/+1
| | | | | Approved by: gjb (mentor) MFC after: 1 week
* Add a section that explicitly describes partitioning schemes. Modifywblock2011-11-211-126/+154
| | | | | | | | | existing sections to refer to the new one. Rearrange partitioning scheme list so MBR and EBR types are together. Also add several corrections for grammar, clarity, and consistency. Approved by: gjb (mentor) MFC after: 1 week
* - change "is is" to "is" or "it is"eadler2011-10-161-1/+1
| | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days
* Don't use the whole free space when resizing partition to a larger sizeae2011-09-081-6/+6
| | | | | | | | | | | on a disk with non zero stripesize (e.g. disks with 4k sector size)[1]. Also do not use automatic alignment when size is exactly specified, but an alignment is not. Use automatic alignment only for case when user omits both "-s" and "-a" options. Reported by: Mikael Fridh <frimik at gmail> [1] Approved by: re (kib) MFC after: 1 week
* o Fix mdoc formatting for the '.Fx' macro. [1]ae2011-08-201-3/+13
| | | | | | | | o Add information about APM scheme and fix typos. [2] Submitted by: gjb [1], nwhitehorn [2] Approved by: re (kib) MFC after: 1 week
* Add new section "BOOTSTRAPPING" to the gpart(8), that describesae2011-08-191-12/+90
| | | | | | | | | bootstrap code images used to boot from MBR, GPT, BSD and VTOC8 schemes. Reviewed by: marius (previous version) Approved by: re (kib) MFC after: 1 week
* When user specifies the bootcode with size smaller than VTOC_BOOTCODE,ae2011-06-211-1/+4
| | | | | | | | gpart_write_partcode_vtoc8 does access out of range of allocated memory. Check size of bootcode before writing it. Pointed out by: ru MFC after: 1 week
* Mod the offset padding by alignment. Without this change we maydelphij2011-06-211-2/+2
| | | | | | pad too much when underlying GEOM object have a zero stripesize. MFC after: 1 month
* The "size" param needs no adjusting to stripeoffset.ae2011-06-211-2/+2
| | | | Reported by: Kris Moore
* Add "alignment" param to the request before calling gpart_autofill().ae2011-06-161-0/+1
|
* Do not use LCM from stripesize and user specified alignment value.ae2011-06-071-7/+4
| | | | | | | | When user wants have specific alignment - do what user wants. Use stripesize as alignment value in case, when some of gpart's arguments are ommitted for automatic calculation. Suggested by: mav
* Rework parts of this man page to improve grammar.gavin2011-06-061-37/+37
| | | | | | | Inspired by, and parts submitted by... PR: docs/157467 Submitted by: Ben Kaduk <kaduk mit.edu> MFC after: 2 weeks
* Generally clean up markup.ru2011-06-031-71/+85
|
* Always use LCM when stripesize > 0.ae2011-06-021-2/+2
|
* Use stripesize and stripeoffset in the automatic calculation ofae2011-06-021-18/+33
| | | | | | | | | | partition offsets. If user requests specific alignment and provider's stripesize is not zero, then use a least common multiple from the stripesize and user specified value. Also fix "gpart resize" implementation: do not try to align the partition size, because the start offset may be not aligned. Instead align the end offset and then calculate size. Also use stripesize and stripeoffset for "gpart resize" command.
* mdoc: fix markupuqs2011-06-021-0/+1
|
* Document kern.geom.part.check_integrity sysctl variable.ae2011-05-301-1/+17
|
* Add example how to create MBR and BSD schemes and install boot code.ae2011-05-271-1/+28
|
* Synchronize manpage's synopsis with program's usage. Since -l and -rae2011-05-272-5/+6
| | | | | | | keys are mutually exclusive for the `gpart show` command, then mark them so. Requested by: ru
* Simplify ALIGNDOWN macro.ae2011-05-241-1/+1
|
* Fix calculation of alignment for odd values. Also do not change valueae2011-05-241-2/+2
| | | | when it is already aligned.
* Some partitioning schemes want to have partitions that are alignedae2011-05-151-10/+14
| | | | | | | | | | | | | with geometry. And they do recalculation of user specified parameters. MBR, PC98, VTOC8, EBR schemes are doing that. For these schemes an auto alignment feature (ie. gpart add -a alignment) would not work. But it can work for GPT and BSD schemes. BSD scheme usualy is created inside MBR, so we can use knowledge about offset of MBR partition to calculate aligned values for BSD partitions. Use "offset" attribute of the parent provider for better alignment. MFC after: 2 weeks
* Simplify the code a bit. For own providers GEOM_PART always providesae2011-05-151-61/+14
| | | | | | "start" and "end" config attributes. MFC after: 1 week
* Add "-a alignment" option to gpart(8). When it specified gpart(8)ae2011-05-032-27/+99
| | | | | | | tries to align partition start offset and size to be multiple of alignment value. MFC after: 2 weeks
* Fix grammar.ae2011-03-121-2/+2
| | | | | Pointed out: Ben Kaduk MFC after: 2 weeks
* Document GEOM_PART_EBR_COMPAT option.ae2011-03-121-1/+7
| | | | MFC after: 2 weeks
* It is better to sometimes have not aligned columns thanae2011-03-081-6/+0
| | | | | | often have wrapped lines. MFC after: 2 weeks
* Add -p option to `gpart show` command to show provider's names ofae2011-03-082-14/+40
| | | | | | | partitions instead of partition's indexes. This may be useful with GPT partitioning scheme or EBR without GEOM_PART_EBR_COMPAT option. MFC after: 2 weeks
* Document the "bios-boot" partition type.ae2011-01-281-1/+6
| | | | MFC after: 2 weeks
* o Somehow I revert Dd macro in the previous commit.maxim2011-01-131-1/+1
| | | | Re-revert it.
* o Start each sentence on a new line. No content changes.maxim2011-01-131-19/+25
| | | | | Suggested by: jhb MFC after: 1 week
* o Typo fixes.maxim2011-01-131-2/+2
| | | | | | PR: docs/153933 Submitted by: jpaetzel@, Warren Block MFC after: 1 week
* Fix up the grammar.ae2011-01-121-3/+3
| | | | | PR: docs/153933 MFC after: 3 days
* Check number of arguments before trying to read arg0. This prevents accessae2010-12-211-0/+2
| | | | to arg0 and dumping core when `gpart bootcode` called without arguments.
* Rename the generic "CLASS" to the more specific "GEOM_CLASS".obrien2010-12-151-1/+1
| | | | | | While I'm here remove redundancy and inconsistencies. Obtained from: Juniper Networks
* Fix some more warnings found by clang.brucec2010-11-221-1/+1
|
* Add SIGINT handler to `gpart restore` action.ae2010-11-221-1/+20
| | | | MFC after: 1 week
* Always dump partition labels with `gpart backup`, but `gpart restore`ae2010-11-222-29/+32
| | | | | | | | | does restore them only when -l option is specified [1]. Make number of entries field in backup format optional. Document -l and -r options of `gpart show` action. Suggested by: pjd [1] MFC after: 1 week
* Add to gpart(8) an ability to backup partition table andae2010-11-202-1/+371
| | | | | | | | restore it from given backup. Discussed with: geom@ Approved by: kib (mentor) MFC after: 1 week
* Reimplemented "gpart destroy -F". Now it does all work in kernel.ae2010-10-252-84/+99
| | | | | | | | | | | | | | | | | This was needed for recover implementation. Implement the recover command for GPT. Now GPT will marked as corrupt when any of three types of corruption will be detected: 1. Damaged primary GPT header or table 2. Damaged secondary GPT header or table 3. Secondary header is not located in the last LBA Marked GPT becomes read-only. Any changes with corrupt table are prohibited. Only "destroy" and "recover" commands are allowed. Discussed with: geom@ (mostly silence) Tested by: Ilya A. Arhipov Approved by: mav (mentor) MFC after: 2 weeks
* Replace strlen(_PATH_DEV) with sizeof(_PATH_DEV) - 1.ae2010-10-091-2/+2
| | | | | | Suggested by: kib Approved by: kib (mentor) MFC after: 5 days
* Document recently added GPT attributes (bootme, bootonce, bootfailed) andpjd2010-09-281-1/+104
| | | | | | | list other schemes attributes. Reviewed by: simon, rpaulo MFC after: 2 weeks
OpenPOWER on IntegriCloud