jake
028347699c
Build sunlabel on sparc64.
2003-01-31 07:40:25 +00:00
jake
7e4761fc23
Add sunlabel, a more or less drop in replacement for bsd^H^H^Hdisklabel(8)
...
which works on sun labels. Due to the lack of an interface other than
write(2) to update labels, it cannot modify an open partition.
2003-01-31 07:03:25 +00:00
nyan
aca5ef0c28
Additional PC98 option is not needed.
2003-01-30 15:09:21 +00:00
jmallett
dfe5702c03
Back out conversion to libufs, for now. It seems to cause problems.
...
Reported by: phk
2003-01-29 22:52:27 +00:00
mdodd
718bb6c717
Call fill() after maxpayload has been initialized.
...
Reviewed by: maxim
2003-01-29 20:42:42 +00:00
mdodd
b159341ed9
Send ICMP_MASKREQ packets when the '-M' option is specified.
2003-01-28 22:53:24 +00:00
jmallett
502261f07f
Fix problems with how libufs was used, with regard to mounted/active fs's,
...
in the new world order of libufs, where we also do statfs, and add a missing
close.
2003-01-28 02:42:01 +00:00
dillon
7995bad207
Update mount_nfs documentation to reference new sysctl for -c default.
2003-01-27 20:12:32 +00:00
phk
e5f71e4b1b
Don't use the kern.disks sysctl to find a list of md devices, use the
...
MDIOCLIST ioctl instead.
Spotted by: keramida
2003-01-27 08:01:08 +00:00
jmallett
273be50650
Convert newfs to use libufs. I've tested this on md filesystems, as has
...
keramida, and all seems well.
2003-01-27 07:24:32 +00:00
phk
a27e16309d
If we fail to open O_RDWR, try opening O_RDONLY, if we use ioctls
...
to fiddle the disk we can get away with it.
Try to use DIOCBSDBB to write boot code.
2003-01-26 21:55:43 +00:00
phk
8825e48f4a
IA64 still needs to be able to run on MBR+BSD combination, so put disklabel
...
back.
Pointed out by: peter
2003-01-26 18:33:54 +00:00
phk
4865a58cd6
Drop the silly notion that i386 has two bootstrap files now that sys/boot
...
creates a single file named just "boot".
Apart from the fact that the option "-s" is now gone and that "-b" should
be pointed at /boot/boot instead of /boot/boot1, this patch should be
a no-op.
2003-01-26 14:35:53 +00:00
phk
f67e3529e3
Remove #if checks for NUMBOOT==0, it's not relevant for any architecture
...
and if we get such an architecture, we can just avoid using the relevant
options.
2003-01-26 13:50:11 +00:00
phk
807fc7de0e
Offer better advice in #error.
...
Remove yet a usage message about -N/-W
2003-01-26 12:39:46 +00:00
ru
7c6bc18961
Spell libufs correctly in DPADD.
...
Reviewed by: juli
2003-01-26 12:34:36 +00:00
phk
ad2fa30e32
Remove ia64 and powerpc #ifdefs: this is i386/pc98/alpha only code.
2003-01-26 12:22:26 +00:00
phk
82826b71d1
Make disklabel(8) MD for i386/pc98 and alpha only.
2003-01-26 12:19:36 +00:00
phk
f3345c20fa
Remove #ifdef __sparc64__ code. GEOM uses native SUN labels on this arch,
...
so no hacks are needed.
2003-01-26 11:43:50 +00:00
phk
977978310d
Fix typo in last commit.
...
Rearrange bits in writelabel() a bit for improved readability.
2003-01-26 11:41:37 +00:00
phk
722d5435d7
Remember to remove -N and -W from usage.
2003-01-26 11:28:34 +00:00
phk
5ee78ecce5
Don't fiddle write-protect status of disklabel, it's a discontinued feature.
2003-01-26 11:16:25 +00:00
phk
dc7edb5afb
Retire the "-N" and "-W" options which implemented write-protection
...
for the disklabel: This facility is OBE.
First of all, we cannot sensibly implement this in a properly stacked
environment.
Second, if we did, it would confuse the heck out of users who
wouldn't be able to "start from scratch" by dd(8)'ing /dev/zero
onto /dev/da0.
Third, the offered protection is not comprehensive: no other software
would respect it.
Fourth and finally, the disklabel is already protected against
tampering if it controls open partitions.
Uselessness of these options discussed with: peter
2003-01-26 11:11:19 +00:00
silby
2a088a1417
Change the -x option so that it does an actual REAL test of
...
the correctness of this program. Previously, it printed out
the MD5 values of some test strings, but did not tell you
if they were correct or not!
2003-01-26 08:23:37 +00:00
keramida
89f001d710
Convert references to other manpages to .Xr and add
...
entries to the SEE ALSO section.
2003-01-26 02:52:07 +00:00
dillon
401c720261
Readjust the cache initialization code to make it more obvious that the
...
cache is bypassed when disabled.
2003-01-25 19:06:30 +00:00
kbyanc
c9f898d44f
Since route(8) itself is no longer setuid, we can get a meaningful
...
answer for the euid. As a result, fix it such that setuid scripts or
programs may call route(8) to do work on their behalf.
Reviewed by: ru
MFC after: 3 days
2003-01-25 01:28:11 +00:00
njl
7d4d4fab25
Parse both old flags location and new one. Print out new flags including
...
acls, multilabel, and location updated.
2003-01-24 00:07:40 +00:00
mdodd
111dab8175
Add missing #if USE_IF_MEDIA/#endif.
2003-01-23 18:31:56 +00:00
maxim
14d7bf5dd2
Better error handling for -s.
...
Submitted by: bde
Do not constantify maximum payload size. It is 65467 with -R
(record route), and 65507 without it.
Reviewed by: silence on -net
Proposed by: bde
I am going to MFC rev.1.77 - 1.81 ping.c and rev.1.39 and 1.40 ping.8:
MFC after: 6 months
2003-01-23 13:04:42 +00:00
maxim
08b55cf1d9
style(9) sweep.
...
Submitted by: bde
2003-01-23 12:56:10 +00:00
maxim
118f887acc
Anti-magic: s/255/MAXTTL/
2003-01-23 12:54:11 +00:00
maxim
805247f240
Implement -D (do not fragment) and -z (TOS) options.
...
PR: bin/29164
Reviewed by: silence of -net
Obtained from: OpenBSD
2003-01-23 12:48:12 +00:00
maxim
e83d9a9d7b
Print strict source routing option.
...
Reviewed by: silence on -net
Proposed by: David Wang <dsw@juniper.net>
2003-01-23 12:42:56 +00:00
ru
b0520b835c
Fixed Charles' e-mail here too.
2003-01-23 08:35:21 +00:00
ru
1488b3638f
Added UFS library to the bsd.libnames.mk namespace.
2003-01-23 08:15:05 +00:00
peter
568a1c8f96
Fix what I think is an off-by-one in certain worst-case scenarios
...
caused by rev 1.45. (eg: the estimate being exactly half of the result.)
2003-01-22 00:34:22 +00:00
fjoe
aecb199acf
fix link_status() in non-Ethernet case
...
MFC after: 1 week
2003-01-22 00:14:34 +00:00
jmallett
017693e11f
Convert badsect to use libufs.
2003-01-20 21:24:34 +00:00
jmallett
d18b7f355c
Add libufs to dependencies.
2003-01-20 21:18:44 +00:00
jmallett
8e245d6a16
Make tunefs use libufs, it seems to do well enough for printing / setting
...
things.
2003-01-20 21:15:02 +00:00
jmallett
3152c15fb9
Kill initialisation and shadow warnings. Half-hearted cleanup (e.g. only the
...
more important ones) of format warnings. XXX Lots of this assumes int32 can
be printed with %d. Yuck.
Reviewed by: bde
2003-01-19 12:13:47 +00:00
jmallett
49b60b2ebe
Add support to marshal a filesystem to a newfs(8) command that could be used
...
to create it. A small number of options are not marshalled as they are things
it would be dumb to spit out, as they are used by internal computations, and
newfs may change them, or they may not be directly apparent.
2003-01-19 10:25:11 +00:00
jmallett
e03de97093
Let libufs handle all the work with regard to going through a list of cgs, now.
2003-01-19 05:51:36 +00:00
jmallett
7a4607b5ca
Use libufs to read one cylinder group from the disk at a time.
2003-01-19 01:31:49 +00:00
jmallett
4f8d2d71f0
Simplify the main function now that libufs will hunt for the disk for us.
2003-01-19 01:02:25 +00:00
phk
910debfbc0
Fix two errorchecks to check for negative error returns.
2003-01-18 10:29:24 +00:00
jmallett
03b3bddb34
Consistentify output whitespace.
2003-01-18 06:29:15 +00:00
jmallett
406bb0cfa5
Simplify conditional.
2003-01-18 04:20:20 +00:00
phk
62c9659f0c
Find places to store the previously implicityly passed unit number in
...
the three configuration ioctls which need a unit number.
Add a "ccd.ctl" device for config operations.
Implement ioctls on ccd.ctl which rely on the explicityly passed
unit numbers.
Update ccdconfig to use the new ccd.ctl interface.
Add code to the kernel to detect old ccdconfig binaries, and whine
about it.
Add code to ccdconfig to detect old kernels, and whine about it.
These two compatibility measures will be retained only for a limited
period since they are in the way of GEOM'ification of ccd.
2003-01-17 14:53:53 +00:00