summaryrefslogtreecommitdiffstats
path: root/sbin/geom
Commit message (Collapse)AuthorAgeFilesLines
* Switch the default WARNS level for sbin/ to 6.ru2009-10-192-1/+1
| | | | Submitted by: Ulrich Spörlein
* Clean up markup (mainly).ru2009-10-191-77/+149
|
* Fix the example, -w is the right switch for write failure probability.brueffer2009-09-171-3/+3
| | | | | | | PR: 136219 Submitted by: Kouki Hashimoto <hsmtkk@gmail.com> Patch by: gavin MFC after: 3 days
* Actually component with the greatest priority is used by the prefer balancepjd2009-09-091-1/+1
| | | | algorithm.
* Add support for changing providers priority.pjd2009-09-062-9/+19
| | | | Submitted by: Mel Flynn
* Update copyright years.pjd2009-09-061-1/+1
|
* For any given subcommand allow to specify multi-line usage (separated by \n).pjd2009-09-061-2/+12
| | | | Submitted by: Mel Flynn
* Remove (c) line.ivoras2009-08-231-1/+0
| | | | | | Requested by: pjd Approved by: gnn (mentor) MFC after: 1 month
* Emit a proper error message instead of dumping core when 1)marcel2009-08-161-2/+14
| | | | | | | | | | | GEOM_PART does not exist in the kernel, and 2) the GEOM in question does not exist. Additionally abort in case of programming errors that result in neither the class nor geom not being present in the gctl request. Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru> Approved by: re (kib)
* Add support for labels derived from GPT metadata.ivoras2009-06-131-2/+14
| | | | | | | Approved by: gnn (mentor) Reviewed by: pjd PR: 128398 Submitted by: Marius Nuennerich < marius at nuenneri.ch >
* Change the printf format string to match the variable type to quietjhb2009-06-081-2/+2
| | | | warnings.
* Make the size (-s) and start (-b) parameters of the add verb optional.marcel2009-06-081-2/+126
| | | | The missing parameter(s) are automatically filled-in.
* Allow humanized numbers for LBAs, as well as partition indices formarcel2009-06-073-21/+120
| | | | | | gpart(8). LBAs in particular are ugly. The ganularity is a sector, but users expect byte granularity when specifying the size or offset with a SI unit. Handle LBAs specially to deal with this.
* o Fix typo in the example.maxim2009-05-251-1/+1
| | | | | | PR: docs/134930 Submitted by: Alex Keda MFC after: 1 week
* Add links to libgeom(3) where appropriate.trasz2009-05-191-0/+1
|
* Slightly improve gjournal documentation.trasz2009-04-291-1/+2
| | | | Reviewed by: pjd
* Man page accompanying r190423 - introduce UFS ID labels.ivoras2009-03-251-2/+8
| | | | | Actually-by: pjd Approved by: gnn (mentor)
* - Punctuation fixes.pjd2009-02-221-9/+18
| | | | | | | | - New sentence - new line. Reported by: Ben Kaduk <minimarmot@gmail.com> - No more than 80 chars per line.
* Correct the year.pjd2009-02-171-1/+1
| | | | Reported by: Florian Smeets <flo@kasimir.com>
* Document kern.geom.journal.* sysctls.pjd2009-02-171-6/+102
| | | | | | PR: docs/130548 Submitted by: Hywel Mallett <hywel@hmallett.co.uk> MFC after: 1 week
* Prefer the start and end attributes over the offset and sizemarcel2009-02-081-14/+31
| | | | | | attributes. The start and end more accurately describe the space taken by a partition. The offset and size are used to describe the effective (usable) storage of that partition.
* - Use a separate pointer to the allocated memory for freeing, as strsep maylulf2009-02-021-3/+3
| | | | | | | | | | modify the pointer argument passed to it. This triggered an assert in malloc when a geom command being run under the livefs environment. PR: bin/130632 Submitted by: Dimitry Andric <dimitry -at- andric.com> Pointy hat to: me MFC after: 2 days
* - grammar and language fixesdanger2009-01-041-45/+49
| | | | | | | | | - hard sentence breaks - trim EXIT STATUS section and move it to DIAGNOSTICS as well as use .Er macro - sort SEE ALSO MFC after: 7 days
* Several significant updates:ivoras2009-01-041-49/+105
| | | | | | | | | | * Better wording of sections dealing with physical storage * A new section on assumptions gvirstor has on its consumer devices (components) and its interaction with file systems * Improved markup (by hrs@) Reviewed by: hrs Approved by: gnn (mentor)
* - Back out r186038. Rather than changing the intent of the caller, the problemlulf2008-12-271-1/+1
| | | | | | should be handled internally in gvinum. Suggested by: pjd
* - When writing metadata to a geom provider, open the it as read-write since itlulf2008-12-131-1/+1
| | | | | | | | | | | | | | might do subsequent reads from other providers. This stopped geli (and probably other classes using g_metadata_store as well) from being put on top of gvinum raid5 volumes. Note: The reason it fails in the gvinum raid5 case is that gvinum will read back the old parity stripe before calculating the new parity stripe to be written out again. The write will then fail because the underlying disk to be read is opened write only. MFC after: 1 week
* Print error messages as-is, when they don't conform tomarcel2008-11-301-6/+9
| | | | | <errno> [<parameter> 'value'] These are error messages from (lib)geom itself.
* Call gctl_free() after we processed the error string.marcel2008-11-301-5/+11
| | | | It's being freed as part of the request.
* Parse the error string returned by the kernel. The format is:marcel2008-11-291-14/+39
| | | | | | | | <errno> [<parameter> <value>] So, rather than printing the error: gpart: 22 scheme 'gpt' gpart(8) now prints: gpart: scheme 'gpt': invalid argument
* Grammar improvements.delphij2008-11-181-4/+4
| | | | Submitted by: kensmith
* Use humanize_number(), rather than a home-grown algorithm formarcel2008-11-182-13/+7
| | | | | | | | | | | | | formatting a number in a human-friendly way. Note that with this commit a megabyte changed from 1000000 to 1048576 and a 80G disk is now printed as being 75G in size. This is deliberate. It's consistent with the core of geom(8). However, the original choice for a megabyte being 1000000 was on purpose and matches what disk vendors put on the box. The consistency is considered more important. Submitted by: delphij
* Sort includesmarcel2008-11-181-9/+10
| | | | Submitted by: delphij
* Pad the bootcode we write to the partition to a multiple of themarcel2008-11-181-1/+16
| | | | | | | | sector size. Submitted by: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> Prompted by: delphij MFC after: 3 days
* Add support for multiple attributes. This is required for themarcel2008-10-201-6/+13
| | | | PC98 scheme.
* Add some examples to demostrate gpart(8).delphij2008-10-091-1/+36
| | | | | | | | | | | | | | | --此行及以下内容将会被忽略-- > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M gpart.8
* By default backup geli metadata to a file. It is quite critical 512 bytes,pjd2008-08-292-17/+110
| | | | | | | | | | | | | | | | | | | | | | | once it is lost, all data is gone. Option '-B none' can by used to prevent backup. Option '-B path' can be used to backup metadata to a different file than the default, which is /var/backups/<prov>.eli. The 'geli init' command also prints backup file location and gives short procedure how to restore metadata. The 'geli setkey' command now warns that even after passphrase change or keys update there could be version of the master key encrypted with old keys/passphrase in the backup file. Add regression tests to verify that new functionality works as expected. Update other regression tests so they don't create backup files. Reviewed by: keramida, rink Dedicated to: a friend who lost 400GB of his live by accidentally overwritting geli metadata MFC after: 2 weeks
* - Give algorithms recommendation.pjd2008-08-291-13/+15
| | | | - Keep options in alphabetical order.
* geli onetime command can take only one GEOM provider at a time.pjd2008-08-122-3/+3
|
* Clean up of dead code and possible unassigned variable usage.ivoras2008-08-091-3/+7
| | | | | Found by: LLVM/Clang Static Checker Approved by: gnn (mentor)
* Add NO_MAN for the static variant of geom(8). Both the RESCUE and themarcel2008-07-031-0/+1
| | | | | | RELEASE_CRUNCH builds use NO_MAN anyway, so this change is primarily to avoid that developers have to set NO_MAN manually when they build the static variant.
* Implement the set and unset verbs. While here, have the manpagemarcel2008-06-182-11/+84
| | | | catch up with various changes.
* Implement the -l and -r options for gpart show.marcel2008-06-131-6/+32
| | | | | | The -l option changes the output to show the partition label, if applicable and when present. The -r option changes the output to show the raw (i.e. scheme-specific) partition types.
* Document the new -p and -i options for writing bootstrap code intomarcel2008-06-071-8/+24
| | | | | a partition. Make it clear that the -b option embeds boot code in the meta-data.
* Enhance the bootcode command to also allow bootcode to be writtenmarcel2008-06-061-25/+143
| | | | | to a partition. This avoids that users need to use dd(1) to install boot code (as is needed for VTOC8 and booting GPT on PCs).
* Add two support functions:marcel2008-06-062-0/+47
| | | | | | | | | | | | | o gctl_delete_param() -- intended for parameters that are consumed by geom(8) itself and which should not be passed to the kernel. o gctl_has_param() -- intended to check if optional parameters are present. Both are needed by gpart(8) to process the optional parameter for writing bootcode to a partition (as part of the bootcode verb). However, the kernel is itself not involved in this matter and the parameter needs to be removed from the request destined for the kernel.
* Update the manpage to reflect reality:marcel2008-06-061-3/+32
| | | | | | o The BSD, PC98 and VTOC8 schemes are supported. o The bootcode command was added to allow installing bootstrap code into the scheme's metadata.
* Allow building a static geom(8) for release related crunchedmarcel2008-06-051-1/+1
| | | | | binaries. In particular, this allows geom to be added to the boot_crunch binary on ia64.
* Replace checks for RESCUE in sources with checks for STATIC_GEOM_CLASSESmarcel2008-06-044-8/+8
| | | | | | and define STATIC_GEOM_CLASSES when building the rescue binary. This way geom can more easily be part of other crunched binaries, as it requires only a Makefile change.
* Add the bootcode verb for installing boot code. Boot codemarcel2008-04-131-3/+47
| | | | | is supported for the MBR, GPT and PC98 schemes, where GPT installs boot code into the PMBR.
* I keep taking timemachines to get back in time. Update theremko2008-04-131-1/+1
| | | | | | year to 2008. Noticed by: ceri
OpenPOWER on IntegriCloud