wiz
69be113f78
New sentence, new line. Bump date.
2016-01-30 10:13:02 +00:00
mlelstv
223c7df5b3
Add support to msdosfs and makefs to generate correct Unicode (UCS-2) directory
...
entries from UTF8 encoded file names.
2016-01-30 09:59:27 +00:00
christos
ffeb8dbf4e
Define _KERNTYPES for things that need it.
2016-01-23 21:22:45 +00:00
christos
9c39ccca16
no need for <sys/mbuf.h>
2016-01-23 21:05:51 +00:00
christos
b8e29fa636
don't need mbuf.h!
2016-01-23 15:41:47 +00:00
christos
4f3d9e304d
PR/50671: David Binderman: fix memory leak.
2016-01-17 15:59:26 +00:00
joerg
459b255b5e
gpt_vwarnx is printf-like.
2016-01-08 18:59:01 +00:00
roy
74efc0b2e3
-W seconds will wait for the detached flag to clear on addresses on
...
interfaces marked up to allow time for the carrier to appear on the
interface.
This does not extend the -w option duration.
2016-01-07 11:32:21 +00:00
wiz
95e91b49e1
Sort command list in usage.
2016-01-06 23:03:13 +00:00
wiz
70ae258f94
Sort commands so I can find stuff.
2016-01-06 23:01:11 +00:00
wiz
704ad63c75
Use standard sort order for options.
...
Add -U to usage.
2016-01-06 22:57:44 +00:00
christos
c4e0e8f498
Access to the SET_LAST_UNIT ioctl.
2016-01-06 17:41:36 +00:00
christos
f9db75489b
- add more informational messages
...
- handle case where last argument is an option not a device (set -l)
2015-12-29 16:45:04 +00:00
jnemeth
775c41e25a
pretty up attribute display a bit
2015-12-26 13:12:16 +00:00
martin
1c2d0f1f02
Improve "show -a" display: split human readable Type: field from the Type-GUID
...
to avoid wrapping in the common case; add a human readable Size: display.
2015-12-26 13:08:45 +00:00
wiz
6471a2935e
Simplify usage for gpt show.
2015-12-25 12:16:03 +00:00
martin
53078a2022
Add a -a flag to the show command, so we can display the full GPT with
...
all information in one go.
2015-12-25 10:59:56 +00:00
martin
ac62bbaf8f
Fix output in an error case
2015-12-24 17:35:57 +00:00
christos
94ae268a8f
mention ip6addrctl
2015-12-13 14:24:47 +00:00
pgoyette
1aa8a7614b
synch usage() with the man page.
2015-12-07 03:34:00 +00:00
wiz
34c418c523
Bump date for previous.
...
Remove trailing whitespace.
2015-12-06 09:36:57 +00:00
christos
56604dcf08
remove more duplicated code.
2015-12-06 04:27:05 +00:00
christos
4d523900d0
Add listing commands for type, set and unset.
...
Add help and formatting for set and unset.
Change show to print all the attribute info in one line.
2015-12-06 00:39:26 +00:00
christos
4eb04fb6c1
Add debugging and more to migration
2015-12-05 18:46:08 +00:00
christos
af38b629ef
type confusion
2015-12-04 21:39:18 +00:00
christos
ffec5f5c18
Kill newline
2015-12-04 16:54:28 +00:00
christos
5b47b594ae
Fix resizedisk.
2015-12-04 16:46:24 +00:00
christos
a69d504e75
put back usage from kre
2015-12-04 01:47:48 +00:00
christos
667106442f
don't print dkctl message for files
...
fix typo
2015-12-04 01:46:32 +00:00
christos
c8b27b5883
fix label printing.
2015-12-04 01:46:12 +00:00
christos
e3058c5edd
CID 1341564: Arg memory leak
2015-12-03 21:51:02 +00:00
christos
8bffbb3c7c
more leak
2015-12-03 21:49:51 +00:00
christos
b58e9ed6af
CID 1341563: fix leak
2015-12-03 21:48:12 +00:00
christos
e37a2a9523
CID 1341561: Argument memory leak
2015-12-03 21:46:22 +00:00
christos
560e3b65f3
CID 1341560: Free arg.
2015-12-03 21:43:25 +00:00
christos
849ad1de81
CID 1341558: Fix proplib memory leaks
2015-12-03 21:40:32 +00:00
christos
0f11011500
CID 1341556: Don't leak map info
2015-12-03 21:30:54 +00:00
christos
d293a8ecdb
CID 1341548: Check error returns
2015-12-03 20:58:08 +00:00
christos
7c444fb990
compare to stdout, thanks kre
2015-12-03 04:39:41 +00:00
christos
c7ec83db51
Add a space.
2015-12-03 02:16:00 +00:00
christos
ba571ee20f
Fix stray paste, noted by kre.
2015-12-03 02:09:20 +00:00
christos
5c1ccc6e9b
WARNS=6
2015-12-03 02:02:43 +00:00
christos
621ecf3c5e
remove extra assignment
2015-12-03 01:16:21 +00:00
christos
da0a3b4c0b
eliminate static globals so that commands can be re-used.
2015-12-03 01:07:28 +00:00
christos
54261dc52d
- factor out into smaller separate functions
...
- fix signed/unsigned confusion
- do proper write checks
- fix some memory leaks
2015-12-02 22:32:04 +00:00
christos
73ff464c21
don't hard-code the program name
2015-12-02 20:42:07 +00:00
christos
b62e64290c
merge duplicated code and check allocations.
2015-12-02 20:41:10 +00:00
christos
2e738cf025
check allocations
2015-12-02 20:09:54 +00:00
christos
53de6040eb
annotate map additions with non-allocated memory.
2015-12-02 20:09:33 +00:00
christos
c458b37c6c
- check errors from map allocation
...
- make map_resize return -1 instead of 0, and handle errors locally
explaining what's going wrong
2015-12-02 20:01:44 +00:00
christos
2eda9128ae
Allow backup and restore to operate on files.
2015-12-02 12:36:53 +00:00
christos
466f99a5ab
don't advertise stuff we don't support.
2015-12-02 12:24:02 +00:00
christos
ce4e8c4470
Always set NOSYNC if regular file, even if we got the size from the command
...
line.
2015-12-02 12:20:52 +00:00
jnemeth
de2c104cf3
hrmm...
...
i386devel: {245} ./gpt add -b 1000 -s 1000 disk
Segmentation fault (core dumped)
Where's my flyswatter? .......zzzzzzzap
2015-12-02 11:20:34 +00:00
jnemeth
777094fd12
- dereferencing NULL is generally bad, found by visual inspection
...
- automatically set nosync when opening a file to avoid spurious errors
2015-12-02 10:19:58 +00:00
christos
272fa82935
print the old and the new style usage.
2015-12-02 04:17:25 +00:00
christos
cdf86847f5
refactor the utf code so that it does not leak memory.
2015-12-02 04:07:11 +00:00
christos
d1f209293e
split out into smaller functions.
2015-12-02 04:06:47 +00:00
christos
c94670c3be
use the utility function.
2015-12-02 04:06:10 +00:00
christos
b732231137
- write a function to set the entity, so that we don't reset to guid.
...
- entry 0 means create entry.
2015-12-02 01:01:55 +00:00
pgoyette
a1258c3a17
By default, don't display the module load address. Add a -k option
...
to restore display of this field.
2015-12-02 00:56:09 +00:00
christos
0f004afe33
merge command line parsers and check all memory allocations.
2015-12-01 23:29:07 +00:00
christos
1c8d6ff1b4
Reflect reality better; we don't handle multiple devices anymore, and
...
the partitions option is only for the commands that support it.
2015-12-01 22:49:25 +00:00
christos
bbb4a8ab26
refactor more duplicated code.
2015-12-01 19:25:24 +00:00
christos
6fb89396f8
automatically enforce readonly for the commands that don't need to write.
2015-12-01 16:33:55 +00:00
christos
8ca93e4658
Refactor the command dispatching and help printing logic.
2015-12-01 16:32:19 +00:00
christos
0b43d398b9
Firs step of refactoring, remove all globals, factor out some common code,
...
handle alternate usage but not advertise it.
2015-12-01 09:05:33 +00:00
christos
68bc3825b8
- use gpt_msg to print informational messages (perhaps these should be printed
...
only with -v)
- don't print any messages with gpt_msg if quiet
- print a message if we didn't reconfigure the wedges
2015-12-01 02:03:55 +00:00
christos
835e6be8c3
only update the wedge information if it is supported.
2015-12-01 01:49:23 +00:00
christos
e4ed2565fe
- automatically sync the wedge information unless -n is specified.
...
- document the general options in the traditional way.
- split the main program into a separate file.
2015-11-30 19:59:34 +00:00
wiz
634690fb1c
Fix xref.
2015-11-29 21:36:35 +00:00
christos
7e254cfb82
Remove getdisksize support; we either have the ioctls (current/-7) or we
...
don't (non-netbsd-current/7+tools).
2015-11-29 15:32:46 +00:00
christos
2d178fa50d
Add the missing cases.
2015-11-29 14:12:56 +00:00
christos
4ab2c2d9c7
Add some debugging.
2015-11-29 14:12:35 +00:00
christos
c313281022
Do division once
2015-11-29 14:03:35 +00:00
christos
f8906ab68d
Only use the ioctl's if we have them.
2015-11-29 13:46:23 +00:00
jnemeth
1ca10bc795
fix build breakage for systems that do not have DIOCG{SECTOR,MEDIA}SIZE
2015-11-29 13:24:28 +00:00
christos
2599c179cc
print the current map type.
2015-11-29 00:34:39 +00:00
christos
5435e55eab
- use snprintf
...
- fix bogus logic on map_type
2015-11-29 00:15:12 +00:00
christos
ca4e0dcdd1
merge the create errors in one place and fix them.
2015-11-29 00:14:46 +00:00
pgoyette
e6045f6364
Add cross-refs from modload(8) amd modunload(8) to modctl(2)
2015-11-28 23:53:48 +00:00
christos
35da36c439
CID 1340063: fix TOCTOU
2015-11-24 14:07:18 +00:00
christos
fc8a4870ed
Don't chdir to the config directory; just form the parameters file with a
...
path if needed.
2015-11-22 20:24:19 +00:00
christos
cd40e75014
explain how to clear an entry (without reading the source)
2015-11-22 15:53:10 +00:00
christos
d59d77037c
- update NAME_MAX to match the kernel.
...
- add a comment about where the constant is used.
2015-11-16 17:06:47 +00:00
jnemeth
6141a178e3
correctly print the gpt header revision as a "float"
2015-11-16 12:24:13 +00:00
tnn
c9f8274c3f
fix iSCSI RFC number
2015-11-10 12:41:18 +00:00
christos
51068fec25
print flags symbolically.
2015-11-04 16:04:55 +00:00
ozaki-r
c2e5d2b795
Fix rump.ping6 -c N (N > 1) doesn't work
...
2nd packet and subsequent packets are sent based on SIGALRM and
it depends on poll(2) returns with EINTR by the signal. However,
currently poll is rump-ified while signals aren't so the signal
doesn't wake up poll and ping6 doesn't work expectedly.
Rump-ifying signals is unsure (nobody does it for now) and the
combination use of signals and poll makes the logic a bit complex.
So let's fix the defect by stopping using signals for packet
transmissions. The new logic is derived from ping(8).
Bonus: ping6 -i 0.01 works as we expect now while the original
didn't work enough fast.
2015-11-04 08:07:54 +00:00
ozaki-r
c94323a777
Fix exit status when -c and -X is used
...
It exited with status 0 when at least one packet was received
and timed out. However, when we specify -c N (while N > 0),
we expect that it fails if it times out before all sent requests
are replied.
2015-11-04 07:59:25 +00:00
pgoyette
b6f71a3653
Add FLAGS to the module data displayed. Reduce some of the extra
...
inter-column white-space to (partly) compensate for the additional
column.
2015-11-04 04:30:42 +00:00
knakahara
fad49cfc60
rump.ping6 supports "-S" option.
2015-11-04 01:14:02 +00:00
jnemeth
902aecab13
Add a "header" subcommand that displays information about the size of
...
the disk along with information from the GPT header if it exists.
2015-11-03 02:19:24 +00:00
christos
1428ec3f79
remove advertising clause.
2015-10-16 17:38:17 +00:00
dholland
6ada0ed75b
Teach scan_ffs about lfs64.
...
(and also about byte-swapped lfs volumes, which might or might not
actually work)
2015-10-15 06:25:23 +00:00
dholland
06de5f4e56
Make dump recognize lfs64.
...
For now at least it will refuse to touch it though as it needs to be
taught more abstraction about directory entries; currently it blindly
uses struct direct from ffs and will croak on the lfs64 64-bit inode
numbers.
2015-10-15 06:25:12 +00:00
dholland
ae64c38ebb
Enable lfs64 in fsck_lfs.
...
(and in everything else that uses this code)
2015-10-15 06:24:55 +00:00
dholland
511153d2cc
Enable the creation of lfs64 volumes.
...
To create an lfs64 volume, use -w 64. You can also force a 32-bit
volume with -w 32, but this will fail on devices thta are too large.
lfs64 is the default for devices > 1TB. (1TB rather than 2TB because
daddr_t is signed and negative block numbers can cause interesting
complications.)
For now print a warning that the lfs64 format isn't finalized, because
it isn't. For now any lfs64 use should be limited to test data,
benchmarking, and so forth.
2015-10-15 06:24:33 +00:00
christos
fec59bb419
these are syslog-like
2015-10-14 15:53:24 +00:00
mrg
28d34520d5
don't stop processing /etc/fstab when one entry fails, both for
...
add and remove loops. now when you add a new swap file and run
"swapctl -A" it won't give up after the existing one gives EBUSY
and move on to the rest.
2015-10-11 23:58:16 +00:00