Commit Graph

5842 Commits

Author SHA1 Message Date
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz b517ab4402 .Nm still needs "". 2003-02-23 23:40:47 +00:00
perseant 8685c52d63 Make the "-O" (start filesystem offset) flag to newfs_lfs work correctly,
and update fsck_lfs and dumplfs to deal with it.  Note that while the argument
to -O is given in disk sectors, it must be a multiple of the fragment size,
and although it can be lower than the label or superblock, it can't intersect
either.
2003-02-23 04:32:05 +00:00
martin 89fe22c05c Not all size_t's are equal to int... 2003-02-21 07:23:43 +00:00
simonb aeb8d0ecad Show the address of segment 0. 2003-02-21 04:01:07 +00:00
christos c837eea5e5 - pass lint
- use size_t where appropriate
- use err/warn instead of printf, and don't hide the error messages from ioctl.
- keep units in sync (someone added integer in the header file and forgot
  to update envsys.c)
2003-02-20 20:57:08 +00:00
dsl c17244d768 Create session before setting logname - we don't want to change the
parents logname (or any other children pre-empted in that window).
2003-02-19 09:21:15 +00:00
perry 399b25deea Clarify a bit, fix up the examples somewhat, etc. 2003-02-18 02:17:38 +00:00
perseant b397c875ae Add code to UBCify LFS. This is still behind "#ifdef LFS_UBC" for now
(there are still some details to work out) but expect that to go
away soon.  To support these basic changes (creation of lfs_putpages,
lfs_gop_write, mods to lfs_balloc) several other changes were made, to
wit:

* Create a writer daemon kernel thread whose purpose is to handle page
  writes for the pagedaemon, but which also takes over some of the
  functions of lfs_check().  This thread is started the first time an
  LFS is mounted.

* Add a "flags" parameter to GOP_SIZE.  Current values are
  GOP_SIZE_READ, meaning that the call should return the size of the
  in-core version of the file, and GOP_SIZE_WRITE, meaning that it
  should return the on-disk size.  One of GOP_SIZE_READ or
  GOP_SIZE_WRITE must be specified.

* Instead of using malloc(...M_WAITOK) for everything, reserve enough
  resources to get by and use malloc(...M_NOWAIT), using the reserves if
  necessary.  Use the pool subsystem for structures small enough that
  this is feasible.  This also obsoletes LFS_THROTTLE.

And a few that are not strictly necessary:

* Moves the LFS inode extensions off onto a separately allocated
  structure; getting closer to LFS as an LKM.  "Welcome to 1.6O."

* Unified GOP_ALLOC between FFS and LFS.

* Update LFS copyright headers to correct values.

* Actually cast to unsigned in lfs_shellsort, like the comment says.

* Keep track of which segments were empty before the previous
  checkpoint; any segments that pass two checkpoints both dirty and
  empty can be summarily cleaned.  Do this.  Right now lfs_segclean
  still works, but this should be turned into an effectless
  compatibility syscall.
2003-02-17 23:48:08 +00:00
is ca86df3f7e Actually make additional arguments in mailer.conf useful, and document
them.
Reviewed by perry and wiz.
2003-02-17 21:18:46 +00:00
drochner 2b294580b8 add copyright notices 2003-02-17 20:07:06 +00:00
tron 62c4d50f34 Because signals are delivered synchronously via kqueue(2) there is no
reason to block and release them at various places.
2003-02-16 18:16:26 +00:00
tron 39e99fe8e3 Now that signal handling is done via kqueue(2) we need to enter
the event loop even if no sockets were created. This should fix
PR bin/20369 by Martin Husemann.
2003-02-16 17:57:34 +00:00
grant 806593a806 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 16:11:34 +00:00
tron 726769ad02 Improve kqueue(2) utilization:
- Don't invoke kevent(2) for every single event change. Instead collect
  event changes and try to do them in the event loop.
- Handle signals via kevent(2) to avoid race conditions for SIGHUP (which
  probably exist in the select(2) based implementation, too).
2003-02-13 11:47:27 +00:00
christos 50455a9139 PR/20318: Johnny Billquist: rwhod does not compile with -DDEBUG 2003-02-12 17:49:35 +00:00
tron d289c0d46f KNF. 2003-02-12 10:03:47 +00:00
tron 8be719490d Rewrite inetd(8) to use kqueue(2) for enhanced performance and scalability. 2003-02-12 08:52:03 +00:00
christos 3e354b00a7 ufs is ffs not ufs. 2003-02-11 16:17:13 +00:00
mrg 3b06b649fe revert previous 2003-02-11 00:45:02 +00:00
mrg dcd2b71575 no need for "pstat -T" to copyout() the entire vnode list , which can
take a Long Time on systems with large numbers of vnodes.
2003-02-10 23:58:27 +00:00
augustss 889cc758e5 Make this compile on non-NetBSD machines. 2003-02-05 22:47:38 +00:00
perry 8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
martti 18e623daf9 Use md5 instead of sum (bin/20196). 2003-02-04 08:33:03 +00:00
thorpej 9abf2fa449 Update for callout changes, and show TCP timers in relative, rather
than absolute ticks.
2003-02-04 01:22:08 +00:00
thorpej a2ca4434b0 Test CALLOUT_PENDING, not CALLOUT_ACTIVE. 2003-02-04 00:20:50 +00:00
agc 7cb1f145f5 Add a check for the length of the login name given by the user.
Provided by Ben Collver in PR 20154
2003-02-03 12:20:46 +00:00
abs e6dc31f0dc Crank PKGTOOLS_VERSION to 20030202 for last_file fix 2003-02-02 20:54:17 +00:00
abs fd83215c8b Allow '%D' to be used when no last_file available. Fixes binary package
installation of gnome-dirs.
2003-02-02 12:59:53 +00:00
wiz cd68fb44fb guarantee, not guarentee. Idea from miod@openbsd. 2003-02-02 10:24:38 +00:00
christos acc1cc5b41 undo mallocvar.h change! 2003-02-02 02:25:50 +00:00
tron 083ed45586 Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 21:05:54 +00:00
wiz b7e50f132b Make '?' work in interactive mode. Fixes PR bin/19949 by Christian Biere. 2003-02-01 17:13:14 +00:00
wiz 69ffc10a99 Switch soft and hard, per PR 20135. 2003-01-31 12:53:32 +00:00
wiz 9115df8c49 success, not sucess. Noted by mjl. 2003-01-28 22:35:02 +00:00
wiz 7bd6fd354d unknown, not unkown. Noted by mjl. 2003-01-28 22:19:22 +00:00
mrg ab09fc008e make this build on alpha after daddr_t->64bit 2003-01-28 08:22:08 +00:00
mrg a1f69dd514 make this build on alpha after daddr_t->64bit 2003-01-28 07:44:54 +00:00
thorpej a151e17b89 Allow pseudo-devices to be declared with an interface attribute. For
such pseudo-devices, create cfdrivers for them which carry the appropriate
attributes.  This allows devices in the config file to be attached to
pseudo-devices.
2003-01-27 05:00:54 +00:00
uwe 85b406eda9 s/ulong/unsigned long/. ulong is for SysV compatibility, there's no
point in using it in our code.  This change makes makefs(8) compile on
host systems without ulong.
2003-01-27 01:34:09 +00:00
uwe 59e06de8b5 When built as a host tool, don't search /dev as we only use sunlabel
on the disk image.  This ifdefs out a call to getrawpartition() so we
don't have to provide a compatibility replacement for it.
2003-01-27 01:29:06 +00:00
christos c5011d1086 PR/20065: John F. Woods: Fix pluggin compilation 2003-01-26 17:34:19 +00:00
fvdl a3ff3a3038 Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
wiz e92b96aa79 grammar fix. 2003-01-24 13:08:22 +00:00
martti c7d6e073eb Add a new -a flag (automatically update files which have not been
locally modified). Patch provided by Sverre Froyen in a private mail,
slightly modified by me.
2003-01-24 13:06:06 +00:00
gehenna c8d83dee30 Accept the block-device-only devices.
Reported by ragge.
2003-01-23 15:05:45 +00:00
gehenna d0c0162e9c Not necessary to put fixdevmtab in global section. 2003-01-23 15:03:44 +00:00
gehenna 02681cddbc check the duplication or the inconsistency before evaluating fopts. 2003-01-23 15:01:54 +00:00
gehenna 27e67caceb reject the duplication of the same device-major lines. 2003-01-23 14:57:40 +00:00
gehenna 2c4d3430fb fix typo. 2003-01-23 14:55:39 +00:00