pjd
2c9137ee39
Add a note in example as well, that last sector is used for metadata,
...
so it don't provoke confusions.
Noticed by: Victor Sudakov <sudakov@sibptus.tomsk.ru>
MFC after: 2 days
2005-09-29 08:56:15 +00:00
pjd
e74d0361d3
Even if there are no valid keys in metadata, but provider is attached
...
we can still use setkey subcommand.
MFC after: 3 days
Found by: regression tests
2005-09-10 07:43:03 +00:00
marius
a128a96ae0
As with NO_CRYPT, don't try to compile geli(8) when NO_OPENSSL is defined
...
either.
MFC after: 1 week
2005-08-27 20:51:12 +00:00
takawata
393fbc1df4
Update Document.
2005-08-26 11:39:38 +00:00
pjd
aee0040df6
By default, when doing crypto work in software, start as many threads
...
as we have active CPUs and bind each thread to its own CPU.
MFC after: 3 days
2005-08-21 18:12:51 +00:00
pjd
0c33c951a5
Allow to change number of iterations for PKCS#5v2. It can only be used
...
when there is only one key set.
MFC after: 3 days
2005-08-19 22:19:25 +00:00
pjd
94bc690fb5
Move function for calculating number of bits into more central place.
...
I want to use it so more.
MFC after: 3 days
2005-08-19 22:13:09 +00:00
pjd
e00e4fe291
Update manual page (now dedicated kernel thread is always started).
...
MFC after: 3 days
2005-08-17 15:27:23 +00:00
pjd
3c2828d3f4
Unfortunately dlerror(3) returns string, so there is no clean way to
...
ignore "no such file" errors only, which I wanted to do.
Because of this I ignored all other errors on dlopen(3) failure as well,
which isn't good.
Fix this situation by calling access(2) on library file first and ignore
only ENOENT error. This allows to report all the rest of dlopen(3) errors.
MFC after: 3 days
2005-08-14 21:55:18 +00:00
pjd
f8b8e82885
When keys were configured without passphrase, number of iterations in
...
metadata is equal to -1. if we then wanted to attach provider (or change
keys) and forget about '-p' flag it failed on assertion (quite ok, without
assertion it could call PKCS#5v2 with 4294967295 iterations).
Instead of failing on assertion, remind about '-p' flag.
MFC after: 3 days
2005-08-14 14:13:07 +00:00
pjd
beb7869726
GELI doesn't need cryptodev.
...
MFC after: 2 days
2005-08-12 07:44:42 +00:00
pjd
b9935076f6
Add code for Ext2FS and ReiserFS labels recognition.
...
Submitted by: Stanislav Sedov <stas@310.ru>
PR: kern/84638
MFC after: 1 week
2005-08-12 00:27:45 +00:00
ru
4cb266fe14
Add missing check for the NO_CRYPT build option.
...
Reported by: Alexander Polakov
2005-08-02 20:12:30 +00:00
brueffer
9ac3a9fcb9
Misc cleanup (spelling, grammar, mdoc, style, cut >80 char lines).
2005-07-30 13:27:15 +00:00
pjd
7079ab35b4
I actually do need libmd.
2005-07-29 10:06:57 +00:00
pjd
66b1e1d508
I think I found the problem, reconnect geli to the build.
2005-07-27 23:56:32 +00:00
pjd
4ab523d931
- Reduce WARNS level to 3, so it will be compilabe on alpha.
...
- Don't link libmd, it is not needed.
- Connect manual page to the build.
MFC after: 1 week
2005-07-27 23:56:01 +00:00
pjd
075c0555b8
Disconnect geli from the build for now.
...
I need to find out first what is the cause of sha2.c compilation problem
on alpha.
2005-07-27 23:30:50 +00:00
pjd
ae2e0b62c3
Connect GEOM_ELI class to the build.
...
MFC after: 1 week
2005-07-27 21:47:55 +00:00
pjd
57922fa5cc
Add GEOM_ELI class which provides GEOM providers encryption.
...
For features list and usage see manual page: geli(8).
Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
MFC after: 1 week
2005-07-27 21:43:37 +00:00
pjd
894f400097
Don't forget to initialize 'id' field.
...
MFC after: 3 days
2005-07-13 07:46:55 +00:00
pjd
85babab07f
Remove trailing spaces.
2005-04-29 07:57:50 +00:00
pjd
5745532ed1
Fix stripe size in example.
...
Found by: kris
MFC after: 3 days
2005-04-26 09:23:21 +00:00
pjd
c7eadd3426
Remove duplicated description of 'clear' subcommand.
...
Pointed out by: marck
X-MFC-after: few seconds
2005-04-23 12:17:21 +00:00
pjd
1dcaba98da
Document 'clear' and 'dump' subcommands.
...
MFC after: 1 week
2005-04-15 23:51:20 +00:00
pjd
ebb3a9b55b
Allow classes to specify local source files.
...
MFC after: 3 weeks
2005-04-07 15:57:38 +00:00
pjd
3035fc244c
Empty error buffer is not an error.
...
MFC after: 3 weeks
2005-04-07 06:46:11 +00:00
pjd
26774156e7
Fix use of uninitialized buf[0].
...
Reported by: stefanf
MFC after: 3 days
2005-03-22 22:05:44 +00:00
pjd
2762d2e8a6
Be sure that class name storaed in 'class_name' is lower case.
...
MFC after: 1 week
2005-03-14 15:00:51 +00:00
pjd
4c29f3b1e1
Define subcommands' usage inside g_command structure.
...
MFC after: 1 week
2005-03-14 14:25:47 +00:00
pjd
70e7ef2f36
- Add gc_usage field to g_command structure. This will allow to define
...
usage for a subcommand, so no 'usage' function has to be implemented
in class library.
- Bump version number as it breaks ABI, but don't provide backward
compatibility, because there are probably no external consumers of this
geom(8).
This allows to print more precise usage for standard commands and simplify
class libraries a bit.
MFC after: 1 week
2005-03-14 14:24:46 +00:00
pjd
8ef3f502d0
Instead of documenting every standard subcommand's argument everywhere,
...
just leave reference to geom(8).
MFC after: 1 week
2005-03-14 13:14:04 +00:00
pjd
b1046d1ec5
Document subcommands' arguments.
...
MFC after: 1 week
2005-03-14 13:06:09 +00:00
pjd
1d8fbec83f
Document '-s' option of 'status' subcommand.
...
MFC after: 1 week
2005-03-14 12:37:55 +00:00
pjd
664873178e
Add '-s' option to 'status' subcommand. It produces script-friendly output:
...
# gmirror status
Name Status Components
mirror/root COMPLETE ad0s1a
ad2s1a
mirror/data DEGRADED da0
da1 (76%)
da2
# gmirror status -s
Name Status Components
mirror/root COMPLETE ad0s1a
mirror/root COMPLETE ad2s1a
mirror/data DEGRADED da0
mirror/data DEGRADED da1 (76%)
mirror/data DEGRADED da2
MFC after: 1 week
2005-03-14 12:33:19 +00:00
pjd
74672647f0
Use int instead of size_t (%*s needs int).
...
MFC after: 1 week
2005-03-14 08:34:02 +00:00
delphij
ebc7aa2a14
printf(3) expects that %*s having an int parameter, which generates
...
warning on 64-bit platforms. Explicitly cast these values to int
to work around this issue, as these values are tend to be small.
Spotted by: ia64 tinderbox
2005-03-14 04:33:13 +00:00
pjd
e421eec8b6
- Document 'status' subcommand.
...
- Update copyrights.
MFC after: 1 week
2005-03-13 19:38:12 +00:00
pjd
9aad0c73fc
Add 'status' command which prints general information about devices.
...
For example:
# gmirror status
Name Status Components
mirror/root COMPLETE ad0s1a
ad2s1a
mirror/data DEGRADED da0
da1 (76%)
da2
MFC after: 1 week
2005-03-13 19:34:27 +00:00
pjd
bc988d83e6
Update copyrights.
2005-03-13 19:11:57 +00:00
pjd
72c79585cf
Change function names related to 'list' command from 'show_one_*' to
...
'list_one_*'.
MFC after: 1 week
2005-03-13 19:10:13 +00:00
pjd
17fc089e24
When listing all devices (geoms) from the given class, skip geoms without
...
providers.
This prevents from listing geoms like <name>.sync which can be confusing.
It still allows to show details about it by giving its name when listing.
MFC after: 1 week
2005-03-13 16:45:41 +00:00
brueffer
18848be824
Typos and grammar fixes, wordsmithing
2005-02-28 01:33:10 +00:00
pjd
668a028670
- Add md_provsize field to metadata, which will help with
...
shared-last-sector problem.
After this change, even if there is more than one provider with the same
last sector, the proper one will be chosen based on its size.
It still doesn't fix the 'c' partition problem (when da0s1 can be confused
with da0s1c) and situation when 'a' partition starts at offset 0
(then da0s1a can be confused with da0s1 and da0s1c). One can use '-h'
option there, when creating device or avoid sharing last sector.
Actually, when providers share the same last sector and their size is equal,
they provide exactly the same data, so the name (da0s1, da0s1a, da0s1c)
isn't important at all.
- Provide backward compatibility.
- Update copyright's year.
MFC after: 1 week
2005-02-27 23:07:47 +00:00
pjd
45fc09dc07
- Add GEOM_LIBRARY_PATH environment variable which allows to specify an
...
alternative to /lib/geom/ path where shared libraries are stored.
- Improve debugging.
MFC after: 3 days
2005-02-27 21:14:58 +00:00
pjd
1d91900267
Add SHSEC class to the list of geom(8)-aware classes.
...
MFC after: 3 days
2005-02-27 17:56:59 +00:00
pjd
3f4b3cea66
Add a missing comma.
2005-02-25 17:22:23 +00:00
trhodes
506f73b1a9
Fix a couple of grammar nits.
...
PR: 77437
Submitted by: Paul A. Hoadley <paulh@logicsquad.net> (original version)
2005-02-24 01:00:09 +00:00
pjd
4debf0685e
Fix year in copyrights.
2005-02-16 22:19:13 +00:00
ru
13fe9ea5a2
Sort sections.
2005-01-18 10:09:38 +00:00