Commit Graph

4609 Commits

Author SHA1 Message Date
dsl 19a3aab826 Update info about running MAKEDEV to note that MAKEDEV itself now creates
the mfs filesystem.
2007-03-03 07:54:15 +00:00
apb 1478a06a86 Remove all reference to MAKEDEV.subr. Add a reference to MAKEDEV.local. 2007-03-03 06:56:25 +00:00
simonb fbd2813869 No need to cast pointers to (char *) when passing to free(3). 2007-03-03 00:09:30 +00:00
dsl 1d350026de Instead of creating the mfs /dev here, get MAKEDEV to do it.
Removes a load of code that is easier done as a script.
Whenever init exits, use a different error number. Since it is difficult
for init to output messages when /dev/console is absent, having the exit
code reported by the kernel panic gives a chance of identifying the fault.
Also exit if MAKEDEV fails to create /dev/console.
2007-03-02 22:43:24 +00:00
wiz 73dcdfe648 Bump date for previous. 2007-03-02 20:46:23 +00:00
riz d8a62520d7 Use CPPFLAGS, not COPTS, and ${NETBSDSRCDIR}, not "../..". This
should fix OBJDIR builds. (Hi, martin!)
2007-03-02 04:03:17 +00:00
martin c6eb40af11 Add a tool to scan disks for BSD disklabels (might be from different
archs) and add wedges for them. Similar to the kernel options
DKWEDGE_AUTODISCOVER and DKWEDGE_METHOD_BSDLABEL, and actually reusing
most of that code.

This means, for example, you can plug a sparc64 disk into an i386, run
this tool and mount the partitions (provided your kernel has the FFS_EI
option).
2007-03-01 22:01:29 +00:00
apb c3bbc70fa0 When calculating the size of the MFS /dev file system, round file sizes
up to a multiple of 512.  (Not doing this before was wrong but probably
asymptomatic, because there was enough slack space to cope with the
error).
2007-03-01 18:25:58 +00:00
apb c654f7abce When creating /dev in a memory file system, include all three of
MAKEDEV, MAKEDEV.subr and MAKEDEV.local in the set of files that are
copied if they exist.

Now booting an INSTALL kernel with an embedded ramdisk correctly creates
/dev again, fixing a problem introduced when MAKEDEV.subr was created a
few days ago.
2007-03-01 07:18:07 +00:00
pooka be2ccdedfd proc/#/exe is now exposed for all mounts, move it away from linux-only 2007-02-24 15:45:43 +00:00
rumble 8f8bfb23ec Add a DIAGNOSTICS section and explain that the error message "could not
calibrate pkcs5_pbkdf2" could have resulted due to dynamic changes in cpu
clock frequency.
2007-02-23 20:00:04 +00:00
rumble 0a71191807 Cross-reference fsck_lfs and fsck_ext2fs. 2007-02-23 19:32:16 +00:00
hubertf 6eb43c8c6d TSEL() is const char* now 2007-02-18 01:48:37 +00:00
riz 16a0235c60 Use strtoll() when converting a 64-bit quantity. This makes "gpt add"
work with an offset of more than 2147483647 sectors.  While I'm here,
use strtoul() when converting an unsigned quantity.
2007-02-16 17:13:02 +00:00
xtraeme bebefe198b * There's no need to use an int to store the returned value of
ffs_checkver() and later use it in the switch statement, just
  use ffs_checkver.
* Remove unneded <sys/queue.h> header.
* Remove LFS from fstypes, it was never used.
* Increase SBCOUNT to 128, works faster.
* Remove unneded casts.
* (-F mode) close fd when the scan has finished or if pread() failed.
* (-F mode) print total size of file.
2007-02-16 01:32:21 +00:00
tron e3f6d993ed Increase the numbers of inodes available on the "/dev" MFS to 1280.
This should fix the "sysinst" problems caused by adding more devices
node to resolve PR port-amd64/35532.
2007-02-15 22:39:12 +00:00
hannken f67846b19f Add support for Solaris ufsdump volumes with more than 512*1024 inodes.
Here the bitmaps are written as

	CLRI or BITS with c_count <= 512
	ADDR* for the remaining blocks

Remove the bitmap handling from getfile(), remove xtrmap() and xtrmapskip().
Add new function getbitmap() modeled after getfile() that does bitmap
allocation, bitmap expansion and sets maxino.

Reviewed by: Manuel Bouyer <bouyer@netbsd.org>
2007-02-09 09:36:02 +00:00
drochner 628f1591c1 include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
cbiere 033e1229b9 Revert previous commit. 2007-02-06 20:24:19 +00:00
cbiere a91470cccd Fixed format string in opendisk_werror() which was wrong since my previous
commit.
2007-02-06 14:04:01 +00:00
cbiere a63e176c73 * 1 -> EXIT_FAILURE.
* Replaced atoi() with parse_int().
 * Use an enum for ACTION_* instead of #define.
 * Use strdup() or asnprintf() instead of strlcpy() to avoid truncation.
 * pread() returns ssize_t not int.
 * Suppress "unused parameter" warnings.
 * verify_disklabel(): Pass the correct size to disklabel_scan().
 * verify_ffs():
   * Don't indicate success if pread() fails.
   * Check the amount of bytes read.
   * Don't cast buf to (struct fs *), it's not aligned.
 * eliminate_cores(): No need for a temporary variable.
2007-02-06 02:09:19 +00:00
cbiere 6d1dbd06cb Use warn() and warnx(). 2007-02-06 01:55:40 +00:00
cbiere 6065c2bb2b crypt_defaults_lookup():
* Avoid comparison of int with unsigned.
 * Simplified.
2007-02-06 00:51:09 +00:00
cbiere b90361afef memxor(): Fixed size_t/int mismatch. 2007-02-06 00:48:37 +00:00
cbiere 21f5afe6b9 * 0/1 -> EXIT_{SUCCESS,FAILURE}
* make_utmpx(): Added comment and slightly simpler construct.
 * alrm_handler(): Suppress "unused parameter" warning.
 * mapfile():
   * Handle st.st_size correctly.
   * Avoid unnecessary return statements.
   * Removed unnecessary MAP_FILE flag.
   * Use S_ISLNK() and check S_ISREG() too.
   * Add the terminating NUL rather after readlink() than
     before, just in case.
 * writefile():
   * Avoid unnecessary return statements.
 * read_ttys():
   * Check S_ISREG() as well.
   * Check for st.st_size > 0 rather than != 0.
2007-02-05 22:36:18 +00:00
njoly e2ca295958 Fix compilation on 64bit platforms.
ok by elad.
2007-02-05 15:37:20 +00:00
christos 847a4f4ee5 warns=4 2007-02-04 20:54:02 +00:00
christos 6a075814d9 - close the utmpx file.
- sprinkle void
- use size_t consistently.
2007-02-04 20:53:19 +00:00
wiz 4400332b14 Bump date for previous. 2007-02-02 07:28:03 +00:00
alc 340d62487a - sync file list with reality
- add a description for fd/# (with reference to fd(4))
2007-02-02 00:54:19 +00:00
perry a3b6213467 As pointed out by James Wetterau, we wish to complement, as in the
logical operation, rather than compliment, as in praise, the magic
number of the disk.

There are probably other instances of this in the tree. We should fix
them.
2007-01-27 19:20:28 +00:00
cbiere 140287a3de Replaced int_encode() with be32enc(). 2007-01-27 08:29:14 +00:00
wiz a0ab6bc85b Bump date for previous. 2007-01-23 20:34:17 +00:00
bouyer e47fe82adf Kimura Fuyuki, bin/35216: add a setspeed command, to set the highest speed
that the optical drive should use for reading data.
2007-01-22 20:56:46 +00:00
cbiere 551466a6e7 Avoid crash if the filename contains no digits. 2007-01-21 20:45:41 +00:00
isaki d4ba865188 Make it compile without SUPPORT_UTMP nor SUPPORT_UTMPX. 2007-01-20 13:25:28 +00:00
hubertf df06563bc3 Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>
2007-01-17 21:59:49 +00:00
reinoud 3434329686 Add `-o noatime' support to the mount program. Not relevant for the
read-only implementation currently committed though.
2007-01-17 21:21:12 +00:00
dyoung 3dfd6a1c5f Print more 802.11 statistics when the operator runs 'ifconfig -v
ath0', for example.  Fix the spelling of one statistic.
2007-01-09 09:25:56 +00:00
dyoung dbf49243d9 Per discussion "ifconfig error handling" on tech-net@ in August
2006, if we fail to set any 802.11 parameter, exit immediately with
EXIT_FAILURE.
2007-01-09 09:24:14 +00:00
dyoung d097d6a596 Let us adjust the 802.11 fragmentation threshold with ifconfig ath0
frag 256, for example.
2007-01-09 09:19:02 +00:00
wiz fbe3512d50 Bump date for previous. 2007-01-08 07:22:12 +00:00
isaki 577b5df548 Sync with reality. The default timeout is 1200 sec. 2007-01-07 08:53:04 +00:00
elad 9b470b7708 Mention potential reasons for EPERM.
Requested by Anon Ymous.
2007-01-06 14:43:27 +00:00
jmmv 08d2474c3c s/tons/lots/, per simonb@'s suggestion. This looks more formal. 2007-01-03 08:39:29 +00:00
yamt dae26da41f remove the rest of Kerberos 4 code. 2006-12-27 12:43:10 +00:00
yamt bb0e3db15a sync with header changes. (nqnfs removal) 2006-12-27 12:13:55 +00:00
wiz 211f17ad46 Sort options in usage. 2006-12-27 11:28:59 +00:00
wiz 78cc844673 Sort options. 2006-12-27 11:27:37 +00:00
yamt b9625c8fbe oops, remove duplicated -D. 2006-12-27 11:08:30 +00:00