Commit Graph

3108 Commits

Author SHA1 Message Date
dsl
1608697b9e Fix printf formats and kill unused variable to make it compile 2003-04-16 08:39:56 +00:00
darrenr
8745a98a43 Don't forget to increment the iterator when going around a loop 2003-04-15 19:07:37 +00:00
darrenr
543eb62ec5 Add a note to "retry" option about device requirements. 2003-04-15 18:39:58 +00:00
darrenr
8dac8843a5 Implement (and document!) "dkctl <dev> badsector .." to `manage' the bad
sector information in the kernel.  Doing this uncovered some shortcomings
that should have been pretty obvious with the code committed prior, addressing
the major kludge with a new struct - disk_bacsecinfo to be passed into
DIOCBSLIST.
2003-04-15 18:27:26 +00:00
itojun
3fbac68bea use snprintf. there are more... 2003-04-15 08:20:17 +00:00
itojun
64e132e781 array seems too small 2003-04-15 07:37:34 +00:00
itojun
84490858f9 correct questionable use of strncpy(). 2003-04-15 07:36:14 +00:00
itojun
781846fcdb use NI_MAX*. 10 is not enough for port number. sync w/kame 2003-04-15 07:32:06 +00:00
elric
3c7e4881c4 Fix typo. params files are not stored in /dev/cgd/ 2003-04-15 06:43:36 +00:00
fvdl
7b402ff9df If an alternate superblock is used, update the standard one correctly. 2003-04-14 18:50:52 +00:00
itojun
506c5eeb9e permit -s 0. from Maxim Konovalov 2003-04-14 10:18:37 +00:00
yamt
f5f20840e2 save and restore errno in signal handlers. 2003-04-13 10:22:40 +00:00
christos
a16e9fc559 add checkinterface 2003-04-12 04:32:54 +00:00
perry
765e98ca6e Document the -v and -z flags. 2003-04-12 01:08:28 +00:00
perry
d229e19ca4 Add an option (-z) like -v except that it clears the input/output
stats after printing them.
(Basically this just calls SIOCZIFDATA instead of SIOCGIFDATA).
Submitted by Jean-Edouard BABIN in PR bin/21078
However, he suggested using -c, and cgd (reasonably) noted that -z for
"zero" was probably more reasonable.
I've also changed the code very slightly.
2003-04-12 01:07:43 +00:00
christos
c54d6ca813 PR/1472: David Carrel: Add option to specify the nfs port.
This was not done, I added the functionality to be able to parse
port=num in the options. While I was there, I added this for all
the other numeric options: rsize, wsize etc.
2003-04-11 17:39:09 +00:00
enami
e89481b248 Correctly detect a UFS1 file system of non-native endian. 2003-04-11 10:21:40 +00:00
jdolecek
40d3f26f8c desupport LMRESERV_O, anything relying on it doesn't have chance of working
anyway due to numerous kernel structure changes
2003-04-11 07:49:31 +00:00
elric
8105111443 If reading an old style parameters file then default a missing
keygen_iteration to 128.  This will not default the iteration count
on a new style parameter file as it is an error in the new style
to fail to specify the iteration count.

Addresses PR: bin/21056
2003-04-10 05:45:29 +00:00
lukem
04a792a536 fix typo introduced in previous (print "addr=" instead of "ddr=") 2003-04-10 04:40:38 +00:00
fvdl
774a28f33f Correctly deal with directories that need indirect blocks by adding
some code I missed in the UFS2 commit. Should fix false positives
seen by fsck_ffs on clean filesystems.

Thanks to Takahiro Kambe for debugging help.
2003-04-09 12:49:28 +00:00
fvdl
e06c710852 Swap the right blocks in an inode in the byteswapping case. 2003-04-08 14:59:52 +00:00
fvdl
bbc00e975a Fix reverse test for UFS2 in the blks command. 2003-04-08 14:46:21 +00:00
fvdl
2812e7d837 Since the size passed in may be different from the fs blocksize, just
allocate a buffer each time instead of using a static one.
2003-04-08 10:02:23 +00:00
fvdl
0835d456dd dblk should be static. Fixes PR 21020, by Geoff Wing. Patch supplied
by him.
2003-04-08 09:16:19 +00:00
fvdl
253e7c6b6a Don't print the version of the argument structure, it's easily confused
with the NFS version.
2003-04-07 13:31:17 +00:00
wiz
d0ca8fad45 Some casing changes, and use Er for EINTR. 2003-04-06 19:42:59 +00:00
fvdl
750ed85d47 Write update some old fields when writing the superblock, similar to
ffs_oldfscompat_write() in the kernel. Use the old totals when
time < old_time (i.e. an old kernel or fsck wrote the filesystem last).
When setting the date back on a new kernel, that works out ok, since
new kernels always update both fields.
2003-04-06 17:23:25 +00:00
lukem
ea56af7b9d Tweak behaviour introduced in rev 1.50;
*	by default, warning messages go to stderr
    *	if -A or -a is used, send warning messages to stdout instead.

The behaviour in 1.50 meant that
	somevar=`sysctl -n machdep.booted_kernel 2>/dev/null`
could end up with $somevar="machdep.booted_kernel: the value is not available"
rather than the more useful $somevar="".

(This way, "sysctl -A | grep ..." is still useful.)
2003-04-06 05:19:03 +00:00
fvdl
8e4c90f49a Skip checks for old 4.2BSD filesystem; as it stands, we can't deal with
writing them. Could be fixed, but doesn't have a high priority.
2003-04-05 13:45:21 +00:00
wiz
9cdee53232 Some minor fixes from Soren Jacobsen in PR 21017. 2003-04-05 09:22:22 +00:00
wiz
52c7291619 Bump date. 2003-04-04 19:02:44 +00:00
perry
aa62e15ec9 1) Remove a reference to a 30 second delay left when Ignatios
backed out a 30 second delay from the program.
2) Add a CAVEATS section noting that the command cannot and should not
   be stopped once started.
2003-04-04 18:13:47 +00:00
perry
cf423b3982 1) To eliminate a race condition in which the user could conceivably
try to quit or stop the program right at the moment after the it
   sends a TSTP to init, move the kill(1, TSTP) to right after we
   block most signals, instead of doing it just before.
2) To add TSTP to the signals we ignore. Once we start halting, it
   really is not safe to try to stop at all. You can't change your
   mind halfway through -- init will already be stopped and a TERM
   will have been sent to everything on the system within
   milliseconds of starting.
3) Adjust one comment for TNF
2003-04-04 17:43:08 +00:00
fvdl
5f7172ed40 When fixing the cstotal structure, use the right size to copy it back.
Also, remove some accidentally committed debug code from the previous
commit.
2003-04-04 15:02:40 +00:00
fvdl
373feac024 Initialize cg_irotor correctly in newcg, to avoid false positives
for bad cylinder groups.
2003-04-04 13:45:21 +00:00
jdolecek
7e4ff06b35 install the example dot.nsmbrc
suggested by Masao Uebayashi and others, also in FreeBSD docs/35649
2003-04-04 07:50:43 +00:00
christos
628c00a0ec make this compile again. 2003-04-03 14:55:16 +00:00
wiz
4abefdc12f Sort options; mention -O default; grammar improvements; use more macros. 2003-04-03 14:50:35 +00:00
fvdl
645eff4a6f The -r option is no more, so delete it from the synopsis line too. 2003-04-03 14:26:11 +00:00
tron
ef15ca7b9d Document extended "-O" option after UFS2 import. 2003-04-03 14:17:26 +00:00
jrf
dee179a37f Made a note in the code about the -d and -d options brought up in
PR 18674. Thanks to Chris Jones for pointing it out.
2003-04-03 02:39:50 +00:00
he
e75cb67772 On LP64 hosts, iswap64() result is "long int", so cast result to (long long)
before printing with %lld.
2003-04-02 22:27:09 +00:00
he
bfd92e95d2 The new UFS2 code uses memset(), so include <string.h> for prototype. 2003-04-02 22:25:56 +00:00
dbj
2e948b5e58 On Apple UFS filesystems, change the default fragment size to 1024
and the default block size to 4096.  Issue a warning if values
are used that will not work on Darwin.
2003-04-02 20:48:13 +00:00
fvdl
42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
fvdl
96757427c6 Fix range check for the default boot option case. 2003-04-01 19:39:13 +00:00
perseant
acddf8ff0b Check inode free list tail pointer as well as head pointer, and write both
into the CLEANERINFO block of the Ifile as well as into the superblock.
Make preen update both superblocks.
2003-03-31 19:56:59 +00:00
wiz
0acfa3bb9e Consistently spell occurrence with two rs. 2003-03-29 22:48:37 +00:00
perseant
f8b4df4569 Fix some accounting problems when preening, since preening skips phases
1-4 entirely.  Make preen run phase 0, since the Ifile is so important
and the test so quick.
2003-03-29 00:09:43 +00:00