Ulf Lilleengen
0fdcb6f055
- Initialize variable in order to avoid GCC warning and enable WARNS=6.
...
PR: bin/139970
Submitted by: Ulrich Spörlein <uqs -at- spoerlein.net>
2009-10-26 07:43:41 +00:00
Ruslan Ermilov
605c493e90
Clean up markup (mainly).
2009-10-19 15:50:59 +00:00
Christian Brueffer
897e93cc72
Fix the example, -w is the right switch for write failure probability.
...
PR: 136219
Submitted by: Kouki Hashimoto <hsmtkk@gmail.com>
Patch by: gavin
MFC after: 3 days
2009-09-17 13:04:46 +00:00
Pawel Jakub Dawidek
21038751aa
Actually component with the greatest priority is used by the prefer balance
...
algorithm.
2009-09-09 19:06:01 +00:00
Pawel Jakub Dawidek
b740e905a4
Add support for changing providers priority.
...
Submitted by: Mel Flynn
2009-09-06 06:52:06 +00:00
Ivan Voras
43ec3cc665
Remove (c) line.
...
Requested by: pjd
Approved by: gnn (mentor)
MFC after: 1 month
2009-08-23 18:15:13 +00:00
Marcel Moolenaar
cee5f0ca2d
Emit a proper error message instead of dumping core when 1)
...
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)
2009-08-16 21:27:35 +00:00
Ivan Voras
452f657cb9
Add support for labels derived from GPT metadata.
...
Approved by: gnn (mentor)
Reviewed by: pjd
PR: 128398
Submitted by: Marius Nuennerich < marius at nuenneri.ch >
2009-06-13 00:27:03 +00:00
John Baldwin
34578ff413
Change the printf format string to match the variable type to quiet
...
warnings.
2009-06-08 15:54:07 +00:00
Marcel Moolenaar
d0148d1d0e
Make the size (-s) and start (-b) parameters of the add verb optional.
...
The missing parameter(s) are automatically filled-in.
2009-06-08 02:13:24 +00:00
Marcel Moolenaar
dc344ca5a4
Allow humanized numbers for LBAs, as well as partition indices for
...
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.
2009-06-07 20:12:14 +00:00
Maxim Konovalov
da3ea50434
o Fix typo in the example.
...
PR: docs/134930
Submitted by: Alex Keda
MFC after: 1 week
2009-05-25 09:52:58 +00:00
Edward Tomasz Napierala
4e6430a67f
Slightly improve gjournal documentation.
...
Reviewed by: pjd
2009-04-29 10:02:50 +00:00
Ivan Voras
56aebf7eb9
Man page accompanying r190423 - introduce UFS ID labels.
...
Actually-by: pjd
Approved by: gnn (mentor)
2009-03-25 20:40:34 +00:00
Pawel Jakub Dawidek
663b354412
- Punctuation fixes.
...
- New sentence - new line.
Reported by: Ben Kaduk <minimarmot@gmail.com>
- No more than 80 chars per line.
2009-02-22 15:03:29 +00:00
Pawel Jakub Dawidek
5d6fbb9900
Correct the year.
...
Reported by: Florian Smeets <flo@kasimir.com>
2009-02-17 20:35:11 +00:00
Pawel Jakub Dawidek
9744488197
Document kern.geom.journal.* sysctls.
...
PR: docs/130548
Submitted by: Hywel Mallett <hywel@hmallett.co.uk>
MFC after: 1 week
2009-02-17 20:30:17 +00:00
Marcel Moolenaar
0dd9f21c23
Prefer the start and end attributes over the offset and size
...
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.
2009-02-08 20:19:19 +00:00
Daniel Gerzo
c419baec28
- grammar and language fixes
...
- 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
2009-01-04 15:41:01 +00:00
Ivan Voras
2b67c28a09
Several significant updates:
...
* 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)
2009-01-04 11:31:03 +00:00
Marcel Moolenaar
08b6360ca3
Print error messages as-is, when they don't conform to
...
<errno> [<parameter> 'value']
These are error messages from (lib)geom itself.
2008-11-30 23:46:31 +00:00
Marcel Moolenaar
e419ba879f
Call gctl_free() after we processed the error string.
...
It's being freed as part of the request.
2008-11-30 23:38:44 +00:00
Marcel Moolenaar
39bd58723a
Parse the error string returned by the kernel. The format is:
...
<errno> [<parameter> <value>]
So, rather than printing the error:
gpart: 22 scheme 'gpt'
gpart(8) now prints:
gpart: scheme 'gpt': invalid argument
2008-11-29 21:20:07 +00:00
Xin LI
b652d3a3dc
Grammar improvements.
...
Submitted by: kensmith
2008-11-18 20:38:07 +00:00
Marcel Moolenaar
7f792cd758
Use humanize_number(), rather than a home-grown algorithm for
...
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
2008-11-18 04:04:01 +00:00
Marcel Moolenaar
567bc443e8
Sort includes
...
Submitted by: delphij
2008-11-18 03:43:02 +00:00
Marcel Moolenaar
0a4acb2e3d
Pad the bootcode we write to the partition to a multiple of the
...
sector size.
Submitted by: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de>
Prompted by: delphij
MFC after: 3 days
2008-11-18 00:03:30 +00:00
Marcel Moolenaar
1eecfda454
Add support for multiple attributes. This is required for the
...
PC98 scheme.
2008-10-20 05:12:50 +00:00
Xin LI
30223a3203
Add some examples to demostrate gpart(8).
...
--此行及以下内容将会被忽略--
2008-10-09 06:23:04 +00:00
Pawel Jakub Dawidek
ba196edbd2
By default backup geli metadata to a file. It is quite critical 512 bytes,
...
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
2008-08-29 18:10:18 +00:00
Pawel Jakub Dawidek
785c7ba6a1
- Give algorithms recommendation.
...
- Keep options in alphabetical order.
2008-08-29 17:13:07 +00:00
Pawel Jakub Dawidek
4c5739d8f7
geli onetime command can take only one GEOM provider at a time.
2008-08-12 19:42:03 +00:00
Ivan Voras
970a8ddc44
Clean up of dead code and possible unassigned variable usage.
...
Found by: LLVM/Clang Static Checker
Approved by: gnn (mentor)
2008-08-09 16:47:30 +00:00
Marcel Moolenaar
7a4a5cc0f4
Implement the set and unset verbs. While here, have the manpage
...
catch up with various changes.
2008-06-18 01:46:32 +00:00
Marcel Moolenaar
5a96f8396d
Implement the -l and -r options for gpart show.
...
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.
2008-06-13 00:04:10 +00:00
Marcel Moolenaar
c0b5f33d45
Document the new -p and -i options for writing bootstrap code into
...
a partition. Make it clear that the -b option embeds boot code in
the meta-data.
2008-06-07 00:14:06 +00:00
Marcel Moolenaar
3022de951b
Enhance the bootcode command to also allow bootcode to be written
...
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).
2008-06-06 23:58:29 +00:00
Marcel Moolenaar
8c39fe86af
Update the manpage to reflect reality:
...
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.
2008-06-06 05:14:16 +00:00
Marcel Moolenaar
14bf405be4
Replace checks for RESCUE in sources with checks for STATIC_GEOM_CLASSES
...
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.
2008-06-04 20:07:59 +00:00
Marcel Moolenaar
4d32fcb42b
Add the bootcode verb for installing boot code. Boot code
...
is supported for the MBR, GPT and PC98 schemes, where GPT
installs boot code into the PMBR.
2008-04-13 19:54:54 +00:00
Remko Lodder
afa09cae88
I keep taking timemachines to get back in time. Update the
...
year to 2008.
Noticed by: ceri
2008-04-13 11:05:59 +00:00
Remko Lodder
722bb56802
Add missing device in tunefs entry.
...
PR: docs/122702
Submitted by: Yoshihiro Ota <ota@j.email.ne.jp>
MFC After: 3 days
2008-04-13 07:48:05 +00:00
Christian Brueffer
51b6df2d16
- Use an uppercase provider name in the example, to make the name change
...
after labeling the provider more obvious. (1)
- Correct nomenclature usage
PR: 121487 (1)
Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com>
MFC after: 3 days
2008-03-13 15:37:02 +00:00
Christian Brueffer
058ddc3099
Fix typos.
...
PR: 121486
Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com>
MFC after: 3 days
2008-03-08 12:13:00 +00:00
Xin LI
bc69d66f2f
Make it possible to build glabel into rescue geom(8) utility.
...
Ok'ed by: marcel
No objection: -current@
2008-03-05 23:31:49 +00:00
Christian Brueffer
a4b1fac3d2
Minor language cleanup.
...
MFC after: 3 days
2007-11-24 09:32:45 +00:00
John Birrell
ea07ab3fd9
Fix signed/unsigned comparison compiler warning.
2007-11-18 03:17:56 +00:00
Ruslan Ermilov
f86f9eeaef
Briefly document what the -c option of the "label" command does.
...
MFC after: 3 days
2007-11-15 06:31:18 +00:00
Ruslan Ermilov
5419612785
Revise the markup and apply some wordsmithing.
...
Reviewed by: pjd
MFC after: 3 days
2007-11-15 06:23:33 +00:00
Marcel Moolenaar
a16f9b367d
Allow building of a special rescue version of geom that
...
has a subset of the classes compiled-in.
2007-11-04 00:32:54 +00:00