Alexander Kabaev
74c7f74304
LINT on ia64 requires memset symbol too. Make fire it is present by adding
...
it to libkern on this architecture.
2007-04-09 14:02:18 +00:00
Andre Oppermann
cc9164e2e6
Sort sctp_*.c files.
2007-04-09 12:51:29 +00:00
Scott Long
4400b36d94
Make use of M_ZERO in various malloc calls.
2007-04-09 05:47:32 +00:00
Scott Long
472cdbef04
Fix a logic bug that slipped in at the last minute and apparently escaped
...
testing.
2007-04-09 05:43:02 +00:00
Pawel Jakub Dawidek
24bda1641f
Instead of detecting if lock is already initialized based on standard 1 bit
...
check, use more accurate 13 bits check. We had too many false-positives with
the standard check.
Reported by: mlaier
2007-04-09 01:05:31 +00:00
Pawel Jakub Dawidek
1868634782
Always try to load zpool.cache instead of trying to find good place to
...
document it. When there is no such file, it's invisible for the user.
2007-04-09 00:04:54 +00:00
Pawel Jakub Dawidek
33fc425c85
We don't have to wait for the root file system to be mounted anymore, now that
...
kobj KPI supports operating on files loaded by the loader.
2007-04-09 00:03:45 +00:00
Pawel Jakub Dawidek
5fc5d6ed61
Drop the Giant lock before calling zfs_domount(), which is held when
...
mounting root file system.
2007-04-09 00:02:11 +00:00
Pawel Jakub Dawidek
f92cb15e7b
Move zpool.cache from /etc/zfs/ to /boot/zfs/, so we can keep it on
...
dedicated /boot/ file system and use ZFS for the root file system.
2007-04-08 23:59:39 +00:00
Pawel Jakub Dawidek
bdebccf9b9
Extend kobj compatibility KPI to support operating on files before and
...
after the root file system is mounted.
This is one of the changes that will allow to put root file system on ZFS.
2007-04-08 23:57:08 +00:00
Pawel Jakub Dawidek
df3aed4f96
Use root_mounted().
2007-04-08 23:54:23 +00:00
Pawel Jakub Dawidek
2eb68d493f
Add root_mounted() function that returns true if the root file system is
...
already mounted.
2007-04-08 23:54:01 +00:00
Kip Macy
dc5a36e241
Add missing paren
2007-04-08 22:56:18 +00:00
Xin LI
9e3edba677
Bump __FreeBSDversion for CAM sg addition.
...
Requested by: bsam
2007-04-08 22:45:20 +00:00
Søren Schmidt
ae4ce3ceef
OK, this is not my day, fix the former fix :/
2007-04-08 21:53:52 +00:00
Søren Schmidt
f27a14650f
Hopefully unbreak the 64bit DMA support this time.
2007-04-08 19:18:51 +00:00
Kip Macy
cae1990513
remove stale variable reference
2007-04-08 18:02:37 +00:00
Pawel Jakub Dawidek
ffe54ff0ec
MFp4: Synchronize with recent OpenSolaris changes.
2007-04-08 16:29:25 +00:00
Kip Macy
db2faf119f
add busdma function for mapping mbuf iovecs
...
change m_collapse to return an error code
2007-04-08 15:59:07 +00:00
Pawel Jakub Dawidek
425d75486e
- Use 'name=value' so it can be properly recognized by devd(8).
...
- Use only subclass as devd's type.
2007-04-08 15:55:48 +00:00
Søren Schmidt
cd945eed47
Dont zero out 64BIT flag on DMA ops.
2007-04-08 15:31:39 +00:00
Kip Macy
27f0ce0f2b
hook uipc_mvec.c into build
2007-04-08 15:18:03 +00:00
Kip Macy
c0a24dd4aa
Convert driver RX path over to using mbuf iovec
2007-04-08 15:04:19 +00:00
Kip Macy
a8d9a363f5
Add driver private mbuf iovec support routines
2007-04-08 14:56:16 +00:00
Pawel Jakub Dawidek
c2cda60911
prison_free() can be called with a mutex held. This wasn't a problem until
...
I converted allprison_mtx mutex to allprison_lock sx lock. To fix this LOR,
move prison removal to prison_complete() entirely. To ensure that noone
will reference this prison before it's beeing removed from the list skip
prisons with 'pr_ref == 0' in prison_find() and assert that pr_ref has to
greater than 0 in prison_hold().
Reported by: kris
OK'ed by: rwatson
2007-04-08 10:46:23 +00:00
Pawel Jakub Dawidek
61cfeccd58
Take vnode pointer and hold it under znode lock, so we won't race with
...
zfs_reclaim(). This may or may not fix problem reported by kris, but it's
definiatelly better that way.
2007-04-08 10:29:14 +00:00
Pawel Jakub Dawidek
b63b0c6529
Only use prison mutex to protect the fields that need to be protected by it.
2007-04-08 10:21:38 +00:00
Ariff Abdullah
319276aac0
Disable cmi_midiattach(). The implementation is incomplete, and causing
...
various interesting memory leak issues.
2007-04-08 07:52:27 +00:00
Pawel Jakub Dawidek
264de85e73
pr_list is protected by the allprison_lock.
2007-04-08 02:13:32 +00:00
Pawel Jakub Dawidek
3dc4488c91
Move atomic.S files to directories that better fit OpenSolaris directory
...
layout.
2007-04-07 23:54:54 +00:00
Pawel Jakub Dawidek
e321494eca
Fix libzpool compilation.
...
Reported by: des
2007-04-07 23:47:14 +00:00
Pawel Jakub Dawidek
9a691cb33a
Limit the number of system taskq threads to the number of CPUs.
...
They are only used when there is a need for reducing namecache.
Observed by: kris, csjp
2007-04-07 21:41:11 +00:00
Scott Long
1eba4c7948
Add the CAM 'SG' peripheral device. This device implements a subset of the
...
Linux SCSI SG passthrough device API. The intention is to allow for both
running of Linux apps that want to talk to /dev/sg* nodes, and to facilitate
porting of apps from Linux to FreeBSD. As such, both native and linuxolator
entry points and definitions are provided.
Caveats:
- This does not support the procfs and sysfs nodes that the Linux SG
driver provides. Some Linux apps may rely on these for operation,
others may only use them for informational purposes.
- More ioctls need to be implemented.
- Linux uses a naming scheme of "sg[a-z]" for devices, while FreeBSD uses a
scheme of "sg[0-9]". Devfs aliasis (symlinks) are automatically created
to link the two together. However, tools like camcontrol only see the
native names.
- Some operations were originally designed to return byte counts or other
data directly as the syscall return value. The linuxolator doesn't appear
to support this well, so this driver just punts for these cases.
Now that the driver is in place, others are welcome to add missing
functionality. Thanks to Roman Divacky for pushing this work along.
2007-04-07 19:40:58 +00:00
Dag-Erling Smørgrav
48be553b82
Build ZFS on amd64 and pc98.
...
Approved by: pjd@
2007-04-07 19:12:10 +00:00
Dag-Erling Smørgrav
29665eac3f
Fix some type mismatches.
...
Reviewed by: pjd@
2007-04-07 19:11:41 +00:00
Pawel Jakub Dawidek
639fdcd852
Allow to tune maximum and minimum memory used by ARC.
2007-04-07 19:10:50 +00:00
Pawel Jakub Dawidek
2b6271b7f2
Hide SEEK_DATA and SEEK_HOLE under __BSD_VISIBLE.
...
Suggested by: ache
2007-04-07 18:31:40 +00:00
Matt Jacob
7b88fb86e3
Hide bus reset announcements within bootverbose.
...
MFC after: 3 days
2007-04-07 18:15:52 +00:00
Pawel Jakub Dawidek
f3fdfb670c
- Remove SEEK_DATA and SEEK_HOLE from stdio.h, they don't belong here.
...
- Only define SEEK_DATA and SEEK_HOLE in sys/unistd.h when neither
_POSIX_SOURCE nor _XOPEN_SOURCE is defined.
Pointed out by: bde, ache
2007-04-07 16:02:30 +00:00
Yoshihiro Takahashi
55ccb0b485
Fix build.
2007-04-07 13:37:45 +00:00
Pawel Jakub Dawidek
a583dae953
Add missing mutex_init() which was causing assertion panic when on clone
...
destruction.
Reported by: kris
2007-04-07 11:04:37 +00:00
Paolo Pisati
c326cd0e62
Prevent the usage of an uninitialized variable: do not accept
...
StartMediaTx message before an OpnRcvChnAck message was received.
Reviewed by: glebius
Approved by: glebius (mentor)
MFC after: 3 days
Found with: Coverity Prevent(tm)
CID: 498
2007-04-07 09:52:36 +00:00
Paolo Pisati
f4296f2246
Silence Coverity about an unused variable.
...
Reviewed by: glebius
Approved by: glebius (mentor)
MFC after: 3 days
CID: 538
2007-04-07 09:47:39 +00:00
KATO Takenori
f2a081cfe4
Added the IPLware 3.33 support.
...
- Added magic numbers to pretend the NEC original program version
2.70.
- Added string display routine with Shift-JIS code support.
- Added three nop instructions at start1 in start.s since the
installaer of the IPLware put 'call $0x09ab' instruction.
- Put the near return instruction at 0x9ab in selector.s.
Since the Shit-JIS display routine must be located at 0x1243, the
linker script file (ldscript) is applied.
2007-04-07 08:37:04 +00:00
Kip Macy
d330ae533a
back out last change
...
Requested by: ru
2007-04-07 05:09:40 +00:00
Hidetoshi Shimokawa
54911451d5
Fix a bug for over 4GB media.
...
MFC after: 3 days
2007-04-07 02:52:13 +00:00
Robert Watson
7b20aa9ca6
Remove XXX comment that changes to file fields should be protected with
...
the file lock rather than the filedesc lock: I fixed this in the last
revision.
Spotted by: kris
2007-04-06 23:31:30 +00:00
Alexander Kabaev
7d80a3b493
pc98 boot2 is compiled with _KERNEL defined, and that makes non-static
...
bootinfo variable declaration visible. It conflicts with static
declaration in this file. Declare variable as globally visible in
order to resolve the conflict.
2007-04-06 20:50:24 +00:00
Jung-uk Kim
6e612eca81
Fix kernel module dependency. linprocfs depends on sysvmsg and sysvsem.
...
Submitted by: nork
2007-04-06 18:15:56 +00:00
Ruslan Ermilov
2e137367b4
Add the PG_NX support for i386/PAE.
...
Reviewed by: alc
2007-04-06 18:15:03 +00:00