]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoenclose IPv6 part with ifdef INET6.
ume [Mon, 20 Oct 2003 16:19:01 +0000 (16:19 +0000)]
enclose IPv6 part with ifdef INET6.

Obtained from: KAME

20 years agoMark dup as MPSAFE. Giant was pushed into dup ages ago, but it looks
dwmalone [Mon, 20 Oct 2003 16:16:03 +0000 (16:16 +0000)]
Mark dup as MPSAFE. Giant was pushed into dup ages ago, but it looks
like it was missed in syscalls.master.

Spotted by: alc

20 years agocorrect linkmtu handling.
ume [Mon, 20 Oct 2003 15:27:48 +0000 (15:27 +0000)]
correct linkmtu handling.

Obtained from: KAME

20 years agoFix typo: s/dev_db/dev_mkdb/
bmah [Mon, 20 Oct 2003 15:17:44 +0000 (15:17 +0000)]
Fix typo:  s/dev_db/dev_mkdb/

Pointed out by: Michel Lavondes <fox@vader.aacc.cc.md.us>

20 years agoRemember to check the DE_WHITEOUT flag in the case where a cloned
phk [Mon, 20 Oct 2003 15:08:10 +0000 (15:08 +0000)]
Remember to check the DE_WHITEOUT flag in the case where a cloned
device is hidden by a devfs(8) rule.

Spotted by:  Adam Nowacki <ptnowak@bsk.vectranet.pl>

20 years agoIf just gcc could make up its mind...
sos [Mon, 20 Oct 2003 14:28:37 +0000 (14:28 +0000)]
If just gcc could make up its mind...

20 years agoBring the description of st_[cma]time modification conditions a bit
dds [Mon, 20 Oct 2003 13:52:22 +0000 (13:52 +0000)]
Bring the description of st_[cma]time modification conditions a bit
closer to reality.  More work remains to be done.  st_mtime should
be the most complete based on IEEE Std 1003.1, 2003 Edition, a
review of ufs_vnops.c, and some experimentation.

20 years agoOnly return valid DMA error bits.
sos [Mon, 20 Oct 2003 13:45:11 +0000 (13:45 +0000)]
Only return valid DMA error bits.

20 years agoUp delay from 10 to 100ms after reset, this helps some slow devices
sos [Mon, 20 Oct 2003 13:44:33 +0000 (13:44 +0000)]
Up delay from 10 to 100ms after reset, this helps some slow devices
get their act together before we start probing.

20 years agoOnly announce ECC errors when its only that.
sos [Mon, 20 Oct 2003 13:32:42 +0000 (13:32 +0000)]
Only announce ECC errors when its only that.

20 years agoFix some security bugs in the SVR4 emulator:
tjr [Mon, 20 Oct 2003 10:38:48 +0000 (10:38 +0000)]
Fix some security bugs in the SVR4 emulator:
- Return NULL instead of returning memory outside of the stackgap
  in stackgap_alloc() (FreeBSD-SA-00:42.linux)
- Check for stackgap_alloc() returning NULL in svr4_emul_find(),
  and clean_pipe().
- Avoid integer overflow on large nfds argument in svr4_sys_poll()
- Reject negative nbytes argument in svr4_sys_getdents()
- Don't copy out past the end of the struct componentname
  pathname buffer in svr4_sys_resolvepath()
- Reject out-of-range signal numbers in svr4_sys_sigaction(),
  svr4_sys_signal(), and svr4_sys_kill().
- Don't malloc() user-specified lengths in show_ioc() and
  show_strbuf(), place arbitrary limits instead.
- Range-check lengths in si_listen(), ti_getinfo(), ti_bind(),
  svr4_do_putmsg(), svr4_do_getmsg(), svr4_stream_ti_ioctl().

Some fixes obtain from OpenBSD.

20 years agoUpdate to using a 56k modem connection, plus add some verbage about
imp [Mon, 20 Oct 2003 10:26:54 +0000 (10:26 +0000)]
Update to using a 56k modem connection, plus add some verbage about
what the entry does for people that are not used to reading
/etc/remote files every day.  Keep arpavax, because it is a cool name,
but remove the phone number listed.  arpavax hasn't been answering
that number for a while :-)

20 years agoWhite space only changes. Put each sentence on a line by itself, per
imp [Mon, 20 Oct 2003 10:04:55 +0000 (10:04 +0000)]
White space only changes.  Put each sentence on a line by itself, per
our normal practice.  In anticipation of bigger changes to this file.

20 years agoWe dont support CDROMREADAUDIO anymore.
sos [Mon, 20 Oct 2003 09:51:00 +0000 (09:51 +0000)]
We dont support CDROMREADAUDIO anymore.

20 years agoRemove no longer existant CDIOCREADAUDIO ioctl.
sos [Mon, 20 Oct 2003 09:29:40 +0000 (09:29 +0000)]
Remove no longer existant CDIOCREADAUDIO ioctl.

20 years agoWhen a driver successfully created a device on demand, we can directly
phk [Mon, 20 Oct 2003 07:04:09 +0000 (07:04 +0000)]
When a driver successfully created a device on demand, we can directly
pick up the DEVFS inode number from the dev_t and find our directory
entry from that, we don't need to scan the directory to find it.

This also solves an issue with on-demand devices in subdirectories.

Submitted by: cognet

20 years ago - Synchronize access to a vm page's valid field using the containing
alc [Mon, 20 Oct 2003 05:57:55 +0000 (05:57 +0000)]
 - Synchronize access to a vm page's valid field using the containing
   vm object's lock.

20 years agoPut the RSE backing store at a fixed address. This change is triggered
marcel [Mon, 20 Oct 2003 05:34:10 +0000 (05:34 +0000)]
Put the RSE backing store at a fixed address. This change is triggered
by libguile that needs to know the base of the RSE backing store. We
currently do not export the fixed address to userland by means of a
sysctl so user code needs to hardcode it for now. This will be revisited
later.

The RSE backing store is now at the bottom of region 4. The memory stack
is at the top of region 4. This means that the whole region is usable
for the stacks, giving a 61-bit stack space.

Port: lang/guile (depended of x11/gnome2)

20 years ago - Remove comments referring to functions that no longer exist.
alc [Mon, 20 Oct 2003 05:16:27 +0000 (05:16 +0000)]
 - Remove comments referring to functions that no longer exist.

20 years agoThis test relies on the concurrency level being 1; make it so.
deischen [Mon, 20 Oct 2003 04:23:49 +0000 (04:23 +0000)]
This test relies on the concurrency level being 1; make it so.

20 years agoVarious style and type fixes in my last commit.
cognet [Mon, 20 Oct 2003 04:10:20 +0000 (04:10 +0000)]
Various style and type fixes in my last commit.

Suggested by: mux

20 years ago - Hold the vm object's lock around calls to vm_page_set_validclean().
alc [Mon, 20 Oct 2003 04:05:24 +0000 (04:05 +0000)]
 - Hold the vm object's lock around calls to vm_page_set_validclean().

20 years agodocument the fact that kqueue will immediately return and not timeout when
jmg [Mon, 20 Oct 2003 02:29:16 +0000 (02:29 +0000)]
document the fact that kqueue will immediately return and not timeout when
nevents is 0.

PR: kern/45291

20 years agoFix m_head handling in sis_encap so that the correct mbuf is always handed
silby [Sun, 19 Oct 2003 23:28:02 +0000 (23:28 +0000)]
Fix m_head handling in sis_encap so that the correct mbuf is always handed
to BPF_MTAP.

20 years agoFix a problem where m_defrag would allocate a new mbuf to replace the
silby [Sun, 19 Oct 2003 23:05:19 +0000 (23:05 +0000)]
Fix a problem where m_defrag would allocate a new mbuf to replace the
chain passed into dc_encap, which dc_start was unaware of.  This caused
the old (now invalid) mbuf to be passed to BPF_MTAP.

Spotted by: Kenjiro Cho <kjc@csl.sony.co.jp>

20 years agoAdd a new macro M_ASSERTVALID which ensures that the mbuf in question
silby [Sun, 19 Oct 2003 22:33:41 +0000 (22:33 +0000)]
Add a new macro M_ASSERTVALID which ensures that the mbuf in question
is non-free.  (More checks can/should be added in the future.)

Use M_ASSERTVALID in BPF_MTAP so that we catch when freed mbufs are
passed in, even if no bpf listeners are active.

Inspired by a bug in if_dc caught by Kenjiro Cho.

20 years agoAdd a testcase which validates that the same buffer can be passed to
phk [Sun, 19 Oct 2003 22:12:23 +0000 (22:12 +0000)]
Add a testcase which validates that the same buffer can be passed to
rijndael_blockDecrypt() as both input and output.

This property is important because inside rijndael we can get away
with allocating just a 16 byte "work" buffer on the stack (which
is very cheap), whereas the calling code would need to allocate the
full sized buffer, and in all likelyhood would have to do so with
an expensive malloc(9).

20 years agoChange the default mode for lost+found from 01777 to 0700. The
iedowse [Sun, 19 Oct 2003 21:49:44 +0000 (21:49 +0000)]
Change the default mode for lost+found from 01777 to 0700. The
original intention of the less restrictive permissions was to allow
users to move or delete recovered files that they own. However, it
is better to not create world-writable directories by default; the
administrator can always pre-create lost+found if different permissions
are desired.

Reviewed by: mckusick

20 years ago- revert to old rijndael code. new rijndael code broke gbde.
ume [Sun, 19 Oct 2003 21:28:34 +0000 (21:28 +0000)]
- revert to old rijndael code.  new rijndael code broke gbde.
- since aes-xcbc-mac and aes-ctr require functions in new
  rijndael code, aes-xcbc-mac and aes-ctr are disabled for now.

20 years agofalloc allocates a file structure and adds it to the file descriptor
dwmalone [Sun, 19 Oct 2003 20:41:07 +0000 (20:41 +0000)]
falloc allocates a file structure and adds it to the file descriptor
table, acquiring the necessary locks as it works. It usually returns
two references to the new descriptor: one in the descriptor table
and one via a pointer argument.

As falloc releases the FILEDESC lock before returning, there is a
potential for a process to close the reference in the file descriptor
table before falloc's caller gets to use the file. I don't think this
can happen in practice at the moment, because Giant indirectly protects
closes.

To stop the file being completly closed in this situation, this change
makes falloc set the refcount to two when both references are returned.
This makes life easier for several of falloc's callers, because the
first thing they previously did was grab an extra reference on the
file.

Reviewed by: iedowse
Idea run past: jhb

20 years ago - Add vm object locking to vfs_clean_pages() and vfs_bio_set_validclean().
alc [Sun, 19 Oct 2003 20:39:06 +0000 (20:39 +0000)]
 - Add vm object locking to vfs_clean_pages() and vfs_bio_set_validclean().
   This is to synchronize access to the vm page's valid field by
   vm_page_set_validclean().

20 years agoRemove KASSERT check for negative bio_offsets, add "normal" EIO
phk [Sun, 19 Oct 2003 19:06:54 +0000 (19:06 +0000)]
Remove KASSERT check for negative bio_offsets, add "normal" EIO
error return for same.

20 years agoThe re(4) driver works on CURRENT/alpha.
bmah [Sun, 19 Oct 2003 18:35:40 +0000 (18:35 +0000)]
The re(4) driver works on CURRENT/alpha.

Reported by: naddy@mips.inka.de (Christian Weisgerber) on alpha@

20 years agoModified release notes: Fixed minor grammatical bugs in atkbd(4) bug
bmah [Sun, 19 Oct 2003 18:32:48 +0000 (18:32 +0000)]
Modified release notes:  Fixed minor grammatical bugs in atkbd(4) bug
and safe(4).

20 years agoFinish the removal of the bst/bsh confusion.
imp [Sun, 19 Oct 2003 17:38:04 +0000 (17:38 +0000)]
Finish the removal of the bst/bsh confusion.

20 years agoRemove debug printf().
mux [Sun, 19 Oct 2003 14:33:00 +0000 (14:33 +0000)]
Remove debug printf().

20 years agoImplement partially /proc/<pid>/maps.
cognet [Sun, 19 Oct 2003 14:13:51 +0000 (14:13 +0000)]
Implement partially /proc/<pid>/maps.
It looks enough to make SImics run.

Reviewed by: des

20 years agoVarious NFS-related bug fixes (mostly related to using variable_get()
des [Sun, 19 Oct 2003 13:37:12 +0000 (13:37 +0000)]
Various NFS-related bug fixes (mostly related to using variable_get()
instead of variable_cmp() to test boolean rc.conf variables).

Submitted by: hmp

20 years agoModified release note:
hrs [Sun, 19 Oct 2003 12:58:57 +0000 (12:58 +0000)]
Modified release note:
Fix a typo in IP_ONESBCAST item.

MFC noted:
ipfw(4) limit rule processing fix.

20 years agoMFi386: revision 1.577.
nyan [Sun, 19 Oct 2003 11:35:44 +0000 (11:35 +0000)]
MFi386: revision 1.577.

20 years agos/5.0-CURRENT/FreeBSD 5.x/
phk [Sun, 19 Oct 2003 10:24:59 +0000 (10:24 +0000)]
s/5.0-CURRENT/FreeBSD 5.x/

20 years agoFix LINT build by correcting a missed change.
bms [Sun, 19 Oct 2003 09:31:07 +0000 (09:31 +0000)]
Fix LINT build by correcting a missed change.

20 years agoDisable irqs before entering the power-off state. This is not known
njl [Sun, 19 Oct 2003 05:56:59 +0000 (05:56 +0000)]
Disable irqs before entering the power-off state.  This is not known
to fix any problems but is similar to how Linux implements this
function.

20 years agoTidy up loose ends in the idle process. Call the MI cpu_idle() function
peter [Sun, 19 Oct 2003 02:43:57 +0000 (02:43 +0000)]
Tidy up loose ends in the idle process.  Call the MI cpu_idle() function
for all platforms now.

XXX alpha/sparc64/powerpc should fill in the function.

Submitted by:  bde

20 years agoAdd a stub cpu_idle() function for sparc64, alpha, powerpc. This is a
peter [Sun, 19 Oct 2003 02:36:07 +0000 (02:36 +0000)]
Add a stub cpu_idle() function for sparc64, alpha, powerpc.  This is a
MI declared function so it should be everywhere.

20 years agoFix broken su -m behaviour :
cognet [Sun, 19 Oct 2003 02:09:36 +0000 (02:09 +0000)]
Fix broken su -m behaviour :
chshell must return 0 if the shell is not a standard shell, or else it is
possible to use an account without a valid shell.

Reviewed by: des

20 years agoUse npxdrop in cpu_thread_exit to save some cycles.
davidxu [Sun, 19 Oct 2003 00:57:10 +0000 (00:57 +0000)]
Use npxdrop in cpu_thread_exit to save some cycles.
Clear FPU pcb flags for new upcall thread, these flags needn't
be inherited, the new thread should start from clean FPU status.

20 years agoBefore trying to restart/stop the MTA or MSP queue runner, make sure
gshapiro [Sun, 19 Oct 2003 00:31:50 +0000 (00:31 +0000)]
Before trying to restart/stop the MTA or MSP queue runner, make sure
we are configured to use an MTA or MSP queue runner.  Otherwise the
script used to complain about the missing PID file.

PR: conf/57075
Submitted by: Jonathan Chen <jonc@chen.org.nz>
MFC after: 2 weeks

20 years agoAdding WorkAroundBrokenAAAA seems a necessity even in the submit.mc given
gshapiro [Sun, 19 Oct 2003 00:03:13 +0000 (00:03 +0000)]
Adding WorkAroundBrokenAAAA seems a necessity even in the submit.mc given
the number of broken DNS servers out there in the world.  Since we are
diverging from the sendmail.org submit.mc, it's time to make our own
freebsd.submit.mc.

PR: conf/57733
Reviewed by: nork
MFC after: 2 weeks

20 years agoDon't confuse tags and handles.
imp [Sun, 19 Oct 2003 00:03:10 +0000 (00:03 +0000)]
Don't confuse tags and handles.

20 years ago - Synchronize access to a vm page's valid field using the containing
alc [Sun, 19 Oct 2003 00:01:56 +0000 (00:01 +0000)]
 - Synchronize access to a vm page's valid field using the containing
   vm object's lock.
 - Reduce the scope of the vm page queues lock in two places.

20 years agoNote that PAE has been MFC'd into RELENG_4 and will appear in FreeBSD
simon [Sat, 18 Oct 2003 22:54:45 +0000 (22:54 +0000)]
Note that PAE has been MFC'd into RELENG_4 and will appear in FreeBSD
4.9.

20 years agoAdd the cpu_idle_hook() function pointer so that other idlers can be
njl [Sat, 18 Oct 2003 22:25:07 +0000 (22:25 +0000)]
Add the cpu_idle_hook() function pointer so that other idlers can be
hooked at runtime.  Make C1 sleep (e.g., HLT) be the default.  This
prepares the way for further ACPI sleep states.

20 years ago - Synchronize access to the page's valid field in
alc [Sat, 18 Oct 2003 21:30:29 +0000 (21:30 +0000)]
 - Synchronize access to the page's valid field in
   vnode_pager_generic_getpages() using the containing object's lock.

20 years ago - Increase the object lock's scope in vm_contig_launder() so that access
alc [Sat, 18 Oct 2003 21:09:21 +0000 (21:09 +0000)]
 - Increase the object lock's scope in vm_contig_launder() so that access
   to the object's type field and the call to vm_pageout_flush() are
   synchronized.
 - The above change allows for the eliminaton of the last parameter
   to vm_pageout_flush().
 - Synchronize access to the page's valid field in vm_pageout_flush()
   using the containing object's lock.

20 years agoFix a typo. The module has the EISA front-end commented out, therefore the
bms [Sat, 18 Oct 2003 20:44:23 +0000 (20:44 +0000)]
Fix a typo. The module has the EISA front-end commented out, therefore the
error may not have been picked up right away.

Reviewed by: mdodd
Submitted by: Stuart Walsh

20 years agoInitialize b_iooffset before calling VOP_[SPEC]STRATEGY
phk [Sat, 18 Oct 2003 19:49:46 +0000 (19:49 +0000)]
Initialize b_iooffset before calling VOP_[SPEC]STRATEGY

20 years agoInitialize b_iooffset before calling strategy
phk [Sat, 18 Oct 2003 19:48:21 +0000 (19:48 +0000)]
Initialize b_iooffset before calling strategy

20 years agoOnly automatically create an 'a' partition when there is nothing
phk [Sat, 18 Oct 2003 19:32:35 +0000 (19:32 +0000)]
Only automatically create an 'a' partition when there is nothing
but a 'c' partition.

20 years agoCorrections to revision 1.305
alc [Sat, 18 Oct 2003 18:48:17 +0000 (18:48 +0000)]
Corrections to revision 1.305
 - Specifying VM_MAP_WIRE_HOLESOK should not assume that the start
   address is the beginning of the map.  Instead, move to the first
   entry after the start address.
 - The implementation of VM_MAP_WIRE_HOLESOK was incomplete.  This
   caused the failure of mlockall(2) in some circumstances.

20 years agoNew release note:
hrs [Sat, 18 Oct 2003 18:18:17 +0000 (18:18 +0000)]
New release note:
Fix ipfw(4) limit rule processing.

20 years agoRetire b_pblkno which was an alias for a bio field which is for
phk [Sat, 18 Oct 2003 18:17:55 +0000 (18:17 +0000)]
Retire b_pblkno which was an alias for a bio field which is for
device drivers only.

20 years agoDon't report b_pblkno, it is going away.
phk [Sat, 18 Oct 2003 17:59:02 +0000 (17:59 +0000)]
Don't report b_pblkno, it is going away.

20 years agoDo not initialize bp->b_pblkno, it is going away.
phk [Sat, 18 Oct 2003 17:57:48 +0000 (17:57 +0000)]
Do not initialize bp->b_pblkno, it is going away.

20 years agoRetire bio_blkno entirely.
phk [Sat, 18 Oct 2003 17:53:34 +0000 (17:53 +0000)]
Retire bio_blkno entirely.

bio_offset is the field drivers should use.
bio_pblkno remains as a convenient place to store the number of
the device drivers.

20 years agoEliminate use bio_blkno.
phk [Sat, 18 Oct 2003 17:51:26 +0000 (17:51 +0000)]
Eliminate use bio_blkno.

20 years agortfree() must be called in lock context.
ume [Sat, 18 Oct 2003 17:46:23 +0000 (17:46 +0000)]
rtfree() must be called in lock context.

Reported by: jhay

20 years agoDiscontinue bio_blkno usage.
phk [Sat, 18 Oct 2003 17:45:45 +0000 (17:45 +0000)]
Discontinue bio_blkno usage.

20 years agoDiscontinue bio_blkno, use bio_offset instead.
phk [Sat, 18 Oct 2003 17:44:01 +0000 (17:44 +0000)]
Discontinue bio_blkno, use bio_offset instead.

20 years agoEliminate reporting of bio_blkno.
phk [Sat, 18 Oct 2003 17:28:36 +0000 (17:28 +0000)]
Eliminate reporting of bio_blkno.

20 years agoReport bio_pblkbo instead of bio_blkno.
phk [Sat, 18 Oct 2003 17:27:10 +0000 (17:27 +0000)]
Report bio_pblkbo instead of bio_blkno.

20 years agoUse bio_offset instead of bio_blkno
phk [Sat, 18 Oct 2003 17:26:13 +0000 (17:26 +0000)]
Use bio_offset instead of bio_blkno

20 years agoNo need to initialize bio_pblkno from bio_blkno, disksort uses bio_offset.
phk [Sat, 18 Oct 2003 17:24:51 +0000 (17:24 +0000)]
No need to initialize bio_pblkno from bio_blkno, disksort uses bio_offset.

20 years agoMake bioq_disksort() sort on the bio_offset field instead of bio_pblkno.
phk [Sat, 18 Oct 2003 15:50:56 +0000 (15:50 +0000)]
Make bioq_disksort() sort on the bio_offset field instead of bio_pblkno.

20 years agoTransition to using bus_space macros rather than the inb/outb/etc.
imp [Sat, 18 Oct 2003 15:22:43 +0000 (15:22 +0000)]
Transition to using bus_space macros rather than the inb/outb/etc.
Use EP_{READ,WRITE}{,_MULTI}_{1,2,4} instead.  I've had several people
submit patches like this over the years of varying qualities, markm
being the last.  The names were chosen in consulation with mdodd on
irc.

I've tested this with only PCMCIA cards: 3CCE589EC and 3CCSH572BT.
I've not tried with my more extensive ISA, EISA and cbus collection.

Reviewed by: mdodd

20 years agoDuH!
phk [Sat, 18 Oct 2003 14:10:28 +0000 (14:10 +0000)]
DuH!

bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in
the file)

20 years agoI think rwatson got the sign wrong here...
phk [Sat, 18 Oct 2003 12:16:17 +0000 (12:16 +0000)]
I think rwatson got the sign wrong here...

20 years agoDon't initialize unused bio_blkno field.
phk [Sat, 18 Oct 2003 11:25:42 +0000 (11:25 +0000)]
Don't initialize unused bio_blkno field.

20 years agoInitialize bp->b_offset before calling VOP_[SPEC]STRATEGY()
phk [Sat, 18 Oct 2003 11:16:33 +0000 (11:16 +0000)]
Initialize bp->b_offset before calling VOP_[SPEC]STRATEGY()

20 years agoInitialize bp->b_offset before calling VOP_STRATEGY().
phk [Sat, 18 Oct 2003 11:14:29 +0000 (11:14 +0000)]
Initialize bp->b_offset before calling VOP_STRATEGY().

Remove KASSERTS and panics with B_PHYS checks which no longer apply.

20 years agoInitialize bp->b_offset before calling VOP_STRATEGY()
phk [Sat, 18 Oct 2003 11:13:31 +0000 (11:13 +0000)]
Initialize bp->b_offset before calling VOP_STRATEGY()

20 years agoInitialize bp->b_offset before calling VOP_[SPEC]STRATEGY().
phk [Sat, 18 Oct 2003 11:11:05 +0000 (11:11 +0000)]
Initialize bp->b_offset before calling VOP_[SPEC]STRATEGY().
Remove stale comment about B_PHYS.

20 years agoInitialize b_offset before calling VOP_SPECSTRATEGY()
phk [Sat, 18 Oct 2003 11:08:33 +0000 (11:08 +0000)]
Initialize b_offset before calling VOP_SPECSTRATEGY()

20 years agoInitialize bp->b_offset before calling VOP_[SPEC]STRATEGY()
phk [Sat, 18 Oct 2003 11:08:04 +0000 (11:08 +0000)]
Initialize bp->b_offset before calling VOP_[SPEC]STRATEGY()

20 years agoInitialize b_offset before calling VOP_STRATEGY/VOP_SPECSTRATEGY.
phk [Sat, 18 Oct 2003 11:06:15 +0000 (11:06 +0000)]
Initialize b_offset before calling VOP_STRATEGY/VOP_SPECSTRATEGY.

Remove various comments of KASSERTS and comments about B_PHYS which
does not apply anymore.

20 years agoInitialize bp->b_offset and remove comment about B_PHYS.
phk [Sat, 18 Oct 2003 11:02:24 +0000 (11:02 +0000)]
Initialize bp->b_offset and remove comment about B_PHYS.

20 years agoThere is no need to muck about with the B_PHYS flag here. We never even
phk [Sat, 18 Oct 2003 11:01:11 +0000 (11:01 +0000)]
There is no need to muck about with the B_PHYS flag here.  We never even
get close to DEV_STRATEGY() which is the only place it is relevant.

20 years agoANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.
markm [Sat, 18 Oct 2003 10:04:16 +0000 (10:04 +0000)]
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.

20 years agoRemove a GCC specifig CFLAG. We should be using WARNS=? for this.
markm [Sat, 18 Oct 2003 09:58:39 +0000 (09:58 +0000)]
Remove a GCC specifig CFLAG. We should be using WARNS=? for this.
WARNS=? is not added here at this point, because I've not tested
it on enough platforms, and I don't want to break builds.

20 years agoWe do not get B_PHYS buffers here anymore. /dev/drum is long gone.
phk [Sat, 18 Oct 2003 09:33:13 +0000 (09:33 +0000)]
We do not get B_PHYS buffers here anymore.  /dev/drum is long gone.

20 years agoConvert some if(bla) panic("foo") to KASSERTS to improve grep-ability.
phk [Sat, 18 Oct 2003 09:32:39 +0000 (09:32 +0000)]
Convert some if(bla) panic("foo") to KASSERTS to improve grep-ability.

20 years agoMark as __unused some arguments that are, erm, unused.
markm [Sat, 18 Oct 2003 09:16:01 +0000 (09:16 +0000)]
Mark as __unused some arguments that are, erm, unused.

20 years agoThe size and contents of the DEV_STRATEGY() macro has progressed to
phk [Sat, 18 Oct 2003 09:03:15 +0000 (09:03 +0000)]
The size and contents of the DEV_STRATEGY() macro has progressed to
the point where it being a macro is no longer sensible, and it will
only be more so in days to come.

BIO_STRATEGY() is now only used from DEV_STRATEGY() and should not
be used directly anymore.

Put the contents of both in the new function dev_strategy() and
make DEV_STRATEGY() call that function.

In addition, this allows us to make the rather magic bufdonebio()
helper function static.

This alse saves hunderedandsome bytes of code in a typical kernel.

20 years agoRearrange the deck-chairs while we wait for scottl to GEOMify RF.
phk [Sat, 18 Oct 2003 08:58:35 +0000 (08:58 +0000)]
Rearrange the deck-chairs while we wait for scottl to GEOMify RF.

20 years agoAdd SBP-II target mode driver.
simokawa [Sat, 18 Oct 2003 05:41:31 +0000 (05:41 +0000)]
Add SBP-II target mode driver.

Though this is still incomplete and has some missing features such as
exclusive login and event notification, it may be enough for someone
who wants to play with it.

This driver is supposed to work with firewire(4), targ(4) of CAM(4)
and scsi_target(8) which can be found in /usr/share/example/scsi_target.
This driver doesn't require sbp(4) which implements initiator mode.

Sample configuration:

Kernel: (you can use modules as well)
device firewire
device scbus
device targ
device sbp_targ

After reboot:
# mdconfig -a -t malloc -s 10m
md0
# scsi_target 0:0:0 /dev/md0
(Assuming sbp_targ0 on scbus0)

You should find the 10MB HDD on FreeBSD/MacOS X/WinXP or whatever connected
to the target using FireWire.

Manpage is not finished yet.

20 years ago- Call sbp_reset_start() for mgm timeout.
simokawa [Sat, 18 Oct 2003 04:59:47 +0000 (04:59 +0000)]
- Call sbp_reset_start() for mgm timeout.
- Change type of target->luns to allocate an array of LUNs dynamically.
This allows targets to change their number of LUNs after each bus reset.
- Serialize ORB POINTER command for each LUN.
- Improve debug messages.

20 years ago- Enable 16byte commands.
simokawa [Sat, 18 Oct 2003 04:54:08 +0000 (04:54 +0000)]
- Enable 16byte commands.
- Fix printf warnings on 64bit architectures.
- Accept 'k', 'm' and etc. for -s option.

Reviewed by: njl

20 years agoWrap db_active check in #ifdef DDB, as db_active is not defined ifndef
rwatson [Sat, 18 Oct 2003 02:23:57 +0000 (02:23 +0000)]
Wrap db_active check in #ifdef DDB, as db_active is not defined ifndef
DDB.

20 years agoAdd a new cn_flags fields to struct consdev, the low-level console
rwatson [Sat, 18 Oct 2003 02:13:39 +0000 (02:13 +0000)]
Add a new cn_flags fields to struct consdev, the low-level console
definition structure.  Define one flag, CN_FLAG_NODEBUG, which
indicates the console driver cannot be used in the context of the
debugger.  This may be used, for example, if the console device
interacts with kernel services that cannot be used from the
debugger context, such as the network stack.  These drivers are
skipped over for calls to cn_checkc() and cn_putc(), and the
calling function simply moves on to the next available console.

20 years agofix station mode breakage (repeat after me: "test every change, no
sam [Fri, 17 Oct 2003 23:59:11 +0000 (23:59 +0000)]
fix station mode breakage (repeat after me: "test every change, no
matter how small...")