wiz
feb417a0db
Bump date for last.
2003-09-01 04:43:32 +00:00
mycroft
46743e2182
Add prevent/allow commands.
2003-09-01 04:34:16 +00:00
mycroft
4950c2c904
Add a flushcache command -- I need it for my DVD+RW.
2003-09-01 04:24:55 +00:00
dsl
1ce757782d
Define and use PRIdaddr for printing disk block numbers.
...
Should fix bin/22638 for compilation on amd64.
2003-08-29 16:31:30 +00:00
dsl
0f7fa6b1be
Update date for last.
2003-08-21 16:02:32 +00:00
dsl
66117d6353
Remove -c maxblkspercg (leaving -c xxx ignored).
...
-c used to specify the number of cylinders per group
- but newfs has ignored cylinders for a while.
Changing what -c meant is just asking for trouble!
I might add something to let MINCYL be changed.
2003-08-21 15:47:26 +00:00
dsl
870ae687ac
Remove unimplemented -n rotational positions
...
Remove depracated -c cpg (had been fragments per group in newfs.c, but...)
I might add something to let MINCYL (= 4) be configurable.
2003-08-21 15:43:32 +00:00
dsl
cff5fdb06e
Rework of code that sorts out number of cylinder groups and inodes:
...
- allows less than 'one fragment per inode' (useful for mfs /dev)
- limits number of inodes to 2^31 (they are stored in an int32_t)
- errors if the number of cylinder groups is such that the cylinder group
summary won't fit in the first cylinder group.
- ensures that the last cylinder block contains a valid number of fragments
and inodes, and is not larger than any earlier ones.
- cylinder groups are now created with almost the same size as each other.
Change posted to tech-kern, and no one objected.
2003-08-21 14:55:03 +00:00
dsl
beef08b576
Avoid allocating a data buffer the size of the cylinder group summary.
...
Write the summary every time it fills a fragment - except for the first
sector which is written last.
2003-08-15 15:24:21 +00:00
dsl
8f0618344d
Fix layout of printout of alternate superblock list when > 2^32 sectors, use
...
80 columns (sysinst uses full width these days).
Use {;} instead of , in a couple of places.
Abort if user tries to make a UFS1 filesytem with > 2^31 fragments.
Abort if the cylinder group summary won't fit into the first cylinder group.
Use pread/pwrite and remove a few redundant casts.
2003-08-15 15:07:16 +00:00
itojun
d9be8318c9
avoid FD_SET overrun. from openbsd
2003-08-13 08:51:05 +00:00
wiz
c2e074ca4b
Bump date for last.
2003-08-12 12:25:15 +00:00
dsl
04dec52c29
Mention and cross reference newfs_lfs and makefs.
2003-08-12 10:29:07 +00:00
dsl
b4c1c6117c
Stop superblock being written to sector 0 for small filesystems.
...
Honour the '-s size' command option.
Allow an LFS filesystem to be created in a file.
2003-08-12 08:41:36 +00:00
dsl
26461e4412
Put cylinder number 1023 into the mbr for sectors beyond the CHS limit
...
(rather than encoding the highest CHS addressable sector).
2003-08-10 10:20:08 +00:00
wiz
bf2d0ca599
Mention /etc/sysctl.conf. Bump date. Closes PR 22213.
2003-08-07 10:11:02 +00:00
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
agc
bf07c8719a
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:11 +00:00
wiz
7539e84445
Bump date for flushall description.
2003-08-07 09:46:17 +00:00
dsl
9b8239809b
Exit child process if we fail to 'cd /dev' or 'execl sh MAKEDEV'.
...
Don't really want two processes in the rest of init!
2003-08-05 09:31:48 +00:00
dsl
42c39f4f19
Make output fit into 80 columns when a partition doesn't end on a cylinder
...
boundary.
2003-08-04 17:14:50 +00:00
dsl
2ceab48459
Read correct sector when following extended partition chain.
...
Require extended partition chain to be through increasing sector numbers
in order to abort loops.
2003-08-04 16:51:56 +00:00
jdolecek
f462956915
bump date for last
2003-08-02 11:43:21 +00:00
jdolecek
28dd22899a
actually enable MNT_GETARGS support
2003-08-02 11:42:20 +00:00
jdolecek
62e0ed44c8
Allow separate masks for files and directories. Useful e.g. to turn
...
the execute bit off for files, but keep search permission for directories.
Change contributed in PR kern/21538 by Pavel Arnost, based on some FreeBSD
patches.
Further manpage changes, and backward-compatibility adjustments done by me.
Also fixes PR kern/16778 by Johan Danielsson, and PR kern/3400 by Rick Byers
2003-08-02 11:41:19 +00:00
jdolecek
913ed381f5
g/c all traces of FreeBSD-specific code - it only obfuscated the code without
...
any real benefit
2003-08-02 10:11:47 +00:00
lukem
a93ea220fc
Rework how dependency generation is performed:
...
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.
* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx
* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES
* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}
* Deprecate the (short lived) DEPENDSRCS
Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.
Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem
ebf8a4f11a
move ${DEPENDSRCS} target to after .include <bsd.*.mk>
2003-07-29 01:45:33 +00:00
lukem
eb51573bd7
Use ${DEPENDSRCS} as a target instead of .depend, now that
...
<bsd.dep.mk> builds .depend from .dep files.
2003-07-28 15:25:02 +00:00
salo
b75abedac4
netbsd.org->NetBSD.org
2003-07-26 19:38:45 +00:00
mrg
5a777a5e59
add another (void *) cast to appease gcc3.3
2003-07-26 15:28:24 +00:00
itojun
182a98314c
support new algorithms
2003-07-25 10:06:09 +00:00
itojun
c9ecfbe3a4
fix packet loss rate computation
2003-07-25 06:01:44 +00:00
ws
ebd1f55e89
Only compare the interesting part of the bootblock with its backup.
2003-07-24 19:25:46 +00:00
itojun
e45b6fad8e
include des.h, not kerberosIV/des.h
2003-07-23 21:10:36 +00:00
itojun
aada1051de
support hmac-sha2
2003-07-22 03:38:14 +00:00
itojun
453e29a18a
cleanup
2003-07-22 03:37:59 +00:00
jrf
ce22377a7e
This is an updated submitted patch originally written by Jim Rees
...
and sent in by Greg Hudson as seen in PR misc/3227. Basically what it
does is adds a flushall option which deletes all but localhost routes.
This is done by andoring in a flag called doall (1 means do all routes
including gateway, 0 means do a regular flush). I have seen some
platforms that do this. I tested it out on ipv4 only, it works as
advertised. Commit was approved by christos@.
2003-07-19 01:36:47 +00:00
dsl
ae60f83e33
Remove old i386 mbr stuff (move to arch/i386/stand/mbr a while ago)
...
mbr.8 moved to src/share/man/man8/man8.i386
2003-07-16 11:11:49 +00:00
dsl
02af72a142
Fix code that detects bios geometry from mbr table.
2003-07-14 09:32:12 +00:00
lukem
a21d1e7a14
xref dkctl(8)
2003-07-13 09:55:34 +00:00
lukem
6a52ab7b0e
also reference disklabel(5)
2003-07-13 09:53:10 +00:00
itojun
6950184129
use bounded string op
2003-07-13 08:23:39 +00:00
itojun
49fbaf537e
use bounded string op (one strcpy remains)
...
VS: ----------------------------------------------------------------------
2003-07-13 08:22:55 +00:00
itojun
0e4dc5229d
use bounded string op
2003-07-13 08:16:15 +00:00
itojun
8883e1fb40
use bounded string op
2003-07-13 08:05:58 +00:00
itojun
b5bc655b98
strlcat
2003-07-13 07:59:24 +00:00
itojun
a9282a99c0
die if asprintf fails to malloc
2003-07-13 07:58:19 +00:00
itojun
09c1e9bc45
use bounded copy (a few unbounded copy remains - need work)
2003-07-13 07:48:01 +00:00
itojun
354140d884
remove obsolete comment
2003-07-13 07:45:27 +00:00
itojun
8ff221767c
asprintf is easier. plug memory leak
2003-07-13 07:44:33 +00:00
itojun
d90a2369ab
use bounded string ops
2003-07-13 07:39:39 +00:00
itojun
658b0219c1
snprintf
2003-07-13 07:38:12 +00:00
itojun
0b04aee3ea
use bouded string ops
2003-07-13 07:37:02 +00:00
atatat
fc035bc8fd
Allow _ in tags
2003-07-12 23:02:59 +00:00
itojun
59b2dcde2e
asprintf() is easier than malloc + sprintf
2003-07-12 16:52:22 +00:00
yamt
884f970fae
in ckinode(), use idesc->id_number instead of dino.di_u.inumber
...
since the latter is invalid for pass2 and vget can return invalid vnode
for inode number 0.
2003-07-12 16:13:38 +00:00
itojun
d99433c2b5
use bounded string ops
2003-07-12 14:48:10 +00:00
itojun
09401b303a
use asprintf, which is easier
2003-07-12 14:46:41 +00:00
itojun
efb986d740
sprintf can return negative
2003-07-12 14:36:07 +00:00
itojun
ca9297afc4
use strlcat/strlcpy
2003-07-12 14:33:55 +00:00
yamt
a7f5ddbf64
in lfs_raw_vget(),
...
- don't leave references into free'ed memory region. (fix SIGBUSes)
- plug a memory leak.
2003-07-12 12:28:23 +00:00
yamt
e01ace1f2e
- don't assume that malloc'ed memory is zero-filled.
...
- LIST_INIT {dirty,clean} block lists.
2003-07-12 11:57:59 +00:00
yamt
1d5f020689
fix a null dereference on stale inode.
2003-07-12 11:49:04 +00:00
yamt
c992c60208
only read superblock (ie. struct dlfs) from disk and
...
initialize rest of struct lfs by hand.
(this shouldn't cause a real problem since if superblock is valid,
LFS_SBPAD-sizeof(struct dlfs) bytes after it is always zero-filled, though)
PR/22123 (Izumi Tsutsui)
2003-07-12 11:47:05 +00:00
yamt
96782bb1fd
don't use uninitialized variables.
...
PR/22123 (Izumi Tsutsui)
2003-07-12 11:41:15 +00:00
dsl
7db2cff2fd
Allow for the netbsd partition being in the extended partition list.
2003-07-07 13:05:46 +00:00
dsl
93e88fd2eb
Only look at each pair of CHS values once when trying to guess geometry.
2003-07-07 11:45:00 +00:00
wiz
f4e5486eb2
Bump date for last, and replace some \*[Lt]/\*[Gt] with .Aq.
2003-07-04 13:32:13 +00:00
wiz
6e047dae78
Bump date for last.
2003-07-04 13:09:58 +00:00
ragge
9e60a88e86
Add somaxkva.
2003-07-03 20:15:28 +00:00
itojun
e97be76fa1
strcat -> strlcat
2003-07-03 03:04:04 +00:00
christos
9dd592469e
Avoid code duplication by factoring out the open/map open/write/unmap functions.
2003-07-01 16:44:48 +00:00
lukem
b96069c077
Always compile in support for attempting to obtain the major device
...
number of the console from sysctl("machdep.console_device"), rather
than making in optional on the (unused) #ifdef DEBUG.
Certain platforms do not have the console at makedev(0,0) (including
many arm32 and some sh3 platforms), so the "mfs MAKEDEV" hack would
have failed on those.
Noted in private discussion with Quentin Barnes.
2003-07-01 15:24:22 +00:00
itojun
5af08a4965
more error traps on malloc failure. accept "-E null".
...
various pedantic checks. from kame
2003-07-01 07:20:12 +00:00
simonb
775170c02f
Line up the cylinder numbers in the printlabel output a bit better.
2003-07-01 05:40:54 +00:00
wiz
52270a7fd9
Add Ns.
2003-06-30 11:49:54 +00:00
wiz
9f3dc3febc
Remove unnecessary space before dot.
2003-06-30 11:48:05 +00:00
wiz
d6967e3b9b
Quote punctuation so it gets marked up.
2003-06-30 10:46:22 +00:00
wiz
217ca657dd
Quote macro candidate.
2003-06-27 23:23:51 +00:00
wiz
6dd6d12d66
Add Ns.
2003-06-27 23:06:50 +00:00
wiz
8a0999a756
Remove superfluous "".
2003-06-27 23:02:16 +00:00
agc
c2a3b5ec84
Add NetBSD RCS Ids.
2003-06-23 11:53:35 +00:00
simonb
7eb2ec40b2
Remove the KERN_DRIVERS case handler (prototype code?).
2003-06-17 03:34:23 +00:00
dsl
f8f6959024
Print hw.cnmagic as escaped hex bytes (unless -n given).
...
Change 'special' to be a numeral not a bit, it isn't ever used as a bit
and I can't see why it should ever be used that way.
2003-06-16 21:52:58 +00:00
christos
dffc5f5133
PR/21860: Robert Elz: ifconfig doesn't allow addr/N notation for INET6
2003-06-11 19:51:31 +00:00
christos
072bca2c13
PR/21856: Robert Elz: Changes to route(8) to allow /n instead of -prefixlen
...
for INET6
2003-06-11 15:45:20 +00:00
dsl
ee0a07c072
Make writes to the in-core label persist after mbrlabel closes the disk.
2003-06-07 10:03:39 +00:00
cjep
100bffb736
Fix typo. Noted by Sean Boudreau on tech-net.
2003-06-06 14:18:40 +00:00
joda
e5986b088f
add missing . before Fl
2003-06-03 12:35:54 +00:00
itojun
627957eb53
permit foo/bar notation, like "route add 10.0.0.0/8 127.0.0.1".
...
originally by provos
2003-06-03 04:41:42 +00:00
thorpej
56962fed64
Avoid a strict-alias warning in gcc 3.3.
2003-05-31 23:42:23 +00:00
itojun
1fc7a4943e
correct bad RFC ref. KAME problem report 480
2003-05-27 02:37:24 +00:00
lukem
9014bdbce6
* Document $RCMD_CMD in environ(7).
...
* Cross-reference rcmd(1), rcmd(3), and environ(7) as appropriate.
Should fix [bin/21670] from Geoff Wing.
2003-05-26 10:18:39 +00:00
lukem
35c2bddeea
If RESCUEDIR is defined, use that as an alternate path to sh and mount_mfs,
...
and prepend RESCUEDIR to the default PATH.
(This replaces my _PATH_ALTSHELL mods from rev 1.52 of init.c)
2003-05-26 09:34:55 +00:00
itojun
eb44a81d7f
permit scoped addr notation in policy string (-P esp/tunnel/foo%scope-bar%scope/use). from francis dupont. sync w/kame
2003-05-22 04:01:49 +00:00
wiz
15e9ee5dc8
Add some missing words (like articles), remove duplicate word; fix some nits. From jmc@openbsd.
2003-05-20 10:18:50 +00:00
itojun
f5878476d9
simplify by strlcpy
2003-05-18 02:11:13 +00:00
itojun
8138cbd1bf
simplify more
2003-05-18 02:07:20 +00:00
itojun
ebf587df1a
simplify by strlcpy/cat
2003-05-18 02:06:28 +00:00