CVS log for src/sys/dev/vnd.c
Up to [cvs.NetBSD.org] / src / sys / dev
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.289.6.2: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:21:46 2026 UTC (11 days, 5 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.289.6.1: preferred, colored; branchpoint 1.289: preferred, colored; next MAIN 1.290: preferred, colored
Changes since revision 1.289.6.1: +5 -4
lines
Sync with HEAD
Revision 1.292: download - view: text, markup, annotated - select for diffs
Sun May 3 16:02:35 2026 UTC (6 months, 2 weeks ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
HEAD
Diff to: previous 1.291: preferred, colored
Changes since revision 1.291: +4 -3
lines
Introduce a new function, uvm_lwp_is_pagedaemon(), which returns true
if the specified LWP is the pagedaemon LWP. This test is inline for
the kernel proper, and directed to a function for modules. This, in turn,
allows us to hide "struct uvm_cpu" and "struct uvm" from modules, as
these have arrays in them that are not a consistent size certainly across
$MACHINEs within a given $MACHINE_ARCH, and may not necessarily even be
consistent within a given $MACHINE.
NetBSD -> 11.99.6 because new symbol referenced by modules.
Revision 1.291: download - view: text, markup, annotated - select for diffs
Sun Sep 7 21:31:21 2025 UTC (14 months, 1 week ago) by andvar
Branches: MAIN
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +3 -3
lines
Fix various typos, mainly in comments.
Revision 1.289.6.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:56:30 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +5 -2
lines
Sync with HEAD
Revision 1.287.4.3: download - view: text, markup, annotated - select for diffs
Thu Sep 12 20:07:05 2024 UTC (2 years, 2 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE
Diff to: previous 1.287.4.2: preferred, colored; branchpoint 1.287: preferred, colored; next MAIN 1.288: preferred, colored
Changes since revision 1.287.4.2: +5 -2
lines
Pull up following revision(s) (requested by rin in ticket #851):
sys/dev/vnd.c: revision 1.290
Avoid division by zero when the backing file is revoked (e.g. from
umount -f).
Revision 1.290: download - view: text, markup, annotated - select for diffs
Thu Aug 15 21:08:20 2024 UTC (2 years, 3 months ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20250801,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +5 -2
lines
Avoid division by zero when the backing file is revoked (e.g. from umount -f).
Revision 1.272.4.2: download - view: text, markup, annotated - select for diffs
Mon Aug 21 10:57:07 2023 UTC (3 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE
Diff to: previous 1.272.4.1: preferred, colored; branchpoint 1.272: preferred, colored; next MAIN 1.273: preferred, colored
Changes since revision 1.272.4.1: +5 -3
lines
Pull up following revision(s) (requested by riastradh in ticket #1716):
sys/dev/vnd.c: revision 1.289
Neither limit the number of requests for the page daemon.
Otherwise you may deadlock when the backend needs to allocate
memory and the page daemon needs to flush dirty vnd buffers.
See PR 57421 for details.
Revision 1.287.4.2: download - view: text, markup, annotated - select for diffs
Thu Aug 17 10:00:01 2023 UTC (3 years, 3 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1
Diff to: previous 1.287.4.1: preferred, colored; branchpoint 1.287: preferred, colored
Changes since revision 1.287.4.1: +5 -3
lines
Pull up following revision(s) (requested by riastradh in ticket #330):
sys/dev/vnd.c: revision 1.289
Neither limit the number of requests for the page daemon.
Otherwise you may deadlock when the backend needs to allocate
memory and the page daemon needs to flush dirty vnd buffers.
See PR 57421 for details.
Revision 1.289: download - view: text, markup, annotated - select for diffs
Fri May 19 15:42:43 2023 UTC (3 years, 5 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +5 -3
lines
Neither limit the number of requests for the page daemon.
Otherwise you may deadlock when the backend needs to allocate
memory and the page daemon needs to flush dirty vnd buffers.
See PR 57421 for details.
Revision 1.287.4.1: download - view: text, markup, annotated - select for diffs
Thu Mar 16 07:19:51 2023 UTC (3 years, 8 months ago) by martin
Branches: netbsd-10
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +14 -8
lines
Pull up following revision(s) (requested by hannken in ticket #121):
sys/dev/vnd.c: revision 1.288
Do not limit the number of pending requests for the worker thread.
With wedge on vnd it prevents a deadlock when requests get queued with
biodone() -> dkstart() -> vndstrategy().
Fixes PR kern/57263 "vnd locks up when using vn_rdwr"
Revision 1.272.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 15 18:43:28 2023 UTC (3 years, 8 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +14 -8
lines
Pull up following revision(s) (requested by hannken in ticket #1614):
sys/dev/vnd.c: revision 1.288
Do not limit the number of pending requests for the worker thread.
With wedge on vnd it prevents a deadlock when requests get queued with
biodone() -> dkstart() -> vndstrategy().
Fixes PR kern/57263 "vnd locks up when using vn_rdwr"
Revision 1.288: download - view: text, markup, annotated - select for diffs
Tue Mar 14 12:55:43 2023 UTC (3 years, 8 months ago) by hannken
Branches: MAIN
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +14 -8
lines
Do not limit the number of pending requests for the worker thread.
With wedge on vnd it prevents a deadlock when requests get queued with
biodone() -> dkstart() -> vndstrategy().
Fixes PR kern/57263 "vnd locks up when using vn_rdwr"
Revision 1.287: download - view: text, markup, annotated - select for diffs
Sun Sep 4 21:56:38 2022 UTC (4 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: netbsd-10-base,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +2 -7
lines
revert 1.281
VNDIOCLR requires write access to unconfigure a unit, even when the unit
is read-only.
Revision 1.286: download - view: text, markup, annotated - select for diffs
Tue May 31 14:13:31 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +5 -4
lines
vnd(4): Work around deadlock in VNDIOCCLR.
Since the changes this year to eliminate a host of races and
deadlocks in open, close, revoke, attach, and detach, closing the
last instance of a device special node has the side effect of waiting
for all concurrent I/O operations (read, write, ioctl, strategy, &c.)
on the device to complete.
Unfortunately, while this works for physical devices which revoke
open device nodes in their autoconf detach functions, as invoked by
some hardware interrupt indicating that the device is no longer
present, pseudo-devices like vnd(4) work differently -- or, work by
luck, or don't work any more.
VNDIOCCLR acts kind of like an autoconf detach function in that it
revokes open device nodes, which closes the last instance. But
VNDIOCCLR is itself called via ioctl, which is an I/O operation that
close waits for. So we end up with a deadlock, spec_io_drain waiting
for spec_close lower down in the call stack:
> spec_io_drain() at netbsd:spec_io_drain+0x84
> spec_close() at netbsd:spec_close+0x1c6
> VOP_CLOSE() at netbsd:VOP_CLOSE+0x38
> spec_node_revoke() at netbsd:spec_node_revoke+0x14d
> vcache_reclaim() at netbsd:vcache_reclaim+0x4e7
> vgone() at netbsd:vgone+0xcd
> vrevoke() at netbsd:vrevoke+0xfa
> genfs_revoke() at netbsd:genfs_revoke+0x13
> VOP_REVOKE() at netbsd:VOP_REVOKE+0x35
> vdevgone() at netbsd:vdevgone+0x64
> vnddoclear.part.0() at netbsd:vnddoclear.part.0+0xaa
> vndioctl() at netbsd:vndioctl+0x78c
> bdev_ioctl() at netbsd:bdev_ioctl+0x91
> spec_ioctl() at netbsd:spec_ioctl+0xa5
> VOP_IOCTL() at netbsd:VOP_IOCTL+0x41
> vn_ioctl() at netbsd:vn_ioctl+0xb3
> sys_ioctl() at netbsd:sys_ioctl+0x555
In the past, there was a workaround for what was presumably a crash
instead of a deadlock here: don't issue revoke (vdevgone) on the open
character devices for the minor number in use by the ioctl. If you
use, e.g., `vnconfig -u vnd0', and vnconfig(8) picks /dev/rvnd0c or
/dev/rvnd0d, that special case kicks in. But if you use `vnconfig -u
/dev/vnd0d', the ioctl will be issued on the block device instead, so
the special case doesn't kick in, so the operation deadlocks.
It is actually probably safe not to revoke the block device if what
the ioctl caller holds open is that, because specfs(9) forbids more
than one open of a block device, so nothing else can have it open
anyway.
Unclear what the consequences of failing to revoke the character
device are -- but this is what vnd(4) has done all along. cgd(4) and
ccd(4) also don't bother to revoke. We don't have a notion of
`revoke every file descriptor _except_ this one'; only a vnode as a
whole can be revoked, including all references to it.
This is a stop-gap measure to avoid a deadlock we are definitely
hitting on some users. A slightly better measure would be to revoke
the block or character device according to which one is being used,
but that requires a little more work with two different d_ioctl
functions -- and wouldn't address isues with the character device. A
proper solution requires identifying the appropriate protocol for all
of these pseudo-device disk drivers and using it uniformly for them.
Reported on current-users:
https://mail-index.netbsd.org/current-users/2022/05/27/msg042437.html
Revision 1.285: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:30:15 2022 UTC (4 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +25 -31
lines
For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence. This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:
devsw_attach()
config_init_component() or config_cf*_attach()
...
config_fini_component() or config_cf*_detach()
devsw_detach()
While here, add a few missing calls to some of the detach
routines.
Testing of these changes has been limited to:
1. compile without build break
2. no related test failures from atf
3. modload/modunload work as well as
before.
No functional device testing done, since I don't have any
of these devices. Let me know of any damage I might cause
here!
XXX Some of the modules affected by this commit are already
XXX broken; see kern/56772. This commit does not break
any additional modules (as far as I know).
Revision 1.284: download - view: text, markup, annotated - select for diffs
Mon Mar 28 11:16:59 2022 UTC (4 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +11 -25
lines
Check INITED state by default for all ioctls but VNDIOCSET. Avoids crashes
with disk_ioctls on default unit, which is not INITED.
Fixes PR 56700.
Revision 1.280.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:21 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.280.2.1: preferred, colored; branchpoint 1.280: preferred, colored; next MAIN 1.281: preferred, colored
Changes since revision 1.280.2.1: +22 -22
lines
Sync with HEAD.
Revision 1.283: download - view: text, markup, annotated - select for diffs
Sat Jul 24 21:31:36 2021 UTC (5 years, 3 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +3 -3
lines
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.
Revision 1.282: download - view: text, markup, annotated - select for diffs
Tue Jun 29 22:40:53 2021 UTC (5 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +21 -21
lines
Add containment for the cloning devices hack in vn_open.
Cloning devices (and also things like /dev/stderr) work by allocating
a struct file, stuffing it in the file table (which is a layer
violation), stuffing the file descriptor number for it in a magic
field of struct lwp (which is gross), and then "failing" with one of
two magic errnos, EDUPFD or EMOVEFD.
Before this commit, all callers of vn_open in the kernel (there are
quite a few) were expected to check for these errors and handle the
situation. Needless to say, none of them except for open() itself did,
resulting in internal negative errnos being returned to userspace.
This hack is fairly deeply rooted and cannot be eliminated all at
once. This commit adds logic to handle the magic errnos inside
vn_open; now on success vn_open returns either a vnode or an integer
file descriptor, along with a flag that says whether the underlying
code requested EDUPFD or EMOVEFD. Callers not prepared to cope with
file descriptors can pass NULL for the extra return values, in which
case if a file descriptor would be produced vn_open fails with
EOPNOTSUPP.
Since I'm rearranging vn_open's signature anyway, stop exposing struct
nameidata. Instead, take three arguments: an optional vnode to use as
the starting point (like openat()), the path, and additional namei
flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei
behavior, e.g. NOFOLLOW, can be requested via the open flags.)
This change requires a kernel bump. Ride the one an hour ago.
(That was supposed to be coordinated; did not intend to let an hour
slip by. My fault.)
Revision 1.280.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:27 2021 UTC (5 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +7 -2
lines
Sync w/ HEAD.
Revision 1.281: download - view: text, markup, annotated - select for diffs
Sun Jun 13 10:01:43 2021 UTC (5 years, 5 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +7 -2
lines
Fail to open read-write when created read-only.
Revision 1.278.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 17 17:26:18 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.278: preferred, colored; next MAIN 1.279: preferred, colored
Changes since revision 1.278: +9 -4
lines
Sync with HEAD.
Revision 1.280: download - view: text, markup, annotated - select for diffs
Sun Apr 11 18:18:39 2021 UTC (5 years, 7 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-cfargs-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +4 -0
lines
Provide a default preferred I/O size.
Revision 1.279: download - view: text, markup, annotated - select for diffs
Sun Apr 11 18:17:22 2021 UTC (5 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +5 -4
lines
Don't truncate disk size to full cylinders.
Revision 1.277.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:43 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.277: preferred, colored; next MAIN 1.278: preferred, colored
Changes since revision 1.277: +5 -4
lines
Sync with HEAD.
Revision 1.278: download - view: text, markup, annotated - select for diffs
Mon Jan 4 16:17:26 2021 UTC (5 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-futex-base
Branch point for: thorpej-cfargs
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +5 -4
lines
Fix calculation of cylinder count from medium size.
Pullups needed.
Revision 1.274.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 25 11:23:58 2020 UTC (6 years, 6 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.274.4.1: preferred, colored; branchpoint 1.274: preferred, colored; next MAIN 1.275: preferred, colored
Changes since revision 1.274.4.1: +3 -3
lines
Sync with bouyer-xenpvh-base2 (HEAD)
Revision 1.277: download - view: text, markup, annotated - select for diffs
Thu Apr 23 09:40:08 2020 UTC (6 years, 6 months ago) by jdolecek
Branches: MAIN
CVS tags: bouyer-xenpvh-base2
Branch point for: thorpej-futex
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +3 -3
lines
pass b_flags B_PHYS and B_RAW when setting up the buf for underlying device
should fix misfired KASSERT() in xbd(4)
Revision 1.263.4.4: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:14 2020 UTC (6 years, 6 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.263.4.3: preferred, colored; branchpoint 1.263: preferred, colored; next MAIN 1.264: preferred, colored
Changes since revision 1.263.4.3: +3 -3
lines
Sync with HEAD
Revision 1.274.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:02 2020 UTC (6 years, 6 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +25 -5
lines
Sync with HEAD
Revision 1.276: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:02 2020 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20200421,
bouyer-xenpvh-base1
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +5 -5
lines
constify
Revision 1.263.4.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:18 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.263.4.2: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.4.2: +20 -0
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.275: download - view: text, markup, annotated - select for diffs
Fri Apr 10 10:53:02 2020 UTC (6 years, 7 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-20200411
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +22 -2
lines
add support for DIOCGSTRATEGY and DIOCGCACHE
only allow DIOCCACHESYNC if open for writing, same as everything supporting
DIOCCACHESYNC
Revision 1.263.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:02 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.263.4.1: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.4.1: +11 -7
lines
Merge changes from current as of 20200406
Revision 1.272.6.2: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:06 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.272.6.1: preferred, colored; branchpoint 1.272: preferred, colored; next MAIN 1.273: preferred, colored
Changes since revision 1.272.6.1: +9 -7
lines
Sync with head.
Revision 1.274: download - view: text, markup, annotated - select for diffs
Sun Feb 23 15:46:39 2020 UTC (6 years, 8 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base,
ad-namecache-base3
Branch point for: bouyer-xenpvh
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +9 -7
lines
UVM locking changes, proposed on tech-kern:
- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart. v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap. Others to follow later.
Revision 1.272.6.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:30 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +4 -2
lines
Sync with head.
Revision 1.273: download - view: text, markup, annotated - select for diffs
Fri Jan 17 19:31:30 2020 UTC (6 years, 10 months ago) by ad
Branches: MAIN
CVS tags: ad-namecache-base2,
ad-namecache-base1
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +4 -2
lines
Acquire kernel_lock in the bp->b_iodone callback.
Revision 1.263.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:04 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +81 -53
lines
Sync with HEAD
Revision 1.272: download - view: text, markup, annotated - select for diffs
Fri Mar 1 11:06:56 2019 UTC (7 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
isaki-audio2-base,
isaki-audio2,
ad-namecache-base
Branch point for: netbsd-9,
ad-namecache
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +4 -4
lines
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.
NFCI intended.
Ride the earlier kernel bump - it;s getting crowded.
Revision 1.271: download - view: text, markup, annotated - select for diffs
Sun Jan 27 02:08:41 2019 UTC (7 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +36 -39
lines
Merge the [pgoyette-compat] branch
Revision 1.263.2.14: download - view: text, markup, annotated - select for diffs
Tue Jan 22 07:42:40 2019 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.263.2.13: preferred, colored; branchpoint 1.263: preferred, colored; next MAIN 1.264: preferred, colored
Changes since revision 1.263.2.13: +8 -24
lines
Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function. Almost
all of the hooks are called only once, and although we lose the
ability of doing things like
if (MODULE_HOOK_CALL(...) == 0) ...
we simplify things quite a bit. With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.
FWIW, the above if now needs to written as
int ret;
MODULE_HOOK_CALL(..., ret);
if (ret == 0) ...
with appropriate use of braces {}.
Revision 1.263.2.13: download - view: text, markup, annotated - select for diffs
Fri Jan 18 00:01:01 2019 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.12: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.12: +6 -6
lines
Don't restrict hooks to having only int or void types. Pass the hook's
type to the various macros, as needed.
Allows us to reduce diffs to original in at least one or two places (we
no longer have to provide an additional parameter to the hook routine
for returning a non-int return value).
Revision 1.263.2.12: download - view: text, markup, annotated - select for diffs
Mon Jan 14 13:34:27 2019 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.11: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.11: +6 -6
lines
Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.
Revision 1.263.2.11: download - view: text, markup, annotated - select for diffs
Sun Jan 13 10:49:50 2019 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.10: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.10: +8 -8
lines
Remove the HOOK2 versions of the MODULE_HOOK macros. There were
only a few uses, and using them led to some lack of clarity in the
code. Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.
This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.
Revision 1.263.2.10: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:47 2018 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.9: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.9: +7 -7
lines
Sync with HEAD, resolve a few conflicts
Revision 1.259.6.5: download - view: text, markup, annotated - select for diffs
Mon Dec 10 17:16:11 2018 UTC (7 years, 11 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.259.6.4: preferred, colored; branchpoint 1.259: preferred, colored; next MAIN 1.260: preferred, colored
Changes since revision 1.259.6.4: +7 -7
lines
Pull up following revision(s) (requested by hannken in ticket #1133):
sys/dev/vnd.c: revision 1.270
Operation handle_with_strategy() also needs the
fstrans_start_lazy() / fstrans_done() bracket.
PR kern/53624 (dom0 freeze on domU exit)
Revision 1.270: download - view: text, markup, annotated - select for diffs
Mon Dec 10 15:22:35 2018 UTC (7 years, 11 months ago) by hannken
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +7 -7
lines
Operation handle_with_strategy() also needs the
fstrans_start_lazy() / fstrans_done() bracket.
PR kern/53624 (dom0 freeze on domU exit)
Revision 1.263.2.9: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:30 2018 UTC (8 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.8: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.8: +33 -7
lines
Sync with head
Revision 1.259.6.4: download - view: text, markup, annotated - select for diffs
Sat Oct 13 17:21:51 2018 UTC (8 years, 1 month ago) by martin
Branches: netbsd-8
Diff to: previous 1.259.6.3: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.6.3: +15 -10
lines
Pull up following revision(s) (requested by mlelstv in ticket #1059):
sys/dev/vnd.c: revision 1.265
sys/dev/vndvar.h: revision 1.37
getdisksize only operates on device vnodes. Use the ioctl on the underlying
device instead.
Revision 1.259.6.3: download - view: text, markup, annotated - select for diffs
Sat Oct 13 17:19:05 2018 UTC (8 years, 1 month ago) by martin
Branches: netbsd-8
Diff to: previous 1.259.6.2: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.6.2: +10 -3
lines
Pull up following revision(s) (requested by mlelstv in ticket #1058):
sys/dev/vnd.c: revision 1.268
Calculate a missing cylinder count in the geometry spec from image size.
Revision 1.259.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 09:58:09 2018 UTC (8 years, 1 month ago) by martin
Branches: netbsd-8
Diff to: previous 1.259.6.1: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.6.1: +8 -2
lines
Pull up following revision(s) (requested by hannken in ticket #1052):
sys/kern/vfs_trans.c: revision 1.51
distrib/sets/lists/comp/mi: revision 1.2233
share/man/man9/fstrans.9: revision 1.27
share/man/man9/Makefile: revision 1.431
sys/sys/fstrans.h: revision 1.12
sys/rump/librump/rumpkern/emul.c: revision 1.187
sys/dev/vnd.c: revision 1.266
sys/miscfs/genfs/genfs_vfsops.c: revision 1.8
Bring back three state file system suspension:
NORMAL -> SUSPENDING -> SUSPENDED
and add operation fstrans_start_lazy() that only blocks while SUSPENDED.
Change vndthread() support operation handle_with_rdwr() to bracket
its file system operations by fstrans_start_lazy() and fstrans_done().
PR kern/53624 (dom0 freeze on domU exit)
Revision 1.269: download - view: text, markup, annotated - select for diffs
Sun Oct 7 12:00:07 2018 UTC (8 years, 1 month ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-compat-1126,
pgoyette-compat-1020
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +14 -3
lines
Use IO_DIRECT for file I/O to reduce buffer cache contention.
Restore old behaviour to flush pages only when usage exceeds 1MB.
No longer use PGO_SYNCIO, regular writes to the device do not require
the data to reach stable storage, the DIOCCACHESYNC ioctl is used
for that.
Revision 1.268: download - view: text, markup, annotated - select for diffs
Sun Oct 7 11:54:14 2018 UTC (8 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +8 -1
lines
Calculate a missing cylinder count in the geometry spec from image size.
Revision 1.267: download - view: text, markup, annotated - select for diffs
Sun Oct 7 11:51:26 2018 UTC (8 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +5 -3
lines
Add flag to enforce file I/O even when bmap/strategy would be possible.
This makes it easier to compare both modes, it also allows coherent
operation between vnd device and image file.
Revision 1.266: download - view: text, markup, annotated - select for diffs
Fri Oct 5 09:51:55 2018 UTC (8 years, 1 month ago) by hannken
Branches: MAIN
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +8 -2
lines
Bring back three state file system suspension:
NORMAL -> SUSPENDING -> SUSPENDED
and add operation fstrans_start_lazy() that only blocks while SUSPENDED.
Change vndthread() support operation handle_with_rdwr() to bracket
its file system operations by fstrans_start_lazy() and fstrans_done().
PR kern/53624 (dom0 freeze on domU exit)
Revision 1.263.2.8: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:49 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.7: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.7: +15 -10
lines
Ssync with HEAD
Revision 1.263.2.7: download - view: text, markup, annotated - select for diffs
Sat Sep 29 21:36:14 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.6: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.6: +4 -8
lines
In MODULE_HOOK_CALL_DECL we don't need to provide the actual argument
list for calling the hook function, nor do we need to provide the
default value (for when the hook has not been set).
Revision 1.265: download - view: text, markup, annotated - select for diffs
Thu Sep 20 07:18:38 2018 UTC (8 years, 1 month ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-compat-0930
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +15 -10
lines
getdisksize only operates on device vnodes. Use the ioctl on the underlying
device instead.
Revision 1.263.2.6: download - view: text, markup, annotated - select for diffs
Wed Sep 19 04:12:43 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.5: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.5: +43 -33
lines
Split out the vnd COMPAT_50 code
Revision 1.263.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 18 23:03:54 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.4: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.4: +4 -4
lines
The COMPAT_HOOK macros were renamed to MODULE_HOOK, adjust all callers
Revision 1.263.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 18 01:15:57 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.3: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.3: +7 -2
lines
Split the COMPAT_CALL_HOOK to separate the declaration from the
implementation. Some hooks are called from multiple source files,
and the old method resulted in duplicate implementations.
Implement MP-safe hooks for the usb_subr_30 code. Pass the helper
functions as arguments to the compat code so it does not have to
determine if the kernel contains usb code.
Revision 1.263.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 17 11:04:30 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.2: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.2: +14 -8
lines
Adapt (most of) the indirect function pointers to the new MP-safe
mechanism. Still remaining are the compat_netbsd32 stuff, and
some usb subroutines.
Revision 1.263.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:48 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263.2.1: preferred, colored; branchpoint 1.263: preferred, colored
Changes since revision 1.263.2.1: +3 -3
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.264: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:30 2018 UTC (8 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-0906
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +3 -3
lines
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.
To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
Revision 1.263.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 28 07:51:09 2018 UTC (8 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +10 -14
lines
Split vnd compat_30 code out of the main driver and into the compat_30
module
Revision 1.221.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.221.2.2: preferred, colored; branchpoint 1.221: preferred, colored; next MAIN 1.222: preferred, colored
Changes since revision 1.221.2.2: +280 -209
lines
update from HEAD
Revision 1.263: download - view: text, markup, annotated - select for diffs
Sat Oct 28 03:47:24 2017 UTC (9 years ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
phil-wifi-base,
pgoyette-compat-base,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi,
pgoyette-compat
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +2 -3
lines
Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".
Revision 1.234.2.6: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:00 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.234.2.5: preferred, colored; branchpoint 1.234: preferred, colored; next MAIN 1.235: preferred, colored
Changes since revision 1.234.2.5: +61 -24
lines
Sync with HEAD
Revision 1.232.2.5: download - view: text, markup, annotated - select for diffs
Sat Aug 19 05:19:31 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.232.2.4: preferred, colored; branchpoint 1.232: preferred, colored; next MAIN 1.233: preferred, colored
Changes since revision 1.232.2.4: +32 -5
lines
Pull up following revision(s) (requested by mrg in ticket #1476):
sys/dev/vnd.c: revision 1.260, 1.262 via patch
Put in a litany of judicious bounds checks around vnd headers.
Thought I was done with this crap after I rewrote vndcompress(1)!
From Ilja Van Sprundel.
--
Appease toxic bullshit warning from gcc.
If you have a better way to write a useful bounds check that happens
to always pass on LP64 but doesn't always on LP32, without making it
fail to compile on LP64 or making it an #ifdef conditional on LP32,
please put it in here instead.
Revision 1.232.2.4.4.1: download - view: text, markup, annotated - select for diffs
Sat Aug 19 05:19:30 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-7-1
CVS tags: netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE
Diff to: previous 1.232.2.4: preferred, colored; next MAIN 1.232.2.5: preferred, colored
Changes since revision 1.232.2.4: +32 -5
lines
Pull up following revision(s) (requested by mrg in ticket #1476):
sys/dev/vnd.c: revision 1.260, 1.262 via patch
Put in a litany of judicious bounds checks around vnd headers.
Thought I was done with this crap after I rewrote vndcompress(1)!
From Ilja Van Sprundel.
--
Appease toxic bullshit warning from gcc.
If you have a better way to write a useful bounds check that happens
to always pass on LP64 but doesn't always on LP32, without making it
fail to compile on LP64 or making it an #ifdef conditional on LP32,
please put it in here instead.
Revision 1.232.2.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 19 05:19:28 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-7-0
Diff to: previous 1.232.2.3.2.1: preferred, colored; branchpoint 1.232.2.3: preferred, colored; next MAIN 1.232.2.4: preferred, colored
Changes since revision 1.232.2.3.2.1: +32 -5
lines
Pull up following revision(s) (requested by mrg in ticket #1476):
sys/dev/vnd.c: revision 1.260, 1.262 via patch
Put in a litany of judicious bounds checks around vnd headers.
Thought I was done with this crap after I rewrote vndcompress(1)!
From Ilja Van Sprundel.
--
Appease toxic bullshit warning from gcc.
If you have a better way to write a useful bounds check that happens
to always pass on LP64 but doesn't always on LP32, without making it
fail to compile on LP64 or making it an #ifdef conditional on LP32,
please put it in here instead.
Revision 1.219.8.4: download - view: text, markup, annotated - select for diffs
Sat Aug 19 03:50:00 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.219.8.3: preferred, colored; branchpoint 1.219: preferred, colored; next MAIN 1.220: preferred, colored
Changes since revision 1.219.8.3: +32 -5
lines
Pull up following revision(s) (requested by mrg in ticket #1480):
sys/dev/vnd.c: 1.260, 1.262 via patch
Put in a litany of judicious bounds checks around vnd headers.
Thought I was done with this crap after I rewrote vndcompress(1)!
From Ilja Van Sprundel.
--
Appease toxic bullshit warning from gcc.
If you have a better way to write a useful bounds check that happens
to always pass on LP64 but doesn't always on LP32, without making it
fail to compile on LP64 or making it an #ifdef conditional on LP32,
please put it in here instead.
Revision 1.219.8.2.6.1: download - view: text, markup, annotated - select for diffs
Sat Aug 19 03:49:59 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-6-1
Diff to: previous 1.219.8.2: preferred, colored; next MAIN 1.219.8.3: preferred, colored
Changes since revision 1.219.8.2: +32 -5
lines
Pull up following revision(s) (requested by mrg in ticket #1480):
sys/dev/vnd.c: 1.260, 1.262 via patch
Put in a litany of judicious bounds checks around vnd headers.
Thought I was done with this crap after I rewrote vndcompress(1)!
From Ilja Van Sprundel.
--
Appease toxic bullshit warning from gcc.
If you have a better way to write a useful bounds check that happens
to always pass on LP64 but doesn't always on LP32, without making it
fail to compile on LP64 or making it an #ifdef conditional on LP32,
please put it in here instead.
Revision 1.219.8.2.4.1: download - view: text, markup, annotated - select for diffs
Sat Aug 19 03:49:57 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-6-0
Diff to: previous 1.219.8.2: preferred, colored; next MAIN 1.219.8.3: preferred, colored
Changes since revision 1.219.8.2: +32 -5
lines
Pull up following revision(s) (requested by mrg in ticket #1480):
sys/dev/vnd.c: 1.260, 1.262 via patch
Put in a litany of judicious bounds checks around vnd headers.
Thought I was done with this crap after I rewrote vndcompress(1)!
From Ilja Van Sprundel.
--
Appease toxic bullshit warning from gcc.
If you have a better way to write a useful bounds check that happens
to always pass on LP64 but doesn't always on LP32, without making it
fail to compile on LP64 or making it an #ifdef conditional on LP32,
please put it in here instead.
Revision 1.259.6.1: download - view: text, markup, annotated - select for diffs
Tue Aug 8 16:12:56 2017 UTC (9 years, 3 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +32 -5
lines
Pull up following revision(s) (requested by spz in ticket #190):
sys/dev/vnd.c: revision 1.260
sys/dev/vnd.c: revision 1.262
Put in a litany of judicious bounds checks around vnd headers.
Thought I was done with this crap after I rewrote vndcompress(1)!
From Ilja Van Sprundel.
Appease toxic bullshit warning from gcc.
If you have a better way to write a useful bounds check that happens
to always pass on LP64 but doesn't always on LP32, without making it
fail to compile on LP64 or making it an #ifdef conditional on LP32,
please put it in here instead.
Revision 1.262: download - view: text, markup, annotated - select for diffs
Fri Jul 28 16:30:41 2017 UTC (9 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +16 -5
lines
Appease toxic bullshit warning from gcc.
If you have a better way to write a useful bounds check that happens
to always pass on LP64 but doesn't always on LP32, without making it
fail to compile on LP64 or making it an #ifdef conditional on LP32,
please put it in here instead.
Revision 1.261: download - view: text, markup, annotated - select for diffs
Fri Jul 28 16:22:01 2017 UTC (9 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +25 -23
lines
Fix indentation. u_intN_t -> uintN_t. ntohl -> be32toh.
No functional change intended.
Revision 1.260: download - view: text, markup, annotated - select for diffs
Fri Jul 28 16:19:20 2017 UTC (9 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +21 -5
lines
Put in a litany of judicious bounds checks around vnd headers.
Thought I was done with this crap after I rewrote vndcompress(1)!
From Ilja Van Sprundel.
Revision 1.259.4.5: download - view: text, markup, annotated - select for diffs
Wed May 17 01:44:17 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.259.4.4: preferred, colored; branchpoint 1.259: preferred, colored; next MAIN 1.260: preferred, colored
Changes since revision 1.259.4.4: +2 -4
lines
At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.
Adapt callers to expect the reference to exist, and to ensure that the
reference is released.
Revision 1.259.4.4: download - view: text, markup, annotated - select for diffs
Sat Apr 29 10:50:46 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.259.4.3: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.4.3: +2 -3
lines
Remove explicit inclusion of <sys/localcount.h> since there is no
explicit usage of localcounts here. <sys/conf.h> will take care of
including as needed.
Revision 1.259.4.3: download - view: text, markup, annotated - select for diffs
Fri Apr 28 23:16:14 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.259.4.2: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.4.2: +3 -5
lines
Don't call device_release() from vnd_detach(). The caller (typically,
config_detach()) will take care of this. Without this fix, we end up
with a negative reference count, and panic.
Revision 1.259.4.2: download - view: text, markup, annotated - select for diffs
Fri Apr 28 06:00:33 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.259.4.1: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.4.1: +5 -6
lines
Introduce config_detach_release() which does all the work from the
former config_detach(). Now, config_detach() simply acquires a
reference to the device, which config_detach_release() can release!
This is needed because some drivers call config_detach() with a
reference, while other drivers have not been updated to use the
localcount reference mechanism. So we provide a shim to make
everyone equal.
Revision 1.259.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:35 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +154 -45
lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).
The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
Revision 1.256.2.14: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:10 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.13: preferred, colored; branchpoint 1.256: preferred, colored; next MAIN 1.257: preferred, colored
Changes since revision 1.256.2.13: +10 -2
lines
Sync with HEAD
Revision 1.258.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:44 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.258: preferred, colored; next MAIN 1.259: preferred, colored
Changes since revision 1.258: +10 -2
lines
Sync with HEAD
Revision 1.259: download - view: text, markup, annotated - select for diffs
Sat Mar 25 07:00:33 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
pgoyette-localcount-20170426,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: prg-localcount2,
netbsd-8
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +10 -2
lines
Don't display step-by-step detailed error messages unless DIAGNOSTIC.
Among other things, this avoids expected "error messages" when the
module is being auto-unloaded while one or more units are still in
use.
Revision 1.234.2.5: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:40 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.234.2.4: preferred, colored; branchpoint 1.234: preferred, colored
Changes since revision 1.234.2.4: +49 -18
lines
Sync with HEAD
Revision 1.256.2.13: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:07 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.12: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.12: +5 -5
lines
Sync with HEAD
Revision 1.258: download - view: text, markup, annotated - select for diffs
Fri Aug 5 08:21:24 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: MAIN
CVS tags: pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
localcount-20160914,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +5 -5
lines
Ignore return values when backing out of a "finish" sequence. There
really shouldn't be any errors here (we're just putting something back
that previously existed), and a panic() would be rather drastic.
Revision 1.256.2.12: download - view: text, markup, annotated - select for diffs
Thu Jul 28 01:44:55 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.11: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.11: +3 -3
lines
Don't try to call device_release() if we succesfully called vnd_destroy()
Revision 1.256.2.11: download - view: text, markup, annotated - select for diffs
Thu Jul 28 01:07:20 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.10: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.10: +4 -6
lines
Clean up the vnd_spawn() routine so it actually works. In particular,
it needs to return the new unit's sc _after_ acquiring a reference to
the unit.
Revision 1.256.2.10: download - view: text, markup, annotated - select for diffs
Wed Jul 27 23:17:31 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.9: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.9: +3 -3
lines
Return ENXIO if the device is NOT found, not when the device IS found!
Revision 1.256.2.9: download - view: text, markup, annotated - select for diffs
Wed Jul 27 11:51:57 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.8: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.8: +7 -2
lines
When detaching, call device_release() to allow the detach to complete.
Revision 1.256.2.8: download - view: text, markup, annotated - select for diffs
Wed Jul 27 11:23:32 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.7: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.7: +12 -3
lines
When we spawn a new unit, make sure we get a pointer to its device_t so
we have something to give device_release() when we're finished!
Also, add a call to device_release() in an error path.
Revision 1.256.2.7: download - view: text, markup, annotated - select for diffs
Tue Jul 26 05:54:39 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.6: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.6: +4 -4
lines
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT. This better describes
what we're doing, and why.
Revision 1.256.2.6: download - view: text, markup, annotated - select for diffs
Tue Jul 26 04:30:50 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.5: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.5: +11 -12
lines
Fix some sloppy typos
Revision 1.256.2.5: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:20 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.4: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.4: +95 -50
lines
Sync with HEAD
Revision 1.257: download - view: text, markup, annotated - select for diffs
Tue Jul 26 01:49:48 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: MAIN
CVS tags: pgoyette-localcount-20160726
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +49 -18
lines
When calling devsw_attach() we need to use the expected/official driver
name (as listed in the devsw_conv[] table) to get the expected device
majors. Once rump initialization is finished (ie, it has created its
required device nodes), we need to detach the [bc]devsw so the module
initialization code doesn't get EEXIST.
Revision 1.256.2.4: download - view: text, markup, annotated - select for diffs
Mon Jul 25 22:06:09 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.3: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.3: +118 -37
lines
Update vnd for using localcount(9)
Revision 1.256.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 19 06:26:58 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.2: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.2: +4 -12
lines
Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it. This also removes the need for defining new symbols
for each 'struct localcount'.
As suggested by riastradh@
Revision 1.256.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 18 21:18:49 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256.2.1: preferred, colored; branchpoint 1.256: preferred, colored
Changes since revision 1.256.2.1: +3 -3
lines
Another case of needing to use the two different localcount that were
allocated.
Revision 1.256.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 18 03:49:59 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +13 -2
lines
Rump drivers are always installed via devsw_attach() so we need to
always allocate a 'struct localcount' for these drivers whenever they
are built as modules.
Revision 1.232.2.3.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 2 14:38:45 2016 UTC (10 years, 10 months ago) by riz
Branches: netbsd-7-0
CVS tags: netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE
Diff to: previous 1.232.2.3: preferred, colored
Changes since revision 1.232.2.3: +67 -83
lines
Pull up following revision(s) (requested by manu in ticket #1038):
sys/dev/vnd.c: revision 1.252
sys/dev/vnd.c: revision 1.253
sys/dev/vnd.c: revision 1.254
sys/dev/vnd.c: revision 1.249
sys/sys/disk.h: revision 1.66
sys/dev/vnd.c: revision 1.250
sys/dev/vnd.c: revision 1.251
- Add DK_DEV_BSIZE_OK()
- Simplify ioctl handling a little.
- disable debugging
- Return ENXIO if the get ioctl exceeds the number of configured devices.
XXX: pullup-7
- explain why the int cast works (suggested by kre)
- fix incorrect memset.
- Use the new DK_DEV_BSIZE_OK() macro.
Revision 1.234.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:48 2015 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.234.2.3: preferred, colored; branchpoint 1.234: preferred, colored
Changes since revision 1.234.2.3: +94 -84
lines
Sync with HEAD (as of 26th Dec)
Revision 1.256: download - view: text, markup, annotated - select for diffs
Tue Dec 8 20:36:14 2015 UTC (10 years, 11 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226
Branch point for: pgoyette-localcount
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +3 -3
lines
Replace DIOCGPART -> DIOCGPARTINFO which returns the data needed instead of
pointers.
Revision 1.255: download - view: text, markup, annotated - select for diffs
Mon Nov 30 06:04:47 2015 UTC (10 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +28 -2
lines
Fall back to VOP_READ/VOP_WRITE if the simulated disk has smaller
sectors than the underlying filesystem and VOP_STRATEGY would fail.
Revision 1.232.2.4: download - view: text, markup, annotated - select for diffs
Wed Nov 18 08:48:46 2015 UTC (11 years ago) by msaitoh
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1
Branch point for: netbsd-7-1
Diff to: previous 1.232.2.3: preferred, colored; branchpoint 1.232: preferred, colored
Changes since revision 1.232.2.3: +67 -83
lines
Pull up following revision(s) (requested by manu in ticket #1038):
sys/dev/vnd.c: revision 1.252
sys/dev/vnd.c: revision 1.253
sys/dev/vnd.c: revision 1.254
sys/dev/vnd.c: revision 1.249
sys/sys/disk.h: revision 1.66
sys/dev/vnd.c: revision 1.250
sys/dev/vnd.c: revision 1.251
- Add DK_DEV_BSIZE_OK()
- Simplify ioctl handling a little.
- disable debugging
- Return ENXIO if the get ioctl exceeds the number of configured devices.
XXX: pullup-7
- explain why the int cast works (suggested by kre)
- fix incorrect memset.
- Use the new DK_DEV_BSIZE_OK() macro.
Revision 1.254: download - view: text, markup, annotated - select for diffs
Thu Nov 12 15:28:07 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +6 -10
lines
Use the new DK_DEV_BSIZE_OK() macro.
Revision 1.253: download - view: text, markup, annotated - select for diffs
Thu Nov 12 02:06:36 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +3 -3
lines
fix incorrect memset.
Revision 1.252: download - view: text, markup, annotated - select for diffs
Mon Nov 9 17:52:59 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +3 -2
lines
explain why the int cast works (suggested by kre)
Revision 1.251: download - view: text, markup, annotated - select for diffs
Mon Nov 9 17:41:24 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +3 -5
lines
Return ENXIO if the get ioctl exceeds the number of configured devices.
XXX: pullup-7
Revision 1.250: download - view: text, markup, annotated - select for diffs
Mon Nov 9 16:54:26 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +3 -4
lines
disable debugging
Revision 1.249: download - view: text, markup, annotated - select for diffs
Mon Nov 9 16:52:09 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +65 -75
lines
Simplify ioctl handling a little.
Revision 1.234.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:56 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.234.2.2: preferred, colored; branchpoint 1.234: preferred, colored
Changes since revision 1.234.2.2: +13 -6
lines
Sync with HEAD
Revision 1.248: download - view: text, markup, annotated - select for diffs
Thu Aug 20 14:40:17 2015 UTC (11 years, 2 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +4 -4
lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.
Revision 1.247: download - view: text, markup, annotated - select for diffs
Sun Aug 2 11:40:41 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +9 -2
lines
use dk_openlock when accessing openmask.
Revision 1.246: download - view: text, markup, annotated - select for diffs
Tue Jul 28 13:12:47 2015 UTC (11 years, 3 months ago) by prlw1
Branches: MAIN
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +4 -4
lines
Print vndattach error
Revision 1.234.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:06 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.234.2.1: preferred, colored; branchpoint 1.234: preferred, colored
Changes since revision 1.234.2.1: +36 -24
lines
Sync with HEAD
Revision 1.245: download - view: text, markup, annotated - select for diffs
Mon May 25 21:02:37 2015 UTC (11 years, 5 months ago) by prlw1
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +3 -3
lines
typo
Revision 1.244: download - view: text, markup, annotated - select for diffs
Mon May 25 20:57:18 2015 UTC (11 years, 5 months ago) by prlw1
Branches: MAIN
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +21 -21
lines
whitespace police
Revision 1.243: download - view: text, markup, annotated - select for diffs
Sun Apr 26 15:15:20 2015 UTC (11 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +6 -3
lines
Use C99-style initializers for struct dkdriver.
Revision 1.234.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:08 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +41 -76
lines
Sync with HEAD
Revision 1.242: download - view: text, markup, annotated - select for diffs
Mon Apr 6 12:02:08 2015 UTC (11 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +12 -3
lines
Make DIOCKLABEL work. Set default to keep the disklabel after close to
not change current behaviour.
Revision 1.187.4.7: download - view: text, markup, annotated - select for diffs
Wed Feb 4 04:31:41 2015 UTC (11 years, 9 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.187.4.6: preferred, colored; branchpoint 1.187: preferred, colored; next MAIN 1.188: preferred, colored
Changes since revision 1.187.4.6: +29 -12
lines
Pull up following revision(s) (requested by bouyer in ticket #1946):
sys/dev/vnd.c: revision 1.240, 1.241 via patch
As discussed in
http://mail-index.netbsd.org/tech-kern/2015/01/24/msg018339.html
don't bump v_numoutput if we need to vn_lock() the vnode before queuing
the corresponding I/O, because this may deadlock with genfs_do_putpages()
when called with the vnode locked (as can happen with fsync(2)).
Instead bump is just before the last VOP_STRATEGY(), or before calling
nestiobuf_done().
Thanks to Taylor R Campbell for review.
--
Fix typo in comment
Revision 1.219.8.3: download - view: text, markup, annotated - select for diffs
Wed Feb 4 04:18:23 2015 UTC (11 years, 9 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.219.8.2: preferred, colored; branchpoint 1.219: preferred, colored
Changes since revision 1.219.8.2: +29 -11
lines
Pull up following revision(s) (requested by bouyer in ticket #1242):
sys/dev/vnd.c: revision 1.240, 1.241
As discussed in
http://mail-index.netbsd.org/tech-kern/2015/01/24/msg018339.html
don't bump v_numoutput if we need to vn_lock() the vnode before queuing
the corresponding I/O, because this may deadlock with genfs_do_putpages()
when called with the vnode locked (as can happen with fsync(2)).
Instead bump is just before the last VOP_STRATEGY(), or before calling
nestiobuf_done().
Thanks to Taylor R Campbell for review.
--
Fix typo in comment
Revision 1.232.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 28 19:16:21 2015 UTC (11 years, 9 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1
Branch point for: netbsd-7-0
Diff to: previous 1.232.2.2: preferred, colored; branchpoint 1.232: preferred, colored
Changes since revision 1.232.2.2: +29 -11
lines
Pull up following revision(s) (requested by bouyer in ticket #468):
sys/dev/vnd.c: revision 1.240
sys/dev/vnd.c: revision 1.241
As discussed in
http://mail-index.netbsd.org/tech-kern/2015/01/24/msg018339.html
don't bump v_numoutput if we need to vn_lock() the vnode before queuing
the corresponding I/O, because this may deadlock with genfs_do_putpages()
when called with the vnode locked (as can happen with fsync(2)).
Instead bump is just before the last VOP_STRATEGY(), or before calling
nestiobuf_done().
Thanks to Taylor R Campbell for review.
Fix typo in comment
Revision 1.241: download - view: text, markup, annotated - select for diffs
Wed Jan 28 16:27:43 2015 UTC (11 years, 9 months ago) by bouyer
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +3 -3
lines
Fix typo in comment
Revision 1.240: download - view: text, markup, annotated - select for diffs
Wed Jan 28 15:08:12 2015 UTC (11 years, 9 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +29 -11
lines
As discussed in
http://mail-index.netbsd.org/tech-kern/2015/01/24/msg018339.html
don't bump v_numoutput if we need to vn_lock() the vnode before queuing
the corresponding I/O, because this may deadlock with genfs_do_putpages()
when called with the vnode locked (as can happen with fsync(2)).
Instead bump is just before the last VOP_STRATEGY(), or before calling
nestiobuf_done().
Thanks to Taylor R Campbell for review.
Revision 1.239: download - view: text, markup, annotated - select for diffs
Fri Jan 2 19:42:06 2015 UTC (11 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +3 -3
lines
We have three sets of DTYPE_ constants in the kernel:
altq Drop Type
disklabel Disk Type
file Descriptor Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
Revision 1.238: download - view: text, markup, annotated - select for diffs
Wed Dec 31 19:52:05 2014 UTC (11 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +7 -25
lines
make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.
Revision 1.237: download - view: text, markup, annotated - select for diffs
Wed Dec 31 17:06:48 2014 UTC (11 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +2 -38
lines
Centralize wedge ioctls in disk_ioctl.
Revision 1.236: download - view: text, markup, annotated - select for diffs
Wed Dec 31 08:24:50 2014 UTC (11 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +0 -1
lines
disk_blocksize and disk_set_info relay the same information
to the disk subsystem.
Make disk_set_info also set blocksize shift values.
Remove every call to disk_blocksize.
Keep disk_blocksize for ABI compatibility, make it also set dg_secsize.
Revision 1.235: download - view: text, markup, annotated - select for diffs
Mon Dec 29 13:13:20 2014 UTC (11 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +8 -6
lines
Fix default label for non-standard sector size.
Avoid integer overflow in sanity check.
Revision 1.232.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 11 10:42:22 2014 UTC (12 years ago) by martin
Branches: netbsd-7
Diff to: previous 1.232.2.1: preferred, colored; branchpoint 1.232: preferred, colored
Changes since revision 1.232.2.1: +6 -3
lines
Pull up following revision(s) (requested by mlelstv in ticket #202):
sys/dev/ccd.c: revision 1.153
sys/dev/ccd.c: revision 1.154
sys/dev/raidframe/rf_netbsdkintf.c: revision 1.313
sys/dev/raidframe/rf_netbsdkintf.c: revision 1.314
sys/dev/ld.c: revision 1.77
sys/dev/vnd.c: revision 1.233
sys/dev/dksubr.c: revision 1.52
sys/dev/dksubr.c: revision 1.53
clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.
No longer warn about differences bewteen disk size and total sector count
in disklabel when the latter is just clamped to the maximum.
Revision 1.232.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 11 10:36:41 2014 UTC (12 years ago) by martin
Branches: netbsd-7
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +9 -2
lines
Pull up following revision(s) (requested by mlelstv in ticket #201):
sbin/dkctl/dkctl.8: revision 1.24
sbin/dkctl/dkctl.8: revision 1.25
sys/dev/scsipi/sd.c: revision 1.310
sys/dev/ata/wd.c: revision 1.415
sbin/dkctl/dkctl.c: revision 1.21
sys/dev/raidframe/rf_netbsdkintf.c: revision 1.315
sys/dev/ld.c: revision 1.78
sys/dev/vnd.c: revision 1.234
sys/dev/dksubr.c: revision 1.54
sys/sys/dkio.h: revision 1.20
sys/dev/dkwedge/dk.c: revision 1.74
Add ioctl to autodiscover wedges.
Implement DIOCMWEDGES ioctl that triggers wedge autodiscovery.
Also fix a reference counting bug and clean up some code.
support DIOCMWEDGES ioctl.
Add 'makewedges' option to autodiscover wedges from a changed label.
New sentence, new line. Bump date for previous.
Revision 1.234: download - view: text, markup, annotated - select for diffs
Tue Nov 4 07:51:54 2014 UTC (12 years ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +9 -2
lines
support DIOCMWEDGES ioctl.
Revision 1.233: download - view: text, markup, annotated - select for diffs
Sat Oct 11 12:01:27 2014 UTC (12 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +6 -3
lines
clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.
Revision 1.221.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:35 2014 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.221.2.1: preferred, colored; branchpoint 1.221: preferred, colored
Changes since revision 1.221.2.1: +38 -7
lines
Rebase to HEAD as of a few days ago.
Revision 1.229.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:50 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.229: preferred, colored; next MAIN 1.230: preferred, colored
Changes since revision 1.229: +11 -3
lines
Rebase.
Revision 1.232: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:35 2014 UTC (12 years, 3 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +3 -2
lines
Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
Revision 1.231: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:02:19 2014 UTC (12 years, 3 months ago) by dholland
Branches: MAIN
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +3 -2
lines
Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
Revision 1.230: download - view: text, markup, annotated - select for diffs
Tue Jul 22 13:32:59 2014 UTC (12 years, 3 months ago) by pooka
Branches: MAIN
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +9 -3
lines
Fix MODULE() dependencies to account for VND_COMPRESSION
Revision 1.219.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:19 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.219.2.2: preferred, colored; branchpoint 1.219: preferred, colored; next MAIN 1.220: preferred, colored
Changes since revision 1.219.2.2: +46 -50
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.225.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:35 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225: +32 -9
lines
sync with head
Revision 1.229: download - view: text, markup, annotated - select for diffs
Sat Mar 22 16:08:51 2014 UTC (12 years, 7 months ago) by prlw1
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +12 -2
lines
DIOCGDISKINFO support for vnd
Reviewed by apb@ and christos@
Revision 1.228: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:26 2014 UTC (12 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +20 -5
lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
Revision 1.227: download - view: text, markup, annotated - select for diffs
Sun Dec 29 08:09:44 2013 UTC (12 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +3 -3
lines
Modularize net/zlib so it can be used by the vnd module (and, eventually,
by an opencrypto module).
Revision 1.226: download - view: text, markup, annotated - select for diffs
Sun Sep 15 16:05:51 2013 UTC (13 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +3 -5
lines
Remove unused variable
Revision 1.221.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:16 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +16 -43
lines
resync from head
Revision 1.225: download - view: text, markup, annotated - select for diffs
Sun Jun 9 13:26:25 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +3 -3
lines
Never return ENXIO in ioctl anymore. We don't have a fixed number of vnd's
configured.
Revision 1.224: download - view: text, markup, annotated - select for diffs
Mon Jun 3 21:01:18 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +3 -3
lines
widen the operation on the RHS as suggested in the PR.
Revision 1.223: download - view: text, markup, annotated - select for diffs
Mon Jun 3 16:42:32 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +3 -3
lines
PR/47879: Takahiro HAYASHI: vnd cannot handle disk image larger than 2TiB
change size_t to uint64_t where needed.
Revision 1.222: download - view: text, markup, annotated - select for diffs
Wed May 29 00:47:48 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +14 -41
lines
phase 1 of disk geometry cleanup:
- centralize the geometry -> plist code so that we don't have
n useless copies of it.
Revision 1.219.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:49 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.219.2.1: preferred, colored; branchpoint 1.219: preferred, colored
Changes since revision 1.219.2.1: +34 -17
lines
sync with head
Revision 1.187.4.6: download - view: text, markup, annotated - select for diffs
Wed Aug 22 20:29:20 2012 UTC (14 years, 2 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2
Diff to: previous 1.187.4.5: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.5: +58 -6
lines
Apply patch, requested by buhrow in ticket 1771
sys/dev/vnd.c: patch
Implement wedge ioctls and wedge autodiscovery for vnd(4)
Revision 1.219.8.2: download - view: text, markup, annotated - select for diffs
Thu Jul 5 18:12:46 2012 UTC (14 years, 4 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: netbsd-6-1,
netbsd-6-0
Diff to: previous 1.219.8.1: preferred, colored; branchpoint 1.219: preferred, colored
Changes since revision 1.219.8.1: +34 -17
lines
Pull up following revision(s) (requested by mlelstv in ticket #402):
sys/dev/vnd.c: revision 1.221
sys/kern/init_main.c: revision 1.443
sys/kern/init_main.c: revision 1.444
sys/dev/dkwedge/dk.c: revision 1.64
sys/arch/x86/x86/x86_autoconf.c: revision 1.63
sys/arch/sparc64/sparc64/autoconf.c: revision 1.187
sys/sys/device.h: revision 1.141
sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.17
sys/kern/kern_subr.c: revision 1.213
sys/arch/zaurus/zaurus/autoconf.c: revision 1.11
sys/arch/xen/x86/autoconf.c: revision 1.14
sys/sys/disk.h: revision 1.57
Use the label's packname to create wedge names instead of the classic
device names. Fall back to classic device names when the label has an
empty name or the default name 'fictitious'.
autodiscover wedges
Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for x86, xen, sparc64.
Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for zaurus.
Do not try to find the wedge we booted from if opendisk(booted_device)
failed.
Revision 1.221: download - view: text, markup, annotated - select for diffs
Sat Jun 9 06:20:45 2012 UTC (14 years, 5 months ago) by mlelstv
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +34 -17
lines
autodiscover wedges
Revision 1.219.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:26 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +19 -8
lines
sync with head
Revision 1.219.8.1: download - view: text, markup, annotated - select for diffs
Fri Apr 6 17:44:21 2012 UTC (14 years, 7 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +19 -8
lines
Pull up following revision(s) (requested by hannken in ticket #162):
sys/dev/vnd.c: revision 1.220
sys/dev/vndvar.h: revision 1.32
When backed by a sparse file limit the number of pending requests.
Should fix PR #45829: "writing to vnd on sparse file blocks on pager_map"
where the pager_map gets exhausted by requests enqueued on a vnd
device and the device worker thread blocks on putpages() needing the map.
While here always sync the underlying vnode before calling biodone().
XXX: vnd should be converted to mutex/condvar.
Revision 1.219.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:24 2012 UTC (14 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.219: preferred, colored; next MAIN 1.220: preferred, colored
Changes since revision 1.219: +19 -8
lines
sync to latest -current.
Revision 1.220: download - view: text, markup, annotated - select for diffs
Mon Mar 26 16:28:08 2012 UTC (14 years, 7 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base10
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +19 -8
lines
When backed by a sparse file limit the number of pending requests.
Should fix PR #45829: "writing to vnd on sparse file blocks on pager_map"
where the pager_map gets exhausted by requests enqueued on a vnd
device and the device worker thread blocks on putpages() needing the map.
While here always sync the underlying vnode before calling biodone().
XXX: vnd should be converted to mutex/condvar.
Revision 1.187.4.5: download - view: text, markup, annotated - select for diffs
Sat Dec 31 22:11:12 2011 UTC (14 years, 10 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.187.4.4: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.4: +22 -9
lines
Pull up following revision(s) (requested by riz in ticket #1705):
sys/dev/vnd.c: revision 1.218 via patch
sys/dev/vndvar.h: revision 1.31 via patch
Make vnd(4) work on sparse files:
- Make the strategy decision a device flag and set VNF_USE_VN_RDWR for
files known to be sparse.
- Change handle_with_rdwr() to use POSIX_FADV_NOREUSE advise to disable
read ahead and keep the size of mapped pages below 1 MByte.
No objections on tech-kern@.
Revision 1.219: download - view: text, markup, annotated - select for diffs
Fri Oct 14 09:23:30 2011 UTC (15 years, 1 month ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
netbsd-6,
jmcneill-usbmp
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +7 -3
lines
Change the vnode locking protocol of VOP_GETATTR() to request at least
a shared lock. Make all calls outside of file systems respect it.
The calls from file systems need review.
No objections from tech-kern.
Revision 1.218: download - view: text, markup, annotated - select for diffs
Wed Jun 29 09:12:42 2011 UTC (15 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +21 -11
lines
Make vnd(4) work on sparse files:
- Make the strategy decision a device flag and set VNF_USE_VN_RDWR for
files known to be sparse.
- Change handle_with_rdwr() to use POSIX_FADV_NOREUSE advise to disable
read ahead and keep the size of mapped pages below 1 MByte.
No objections on tech-kern@.
Revision 1.216.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:54 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.216: preferred, colored; next MAIN 1.217: preferred, colored
Changes since revision 1.216: +7 -7
lines
Catchup with rmind-uvmplock merge.
Revision 1.217: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:35:51 2011 UTC (15 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +7 -7
lines
Welcome to 5.99.53! Merge rmind-uvmplock branch:
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
New lock order: [vmpage-owner-lock] -> pmap-lock.
- Simplify locking in some pmap(9) modules by removing P->V locking.
- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).
- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.
- Unify /dev/mem et al in MI code and provide required locking (removes
kernel-lock on some ports). Also, avoid cache-aliasing issues.
Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
Revision 1.214.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:39 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.214: preferred, colored; next MAIN 1.215: preferred, colored
Changes since revision 1.214: +4 -43
lines
Sync with HEAD.
Revision 1.208.2.4: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:34 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.208.2.3: preferred, colored; branchpoint 1.208: preferred, colored; next MAIN 1.209: preferred, colored
Changes since revision 1.208.2.3: +1 -1
lines
sync with head
Revision 1.216: download - view: text, markup, annotated - select for diffs
Mon May 23 21:30:56 2011 UTC (15 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +3 -3
lines
Don't use the device name as format string.
Revision 1.208.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:01 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.208.2.2: preferred, colored; branchpoint 1.208: preferred, colored
Changes since revision 1.208.2.2: +57 -59
lines
sync with head
Revision 1.214.4.1: download - view: text, markup, annotated - select for diffs
Thu Feb 17 12:00:09 2011 UTC (15 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.214: preferred, colored; next MAIN 1.215: preferred, colored
Changes since revision 1.214: +3 -42
lines
Sync with HEAD
Revision 1.215: download - view: text, markup, annotated - select for diffs
Tue Feb 8 20:20:26 2011 UTC (15 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: bouyer-quota2-nbase,
bouyer-quota2-base
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +3 -42
lines
Remove clause 3 (UCB advertising clause) from the University of Utah
copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.
Extra verification by snj@.
Revision 1.214: download - view: text, markup, annotated - select for diffs
Fri Nov 19 06:44:39 2010 UTC (16 years ago) by dholland
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +13 -4
lines
Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.
Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).
The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.
Revision 1.207.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:21:50 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.207.2.2: preferred, colored; branchpoint 1.207: preferred, colored; next MAIN 1.208: preferred, colored
Changes since revision 1.207.2.2: +43 -15
lines
Sync with HEAD (-D20101022).
Revision 1.178.4.8: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:03 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.178.4.7: preferred, colored; branchpoint 1.178: preferred, colored; next MAIN 1.179: preferred, colored
Changes since revision 1.178.4.7: +45 -17
lines
sync with head
Revision 1.213: download - view: text, markup, annotated - select for diffs
Sun Sep 19 09:41:37 2010 UTC (16 years, 2 months ago) by mrg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
uebayasi-xip-base4,
uebayasi-xip-base3
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +3 -32
lines
actually, put the old definitions back into vndvar.h, under _KERNEL,
as netbsd32 wants access to them.
Revision 1.212: download - view: text, markup, annotated - select for diffs
Sun Sep 19 07:11:42 2010 UTC (16 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +24 -13
lines
fix the vnd_osize changes on 32 bit platforms with 64 bit alignment for
64 bit integers (eg, sparc). the problem was that the new 64 bit
element on the end was used for the offsetof() (aka size) for the old
structure, but this includes the padding required, thus the ioctl number
was set wrongly.
move all the supporting code for this inside COMPAT_50, with some renaming
to suit, and kill all the external definitions related to it.
tested on i386, amd64 and sparc.
Revision 1.211: download - view: text, markup, annotated - select for diffs
Sun Sep 19 05:50:28 2010 UTC (16 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +52 -6
lines
add support for COMPAT_50 ioctls. struct vnd_user has a dev_t component
which grew since netbsd 5.0 (hi christos!)
fix a few issues/problems:
- the COMPAT_30 code wasn't used since opt_compat_netbsd.h wasn't included
- move 'struct vnd_ouser' (for COMPAT_30) into vnd.c itself, and call it
'struct vnd_user30'
- same for VNDIOOCGET -> VNDIOCGET30
now 'vnconfig -l' works on -current with a netbsd-5 binary, using i386.
XXX: there is still a potential problem with the old VNDIOOCSET and
VNDIOOCCLR macros on some platforms like sparc. there is padding
between the old vnd_osize member and the new vnd_size member on
platforms that want 64 bit values 64 bit aligned, but are 32 bit
otherwise (like sparc.) 64 bit systems already end up with this
member 64 bit aligned, and should be fine.
this most likely results in the old ioctl numbers being wrong and
the code won't match/run ever (ENOTTY.)
Revision 1.207.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:58 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.207.2.1: preferred, colored; branchpoint 1.207: preferred, colored
Changes since revision 1.207.2.1: +47 -16
lines
Sync with HEAD.
Revision 1.178.4.7: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:14 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.178.4.6: preferred, colored; branchpoint 1.178: preferred, colored
Changes since revision 1.178.4.6: +49 -18
lines
sync with head.
Revision 1.208.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:33 2010 UTC (16 years, 4 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.208.2.1: preferred, colored; branchpoint 1.208: preferred, colored
Changes since revision 1.208.2.1: +49 -18
lines
sync with head
Revision 1.210: download - view: text, markup, annotated - select for diffs
Thu Jun 24 21:20:23 2010 UTC (16 years, 4 months ago) by riz
Branches: MAIN
CVS tags: yamt-nfs-mp-base10,
uebayasi-xip-base2
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +34 -3
lines
Add wedge (dk(4)) support to vnd(4) devices.
Revision 1.209: download - view: text, markup, annotated - select for diffs
Thu Jun 24 13:03:08 2010 UTC (16 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +17 -17
lines
Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
Revision 1.207.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:04 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +3 -7
lines
Sync with HEAD.
Revision 1.187.4.3.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:33 2010 UTC (16 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.187.4.3: preferred, colored; next MAIN 1.187.4.4: preferred, colored
Changes since revision 1.187.4.3: +4 -2
lines
sync to netbsd-5
Revision 1.208.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 16 15:38:05 2010 UTC (16 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +7 -7
lines
Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc(). It allows us to share the locks among UVM objects.
Revision 1.178.4.6: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:21 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.178.4.5: preferred, colored; branchpoint 1.178: preferred, colored
Changes since revision 1.178.4.5: +27 -8
lines
sync with head
Revision 1.208: download - view: text, markup, annotated - select for diffs
Tue Mar 2 21:32:29 2010 UTC (16 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +3 -7
lines
For the nfs throttling kludge, test against v_tag == VT_NFS instead
of v_op (the latter imposes linkage).
Revision 1.207: download - view: text, markup, annotated - select for diffs
Sun Jan 31 15:40:08 2010 UTC (16 years, 9 months ago) by mlelstv
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +3 -2
lines
Properly register blocksize with disk(9) framework.
Revision 1.187.4.3.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 30 19:05:04 2010 UTC (16 years, 9 months ago) by snj
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE
Diff to: previous 1.187.4.3: preferred, colored; next MAIN 1.187.4.4: preferred, colored
Changes since revision 1.187.4.3: +4 -2
lines
Pull up following revision(s) (requested by bouyer in ticket #1269):
sys/dev/dkwedge/dk.c: revision 1.53
sys/dev/cgd.c: revision 1.69
sys/dev/vnd.c: revision 1.206
struct buf::b_iodone is not called at splbio() any more.
Make sure non-MPsafe iodone callbacks raise the SPL as appropriate.
Fix buffer corruption issue I noticed in dk(4), and probable similar
issues in vnd(4) and cgd(4).
Revision 1.187.4.4: download - view: text, markup, annotated - select for diffs
Sat Jan 30 19:00:46 2010 UTC (16 years, 9 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
matt-nb5-pq3-base,
matt-nb5-pq3
Diff to: previous 1.187.4.3: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.3: +4 -2
lines
Pull up following revision(s) (requested by bouyer in ticket #1269):
sys/dev/cgd.c: revision 1.69
sys/dev/vnd.c: revision 1.206
sys/dev/dkwedge/dk.c: revision 1.53
struct buf::b_iodone is not called at splbio() any more.
Make sure non-MPsafe iodone callbacks raise the SPL as appropriate.
Fix buffer corruption issue I noticed in dk(4), and probable similar
issues in vnd(4) and cgd(4).
Revision 1.206: download - view: text, markup, annotated - select for diffs
Sat Jan 23 18:31:04 2010 UTC (16 years, 9 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +4 -2
lines
struct buf::b_iodone is not called at splbio() any more.
Make sure non-MPsafe iodone callbacks raise the SPL as appropriate.
Fix buffer corruption issue I noticed in dk(4), and probable similar
issues in vnd(4) and cgd(4).
Revision 1.205: download - view: text, markup, annotated - select for diffs
Sun Dec 6 16:33:18 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +23 -3
lines
Make vnd_size (the returned size) 64 bit, keeping old field for ioctl
compatibility. Both fields are now unsigned.
Add compatibility for the old ioctl size.
Detect and error files which are definitely sparse (va_bytes < va_size).
Part of fix for PR/41873.
Revision 1.178.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:47:03 2009 UTC (17 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.178.4.4: preferred, colored; branchpoint 1.178: preferred, colored
Changes since revision 1.178.4.4: +4 -5
lines
sync with head.
Revision 1.204: download - view: text, markup, annotated - select for diffs
Fri Aug 7 00:08:07 2009 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
jym-xensuspend-nbase
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +4 -5
lines
Re-use DK_BUSY().
Revision 1.193.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:45 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.193.2.1: preferred, colored; branchpoint 1.193: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193.2.1: +7 -5
lines
Sync with HEAD.
Revision 1.178.4.4: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:52:59 2009 UTC (17 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.178.4.3: preferred, colored; branchpoint 1.178: preferred, colored
Changes since revision 1.178.4.3: +7 -5
lines
sync with head.
Revision 1.203: download - view: text, markup, annotated - select for diffs
Tue Jul 7 19:51:22 2009 UTC (17 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base6,
jymxensuspend-base
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +3 -3
lines
At the bottom of vndclear(), clear VNF_CLEARING: it is no longer
needed to exclude vndopen(), and it will prevent subsequent opens
if we leave it.
Revision 1.202: download - view: text, markup, annotated - select for diffs
Thu Jul 2 02:06:11 2009 UTC (17 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +6 -4
lines
In vndopen(), release the lock before returning ENXIO.
Revision 1.178.4.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:18 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.178.4.2: preferred, colored; branchpoint 1.178: preferred, colored
Changes since revision 1.178.4.2: +5 -5
lines
sync with head
Revision 1.193.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:05 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +114 -79
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.201: download - view: text, markup, annotated - select for diffs
Thu May 7 09:13:13 2009 UTC (17 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
jym-xensuspend-base
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +3 -3
lines
struct cfdata * -> cfdata_t, no functional changes intended.
Revision 1.200: download - view: text, markup, annotated - select for diffs
Wed May 6 22:38:42 2009 UTC (17 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +4 -4
lines
Unneeded LK_CANRECURSE.
Revision 1.178.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:33 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.178.4.1: preferred, colored; branchpoint 1.178: preferred, colored
Changes since revision 1.178.4.1: +235 -99
lines
sync with head.
Revision 1.199: download - view: text, markup, annotated - select for diffs
Thu Apr 30 20:34:08 2009 UTC (17 years, 6 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base3
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +63 -36
lines
Flesh out vnd_detach(). Let the system detach vnd(4) at shutdown. Stop
vnd_ioctl(VNDIOCCLR) from racing with vndopen() to call vndclear().
Revision 1.198: download - view: text, markup, annotated - select for diffs
Thu Apr 30 16:38:12 2009 UTC (17 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +16 -16
lines
Fix spelling. if( -> if (. No functional change intended.
Revision 1.197: download - view: text, markup, annotated - select for diffs
Thu Apr 30 16:07:50 2009 UTC (17 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +31 -31
lines
Use NULL instead of (type *)0. Delete extraneous parentheses. No
functional change intended.
Revision 1.187.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:13 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.187.2.2: preferred, colored; branchpoint 1.187: preferred, colored; next MAIN 1.188: preferred, colored
Changes since revision 1.187.2.2: +11 -3
lines
Sync with HEAD.
Revision 1.187.4.3: download - view: text, markup, annotated - select for diffs
Sat Apr 4 17:20:00 2009 UTC (17 years, 7 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-1-RELEASE,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-0,
matt-nb5-mips64
Diff to: previous 1.187.4.2: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.2: +4 -3
lines
Pull up following revision(s) (requested by apb in ticket #653):
sys/dev/vnd.c: revision 1.195
Add FSYNC_CACHE flag to the VOP_FSYNC() call for the DIOCCACHESYNC ioctl.
PR 41015.
Revision 1.187.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 4 17:17:38 2009 UTC (17 years, 7 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.187.4.1: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.4.1: +9 -2
lines
Pull up following revision(s) (requested by apb in ticket #653):
sys/dev/vnd.c: revision 1.194
PR/41015: Alan Barrett: vnd driver does not implement DIOCCACHESYNC
Revision 1.196: download - view: text, markup, annotated - select for diffs
Wed Mar 18 16:00:17 2009 UTC (17 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +3 -3
lines
bzero -> memset
Revision 1.195: download - view: text, markup, annotated - select for diffs
Sat Mar 14 18:00:37 2009 UTC (17 years, 8 months ago) by apb
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +4 -3
lines
Add FSYNC_CACHE flag to the VOP_FSYNC() call for the DIOCCACHESYNC ioctl.
PR 41015.
Revision 1.194: download - view: text, markup, annotated - select for diffs
Sat Mar 14 16:33:25 2009 UTC (17 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +9 -2
lines
PR/41015: Alan Barrett: vnd driver does not implement DIOCCACHESYNC
Revision 1.187.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:30:31 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.187.2.1: preferred, colored; branchpoint 1.187: preferred, colored
Changes since revision 1.187.2.1: +58 -2
lines
Sync with HEAD.
Revision 1.193: download - view: text, markup, annotated - select for diffs
Thu Feb 5 17:32:10 2009 UTC (17 years, 9 months ago) by haad
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +58 -2
lines
Add support for the MODULAR framework to the vnd driver. Enable building of
vnd.kmod by default.
Revision 1.187.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:52 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +17 -11
lines
Sync with HEAD.
Revision 1.175.6.8: download - view: text, markup, annotated - select for diffs
Sat Jan 17 20:17:09 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.175.6.7: preferred, colored; branchpoint 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175.6.7: +2 -6
lines
- Fix a CVS merge breakage
- Catch up with some driver changes
Revision 1.175.6.7: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:52 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.175.6.6: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.6: +18 -8
lines
Sync with HEAD.
Revision 1.192: download - view: text, markup, annotated - select for diffs
Tue Jan 13 13:35:52 2009 UTC (17 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +4 -4
lines
g/c BUFQ_FOO() macros and use bufq_foo() directly.
Revision 1.191: download - view: text, markup, annotated - select for diffs
Sun Jan 11 10:02:35 2009 UTC (17 years, 10 months ago) by cegger
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +7 -7
lines
make this compile
Revision 1.190: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:50 2009 UTC (17 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +7 -7
lines
merge christos-time_t
Revision 1.185.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:12 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.185.2.1: preferred, colored; branchpoint 1.185: preferred, colored; next MAIN 1.186: preferred, colored
Changes since revision 1.185.2.1: +10 -4
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.177.2.3: download - view: text, markup, annotated - select for diffs
Thu Nov 20 20:45:38 2008 UTC (17 years, 11 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.177.2.2: preferred, colored; branchpoint 1.177: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177.2.2: +10 -4
lines
merge with head.
Revision 1.187.4.1: download - view: text, markup, annotated - select for diffs
Thu Nov 20 03:42:11 2008 UTC (18 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +9 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #97):
sys/dev/vnd.c: revision 1.189
Check that vnd is not NULL before using it, return ENXIO if it is.
Avoids a panic when vnconfig -uF is used on a busy vnd.
Revision 1.189: download - view: text, markup, annotated - select for diffs
Wed Nov 19 18:38:36 2008 UTC (18 years ago) by bouyer
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
christos-time_t-nbase,
christos-time_t-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +9 -3
lines
Check that vnd is not NULL before using it, return ENXIO if it is.
Avoids a panic when vnconfig -uF is used on a busy vnd.
Revision 1.188: download - view: text, markup, annotated - select for diffs
Wed Nov 12 12:36:11 2008 UTC (18 years ago) by ad
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +3 -3
lines
Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
Revision 1.177.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 1 21:22:26 2008 UTC (18 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.177.2.1: preferred, colored; branchpoint 1.177: preferred, colored
Changes since revision 1.177.2.1: +56 -24
lines
Sync with head.
Revision 1.185.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:19 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +5 -3
lines
Sync with HEAD.
Revision 1.181.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:30:57 2008 UTC (18 years, 1 month ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.181.2.2: preferred, colored; branchpoint 1.181: preferred, colored; next MAIN 1.182: preferred, colored
Changes since revision 1.181.2.2: +4 -3
lines
Sync with HEAD.
Revision 1.175.6.6: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:18 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.175.6.5: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.5: +3 -1
lines
Sync with HEAD.
Revision 1.187: download - view: text, markup, annotated - select for diffs
Wed Sep 24 07:57:30 2008 UTC (18 years, 1 month ago) by ad
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
netbsd-5-base,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +4 -3
lines
PR kern/38872 vnconfig panics with rw lock error
Pass IO_NODELOCKED where needed.
Revision 1.181.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:01 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.181.2.1: preferred, colored; branchpoint 1.181: preferred, colored
Changes since revision 1.181.2.1: +3 -2
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.181.4.2: download - view: text, markup, annotated - select for diffs
Mon Jul 28 14:37:26 2008 UTC (18 years, 3 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.181.4.1: preferred, colored; branchpoint 1.181: preferred, colored; next MAIN 1.182: preferred, colored
Changes since revision 1.181.4.1: +3 -2
lines
Sync with head.
Revision 1.186: download - view: text, markup, annotated - select for diffs
Sat Jul 19 13:58:08 2008 UTC (18 years, 4 months ago) by kardel
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +3 -2
lines
buf_destroy() an embedded buffer before returning memory to pool
issue detected by LOCKDEBUG panicing about "allocation contains active lock"
Revision 1.175.6.5: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:05 2008 UTC (18 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.175.6.4: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.4: +57 -19
lines
Sync with HEAD.
Revision 1.181.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:58 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +52 -15
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.181.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:03 2008 UTC (18 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +52 -15
lines
Sync with head.
Revision 1.178.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:14:24 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.178.2.1: preferred, colored; branchpoint 1.178: preferred, colored; next MAIN 1.179: preferred, colored
Changes since revision 1.178.2.1: +45 -15
lines
sync with head.
Revision 1.185: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:01:56 2008 UTC (18 years, 5 months ago) by cegger
Branches: MAIN
CVS tags: wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: haad-dm
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +10 -3
lines
Disable the check introduced in rev. 1.184. It works in first place, but not in second place.
The new check is not enough to detect sparse files reliably.
per discussion with bouyer
Revision 1.184: download - view: text, markup, annotated - select for diffs
Sat Jun 14 11:44:57 2008 UTC (18 years, 5 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-base4
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +35 -5
lines
Checking if the underlying file system supports VOP_BMAP and VOP_STRATEGY does not imply that works.
Test if VOP_BMAP actually works before using bmap/strategy.
When you create an image with
dd if=/dev/zero of=./netbsd.img bs=1m count=1 seek=1000
then the current check actually determines the "file system"
in the image supports VOP_BMAP and VOP_STRATEGY, but VOP_BMAP can't
translate any logical block numbers which results in EIO failures.
When you try to access the image in a Xen DomU you see all disk operations
failing. Therefore test if VOP_BMAP actually works and fall back to
VOP_READ/VOP_WRITE if it doesn't.
This makes a Xen DomU installation working. When you boot your fresh
installed Xen DomU with a valid disklabel and file system in the image,
VOP_BMAP actually works and is used.
This allows you to create an image with dd as above on the Dom0 and
run a DomU installation or to quickly create another virtual disk for
an existing DomU without having to create a disklabel and file system
by hand.
Revision 1.183: download - view: text, markup, annotated - select for diffs
Sat Jun 14 07:52:36 2008 UTC (18 years, 5 months ago) by cegger
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +3 -3
lines
add closing bracket in debug message
Revision 1.182: download - view: text, markup, annotated - select for diffs
Tue Jun 10 22:53:08 2008 UTC (18 years, 5 months ago) by cegger
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +11 -11
lines
device_private(device_lookup()) -> device_lookup_private()
ok cube@
Revision 1.160.4.2: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:19 2008 UTC (18 years, 5 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.160.4.1: preferred, colored; branchpoint 1.160: preferred, colored; next MAIN 1.161: preferred, colored
Changes since revision 1.160.4.1: +49 -2
lines
Sync with netbsd-4.
Revision 1.175.6.4: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:12 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.175.6.3: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.3: +93 -22
lines
Sync with HEAD.
Revision 1.178.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:30 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +2 -9
lines
sync with head.
Revision 1.178.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:49 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +2 -9
lines
sync with head.
Revision 1.181: download - view: text, markup, annotated - select for diffs
Mon May 5 13:41:30 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +4 -3
lines
Back out previous. It broke the build.
Revision 1.180: download - view: text, markup, annotated - select for diffs
Sun May 4 23:07:09 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +3 -4
lines
Move zlib out of net/ and into kern/. It would probably be better to use
the reachover Makefiles and libz, but this is already here and it works.
Revision 1.179: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:47 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.178: download - view: text, markup, annotated - select for diffs
Wed Apr 9 05:47:19 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +3 -3
lines
use aprint_*_dev and device_xname
Revision 1.160.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 8 20:19:27 2008 UTC (18 years, 7 months ago) by jdc
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base
Diff to: previous 1.160.2.1: preferred, colored; branchpoint 1.160: preferred, colored; next MAIN 1.161: preferred, colored
Changes since revision 1.160.2.1: +49 -2
lines
Pull up revision 1.174 (requested by riz in ticket #1116).
Add disk-info properties to vnd(4), for use by userland tools
such as gpt(8).
Revision 1.175.6.3: download - view: text, markup, annotated - select for diffs
Sun Apr 6 09:58:50 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.175.6.2: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.2: +3 -3
lines
- after some discussion with agc@ i agreed it would be a good idea to move
device_unregister_* to device_deregister_* to be more like the pmf(9)
functions, especially since a lot of the time the function calls are next
to each other.
- add device_register_name() support for dk(4).
Revision 1.175.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 5 23:33:21 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.175.6.1: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.1: +15 -2
lines
- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
as these are always needed.
- convert many, many drivers over to the New Devfs World Order. For a
list of device drivers yet to be converted see,
http://www.netbsd.org/~mjf/devfs-todo.html.
- add a new device_unregister_all(device_t) function to remove all device
names associated with a device_t, which saves us having to construct
device names when the driver is detached.
- add a DEV_AUDIO type for devices.
Revision 1.175.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:37 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +38 -39
lines
Sync with HEAD.
Revision 1.177.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:00 2008 UTC (18 years, 7 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +7 -7
lines
Welcome to the time_t=long long dev_t=uint64_t branch.
Revision 1.114.2.9: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:38:46 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114.2.8: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.2.8: +5 -6
lines
sync with head.
Revision 1.175.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:11 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175: +35 -35
lines
sync with head.
Revision 1.169.6.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:35 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.169.6.2: preferred, colored; branchpoint 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169.6.2: +35 -35
lines
sync with HEAD
Revision 1.177: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:54:59 2008 UTC (18 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
ad-socklock-base1
Branch point for: christos-time_t
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +5 -6
lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.
Revision 1.114.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:37 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114.2.7: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.7: +35 -35
lines
sync with head.
Revision 1.176: download - view: text, markup, annotated - select for diffs
Tue Mar 4 23:03:29 2008 UTC (18 years, 8 months ago) by cube
Branches: MAIN
CVS tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +35 -35
lines
Split device_t/softc and other related cosmetic changes.
Revision 1.170.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:32 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.170.4.2: preferred, colored; branchpoint 1.170: preferred, colored; next MAIN 1.171: preferred, colored
Changes since revision 1.170.4.2: +20 -15
lines
Sync with HEAD.
Revision 1.114.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:28 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114.2.6: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.6: +71 -16
lines
sync with head
Revision 1.169.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:16 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.169.6.1: preferred, colored; branchpoint 1.169: preferred, colored
Changes since revision 1.169.6.1: +73 -18
lines
sync with HEAD
Revision 1.172.4.2: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:53:48 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.172.4.1: preferred, colored; branchpoint 1.172: preferred, colored; next MAIN 1.173: preferred, colored
Changes since revision 1.172.4.1: +65 -13
lines
Sync with HEAD
Revision 1.175: download - view: text, markup, annotated - select for diffs
Wed Jan 2 11:48:36 2008 UTC (18 years, 10 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +20 -15
lines
Merge vmlocking2 to head.
Revision 1.170.4.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:44:47 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.170.4.1: preferred, colored; branchpoint 1.170: preferred, colored
Changes since revision 1.170.4.1: +53 -3
lines
Sync with HEAD.
Revision 1.171.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:21 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.171.2.1: preferred, colored; branchpoint 1.171: preferred, colored; next MAIN 1.172: preferred, colored
Changes since revision 1.171.2.1: +53 -3
lines
Sync with head.
Revision 1.174: download - view: text, markup, annotated - select for diffs
Tue Dec 18 23:22:18 2007 UTC (18 years, 11 months ago) by riz
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +49 -2
lines
Add disk-info properties to vnd(4), for use by userland tools
such as gpt(8).
Revision 1.172.4.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 21:55:22 2007 UTC (18 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +5 -2
lines
Sync with HEAD
Revision 1.172.2.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 05:05:31 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.172: preferred, colored; next MAIN 1.173: preferred, colored
Changes since revision 1.172: +5 -2
lines
sync with head.
Revision 1.173: download - view: text, markup, annotated - select for diffs
Wed Dec 12 03:54:27 2007 UTC (18 years, 11 months ago) by smb
Branches: MAIN
CVS tags: yamt-kmem-base3
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +5 -2
lines
Add power management hooks
Revision 1.169.4.3: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:43 2007 UTC (18 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.169.4.2: preferred, colored; branchpoint 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169.4.2: +3 -3
lines
Sync with HEAD.
Revision 1.172: download - view: text, markup, annotated - select for diffs
Sat Dec 8 19:29:41 2007 UTC (18 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: yamt-kmem-base2,
yamt-kmem-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: yamt-kmem,
bouyer-xeni386
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +3 -3
lines
Remove cn_lwp from struct componentname. curlwp should be used
from on. The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.
Revision 1.170.4.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:21 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +4 -4
lines
Sync with HEAD.
Revision 1.114.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:18 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114.2.5: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.5: +4 -4
lines
sync with head
Revision 1.171.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 4 13:02:55 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +20 -15
lines
Pull the vmlocking changes into a new branch.
Revision 1.169.4.2: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:36:59 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.169.4.1: preferred, colored; branchpoint 1.169: preferred, colored
Changes since revision 1.169.4.1: +4 -4
lines
Sync with HEAD. amd64 Xen support needs testing.
Revision 1.171: download - view: text, markup, annotated - select for diffs
Mon Nov 26 19:01:35 2007 UTC (18 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base
Branch point for: vmlocking2
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +4 -4
lines
Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start. In case the calling lwp is desired, curlwp should
be used.
quick consensus on tech-kern
Revision 1.169.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:25:30 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +6 -6
lines
sync with HEAD
Revision 1.114.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:29:59 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114.2.4: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.4: +6 -6
lines
sync with head.
Revision 1.169.4.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:11 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +6 -6
lines
Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
Revision 1.165.2.12: download - view: text, markup, annotated - select for diffs
Thu Oct 25 20:50:41 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.11: preferred, colored; next MAIN 1.166: preferred, colored
Changes since revision 1.165.2.11: +5 -4
lines
Fix vnd(4).
Revision 1.169.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:02 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169: +6 -6
lines
sync with head.
Revision 1.170: download - view: text, markup, annotated - select for diffs
Mon Oct 8 16:41:11 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: mjf-devfs
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +6 -6
lines
Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.
Revision 1.114.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:33:17 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114.2.3: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.3: +21 -41
lines
sync with head.
Revision 1.160.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:04:20 2007 UTC (19 years, 2 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +10 -13
lines
Sync w/ NetBSD-4-RC_1
Revision 1.165.2.11: download - view: text, markup, annotated - select for diffs
Fri Aug 24 23:28:34 2007 UTC (19 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.10: preferred, colored
Changes since revision 1.165.2.10: +6 -4
lines
Sync with buffer cache locking changes. See buf.h/vfs_bio.c for details.
Some minor portions are incomplete and needs to be verified as a whole.
Revision 1.165.2.10: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:16:11 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.9: preferred, colored
Changes since revision 1.165.2.9: +6 -6
lines
- Alter disk attach/detach to fix a panic when closing a vnd device.
- Sync with HEAD.
Revision 1.165.2.9: download - view: text, markup, annotated - select for diffs
Sun Aug 19 19:24:22 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.8: preferred, colored
Changes since revision 1.165.2.8: +18 -20
lines
- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
Revision 1.168.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:13 2007 UTC (19 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.168: preferred, colored; next MAIN 1.169: preferred, colored
Changes since revision 1.168: +6 -18
lines
Sync with HEAD.
Revision 1.169.10.2: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:19 2007 UTC (19 years, 3 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.169.10.1: preferred, colored; branchpoint 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169.10.1: +1822 -0
lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
Revision 1.169.10.1
Sun Jul 29 12:50:18 2007 UTC (19 years, 3 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.169: +0 -1822
lines
file vnd.c was added on branch matt-mips64 on 2007-07-29 12:50:19 +0000
Revision 1.169: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:18 2007 UTC (19 years, 3 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base2,
yamt-x86pmap-base,
nick-csl-alignment-base5,
matt-mips64-base,
hpcarm-cleanup
Branch point for: yamt-x86pmap,
matt-mips64,
matt-armv6,
jmcneill-pm
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +6 -18
lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
Revision 1.165.2.8: download - view: text, markup, annotated - select for diffs
Sun Jul 15 15:52:40 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.7: preferred, colored
Changes since revision 1.165.2.7: +3 -3
lines
Sync with head.
Revision 1.166.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:05 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.166: preferred, colored; next MAIN 1.167: preferred, colored
Changes since revision 1.166: +4 -14
lines
Sync with head.
Revision 1.168: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:29 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +4 -4
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.165.2.7: download - view: text, markup, annotated - select for diffs
Sat Jun 23 18:06:02 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.6: preferred, colored
Changes since revision 1.165.2.6: +12 -10
lines
- Lock v_cleanblkhd, v_dirtyblkhd, v_numoutput with the vnode's interlock.
Get rid of global_v_numoutput_lock. Partially incomplete as the buffer
cache locking doesn't work very well and needs an overhaul.
- Some changes to try and make softdep MP safe. Untested.
Revision 1.165.2.6: download - view: text, markup, annotated - select for diffs
Sun Jun 17 21:30:53 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.5: preferred, colored
Changes since revision 1.165.2.5: +5 -4
lines
- Increase the number of thread priorities from 128 to 256. How the space
is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
is provided, with hooks for fast-path MD code that can run the interrupt
threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.
Revision 1.160.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 15 11:00:22 2007 UTC (19 years, 5 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: wrstuden-fixsa-base-1,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
matt-nb4-arm-base,
matt-nb4-arm
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +10 -13
lines
Pull up following revision(s) (requested by xtraeme in ticket #721):
sys/dev/vnd.c: revisions 1.164 1.165
Fix compression problem from Cliff Wright:
Break one: because b_cylinder, and b_resid are one and the same.
The work the routine was commented as being its primary function,
end of patition adjustment, is wiped out, as at the end of
the routine b_cylinder is set, splat, doing a wipe out of the adjustment
to b_resid.
Break two: When doing the adjustment, a block count is created from a
byte count, a block calculation is done, then the results are compared to
the original byte count. i.e. apples to oranges, not blocks to blocks,
but blocks to bytes.
Break three: since if all the other drivers that used this routine
would have broken as vnd compress did, I must assume they always ignored
the results of this routine. So if end of patition adjustment is
really required then all these other drivers have been broken for a
long time.
Revision 1.165.2.5: download - view: text, markup, annotated - select for diffs
Sun May 13 17:36:21 2007 UTC (19 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.4: preferred, colored
Changes since revision 1.165.2.4: +16 -27
lines
- Pass the error number and residual count to biodone(), and let it handle
setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.
Revision 1.161.2.4: download - view: text, markup, annotated - select for diffs
Sun Apr 15 16:03:17 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.161.2.3: preferred, colored; branchpoint 1.161: preferred, colored; next MAIN 1.162: preferred, colored
Changes since revision 1.161.2.3: +2 -12
lines
sync with head.
Revision 1.165.2.4: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:24:29 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.3: preferred, colored
Changes since revision 1.165.2.3: +2 -12
lines
Sync with head.
Revision 1.165.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 10 12:07:08 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.2: preferred, colored
Changes since revision 1.165.2.2: +3 -3
lines
Nuke the deferred kthread creation stuff, as it's no longer needed.
Pointed out by thorpej@.
Revision 1.165.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 9 22:09:54 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165.2.1: preferred, colored
Changes since revision 1.165.2.1: +4 -4
lines
- Add two new arguments to kthread_create1: pri_t pri, bool mpsafe.
- Fork kthreads off proc0 as new LWPs, not new processes.
Revision 1.167: download - view: text, markup, annotated - select for diffs
Sat Apr 7 15:07:26 2007 UTC (19 years, 7 months ago) by hannken
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +2 -12
lines
Remove calls to now obsolete vn_start_write() and vn_finished_write().
Revision 1.161.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:55:19 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.161.2.2: preferred, colored; branchpoint 1.161: preferred, colored
Changes since revision 1.161.2.2: +3 -3
lines
sync with head.
Revision 1.165.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:50:21 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +3 -3
lines
Sync with head.
Revision 1.166: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:30 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
CVS tags: reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +3 -3
lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
Revision 1.161.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:06 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.161.2.1: preferred, colored; branchpoint 1.161: preferred, colored
Changes since revision 1.161.2.1: +21 -19
lines
Sync with HEAD.
Revision 1.165: download - view: text, markup, annotated - select for diffs
Fri Mar 9 05:28:37 2007 UTC (19 years, 8 months ago) by yamt
Branches: MAIN
Branch point for: vmlocking
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +16 -15
lines
use b_bcount where appropriate rather than keeping b_resid sync with it.
no functional changes.
Revision 1.164: download - view: text, markup, annotated - select for diffs
Mon Mar 5 02:55:32 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +3 -2
lines
Fix compression problem from Cliff Wright:
Break one: because b_cylinder, and b_resid are one and the same.
The work the routine was commented as being its primary function,
end of patition adjustment, is wiped out, as at the end of
the routine b_cylinder is set, splat, doing a wipe out of the adjustment
to b_resid.
Break two: When doing the adjustment, a block count is created from a
byte count, a block calculation is done, then the results are compared to
the original byte count. i.e. apples to oranges, not blocks to blocks,
but blocks to bytes.
Break three: since if all the other drivers that used this routine
would have broken as vnd compress did, I must assume they always ignored
the results of this routine. So if end of patition adjustment is
really required then all these other drivers have been broken for a
long time.
Revision 1.163: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:43 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +7 -7
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.161.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:53:48 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +6 -6
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.114.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:09:56 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114.2.2: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.2: +8 -8
lines
sync with head.
Revision 1.162: download - view: text, markup, annotated - select for diffs
Wed Feb 21 22:59:58 2007 UTC (19 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +6 -6
lines
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
Revision 1.150.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:17 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.150.2.1: preferred, colored; branchpoint 1.150: preferred, colored; next MAIN 1.151: preferred, colored
Changes since revision 1.150.2.1: +4 -4
lines
Sync with head.
Revision 1.161: download - view: text, markup, annotated - select for diffs
Sun Jan 28 21:33:24 2007 UTC (19 years, 9 months ago) by chs
Branches: MAIN
CVS tags: post-newlock2-merge,
newlock2-nbase,
newlock2-base
Branch point for: yamt-idlelwp
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +4 -4
lines
don't print b_resid when it's not valid.
Revision 1.114.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:50 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114.2.1: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.1: +248 -117
lines
sync with head.
Revision 1.111.10.5.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 18 20:28:01 2006 UTC (19 years, 11 months ago) by ghen
Branches: netbsd-3-1
CVS tags: netbsd-3-1-1-RELEASE
Diff to: previous 1.111.10.5: preferred, colored; next MAIN 1.111.10.6: preferred, colored
Changes since revision 1.111.10.5: +4 -3
lines
Pull up following revision(s) (requested by cube in ticket #1530):
sys/dev/vnd.c: revision 1.153
Don't accept a compressed image that has 0 for the block size...
Fixes PR#34608.
Revision 1.111.10.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 18 20:26:55 2006 UTC (19 years, 11 months ago) by ghen
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE
Diff to: previous 1.111.10.5: preferred, colored; next MAIN 1.111.10.6: preferred, colored
Changes since revision 1.111.10.5: +2 -1
lines
Pull up following revision(s) (requested by cube in ticket #1530):
sys/dev/vnd.c: revision 1.153
Don't accept a compressed image that has 0 for the block size...
Fixes PR#34608.
Revision 1.111.10.6: download - view: text, markup, annotated - select for diffs
Mon Dec 18 15:34:12 2006 UTC (19 years, 11 months ago) by ghen
Branches: netbsd-3
Diff to: previous 1.111.10.5: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.10.5: +2 -1
lines
Pull up following revision(s) (requested by cube in ticket #1530):
sys/dev/vnd.c: revision 1.153
Don't accept a compressed image that has 0 for the block size...
Fixes PR#34608.
Revision 1.150.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:53 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.150.4.1: preferred, colored; branchpoint 1.150: preferred, colored; next MAIN 1.151: preferred, colored
Changes since revision 1.150.4.1: +245 -118
lines
sync with head.
Revision 1.150.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:03 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +241 -109
lines
Sync with head.
Revision 1.160: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:45 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
netbsd-4-base
Branch point for: wrstuden-fixsa,
netbsd-4
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +16 -16
lines
__unused removal on arguments; approved by core.
Revision 1.159: download - view: text, markup, annotated - select for diffs
Sat Nov 11 13:42:14 2006 UTC (20 years ago) by jmmv
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +5 -15
lines
Do not mess with B_VFLUSH in the read/write case. Requested by yamt@.
(I did this because the system could panic otherwise. But this seemed to
be a side-effect of another mistake that was present in the code before it
was commited. So effectively this simplification should have happened
before.)
Revision 1.158: download - view: text, markup, annotated - select for diffs
Fri Nov 10 14:31:14 2006 UTC (20 years ago) by martin
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +6 -4
lines
size_t is not always == int
Revision 1.157: download - view: text, markup, annotated - select for diffs
Thu Nov 9 15:27:40 2006 UTC (20 years ago) by jmmv
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +238 -103
lines
Check if the underlying file system supports VOP_BMAP and VOP_STRATEGY and,
if not, fallback to VOP_READ and VOP_WRITE. This makes vnd work with files
on, e.g. tmpfs and smbfs; all file systems should behave as before.
OK'ed by silence in tech-kern@.
Revision 1.150.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:28 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +20 -15
lines
sync with head
Revision 1.156: download - view: text, markup, annotated - select for diffs
Tue Oct 17 18:21:29 2006 UTC (20 years, 1 month ago) by dogcow
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +2 -4
lines
now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Sat Oct 14 01:49:20 2006 UTC (20 years, 1 month ago) by dogcow
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +4 -2
lines
more super exciting fun unused arguments.
Revision 1.154: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:30:51 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +16 -13
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.153: download - view: text, markup, annotated - select for diffs
Mon Sep 25 13:47:26 2006 UTC (20 years, 1 month ago) by cube
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +4 -3
lines
Don't accept a compressed image that has 0 for the block size...
Fixes PR#34608.
Revision 1.152: download - view: text, markup, annotated - select for diffs
Sat Sep 23 07:54:17 2006 UTC (20 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +4 -4
lines
Use u_quad_t and not uint64_t (even though they might be the same),
pointed out by tsutsui@.
Revision 1.151: download - view: text, markup, annotated - select for diffs
Sat Sep 23 00:53:46 2006 UTC (20 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +4 -3
lines
PR/34589: Cliff Wright: vnd(4) compress error with large files
Applied slightly different patch (u_int64_t -> uint64_t), thanks!
Revision 1.141.2.5: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:26 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.141.2.4: preferred, colored; branchpoint 1.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141.2.4: +2 -5
lines
sync with head.
Revision 1.130.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:49:09 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.130: preferred, colored; next MAIN 1.131: preferred, colored
Changes since revision 1.130: +152 -109
lines
sync with head
Revision 1.150: download - view: text, markup, annotated - select for diffs
Sun Sep 3 19:49:34 2006 UTC (20 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +0 -3
lines
Back out rev 1.149.
From various discussion about vndstrategy (see
http://mail-index.netbsd.org/tech-kern/2005/03/29/0034.html
http://mail-index.netbsd.org/tech-kern/2005/03/23/0015.html)
it's not correct to tsleep() in a strategy routine, which may be called from
interrupt context.
Unfortunably this reopens PR/10731, PR/12189, PR/20296, PR/34293
As for what the correct fix it, this needs to be analysed deeper. I suspect
throttling the caller in vnd only hides the problem; the same caller writing
to some other device could exaust all buffers as well. If this driver doesn't
need to allocate buffer this won't cause a deadlock, but it's bad for
performances on systems with e.g. multiple drives. Also, others stacked
block device drivers may also have this issue.
Revision 1.141.2.4: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:55 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.141.2.3: preferred, colored; branchpoint 1.141: preferred, colored
Changes since revision 1.141.2.3: +5 -2
lines
sync with head.
Revision 1.149: download - view: text, markup, annotated - select for diffs
Sun Aug 27 18:45:20 2006 UTC (20 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base8
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +5 -2
lines
PR/34293: Michael van Elst: vnd deadlocks on I/O buffers
Also fixes: PR/10731, PR/12189, PR/20296
Sleep while there a buffer shortage.
Revision 1.141.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:43:52 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.141.2.2: preferred, colored; branchpoint 1.141: preferred, colored
Changes since revision 1.141.2.2: +9 -10
lines
sync with head
Revision 1.148: download - view: text, markup, annotated - select for diffs
Fri Jul 21 16:48:48 2006 UTC (20 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +9 -10
lines
- Use the LWP cached credentials where sane.
- Minor cosmetic changes.
Revision 1.114.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:12 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +599 -333
lines
sync with head.
Revision 1.135.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:03 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.135.2.1: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135.2.1: +15 -13
lines
Sync with head.
Revision 1.141.6.3: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:07 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.141.6.2: preferred, colored; branchpoint 1.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141.6.2: +15 -13
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.141.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:36 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.141.2.1: preferred, colored; branchpoint 1.141: preferred, colored
Changes since revision 1.141.2.1: +15 -13
lines
sync with head.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Sun May 14 21:42:26 2006 UTC (20 years, 6 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
chap-midi
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +15 -13
lines
integrate kauth.
Revision 1.141.4.3: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:27 2006 UTC (20 years, 6 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.141.4.2: preferred, colored; branchpoint 1.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141.4.2: +4 -2
lines
- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
that need it.
Approved by core.
Revision 1.135.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:46 2006 UTC (20 years, 6 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +26 -24
lines
Sync with head.
Revision 1.141.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:24 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.141.4.1: preferred, colored; branchpoint 1.141: preferred, colored
Changes since revision 1.141.4.1: +8 -7
lines
sync with head.
Revision 1.141.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:43 2006 UTC (20 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +8 -7
lines
sync with head.
Revision 1.141.6.2: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:17 2006 UTC (20 years, 7 months ago) by tron
Branches: peter-altq
Diff to: previous 1.141.6.1: preferred, colored; branchpoint 1.141: preferred, colored
Changes since revision 1.141.6.1: +5 -7
lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Thu Mar 30 15:19:45 2006 UTC (20 years, 7 months ago) by cube
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
elad-kernelauth-base
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +3 -5
lines
Silence device creation and destruction. That means there won't be
spurious messages when doing "vnconfig -l", but it also means there won't
be a message when an actual device is created. Oh, well.
PR#33116 by Izumi Tsutsui.
Revision 1.145: download - view: text, markup, annotated - select for diffs
Wed Mar 29 04:16:48 2006 UTC (20 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +3 -3
lines
Use device_cfdata().
Revision 1.144: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:38:29 2006 UTC (20 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +3 -3
lines
Use device_unit().
Revision 1.141.6.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:03 2006 UTC (20 years, 7 months ago) by tron
Branches: peter-altq
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +5 -2
lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Tue Mar 21 10:22:59 2006 UTC (20 years, 8 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +5 -3
lines
as yamt and bouyer pointed out, there are a few other cases where l should
be checked for NULL, if one's going to do it at all, and that the proper idiom
is KASSERT, not panic.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Sat Mar 18 01:13:24 2006 UTC (20 years, 8 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -2
lines
in VNDIOCGET, make sure there's a valid lwp. coverity CID 837.
Revision 1.141.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:44:48 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +13 -13
lines
Adapt to kernel authorization KPI.
Revision 1.141: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:38:13 2006 UTC (20 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
peter-altq,
elad-kernelauth
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -4
lines
merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
Revision 1.125.2.5: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:02 2006 UTC (20 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.125.2.4: preferred, colored; next MAIN 1.126: preferred, colored
Changes since revision 1.125.2.4: +29 -25
lines
sync with head.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Sat Feb 4 13:40:38 2006 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +4 -8
lines
vndthread: fix an integer overflow. fix a panic reported by Simon Burge.
Revision 1.139: download - view: text, markup, annotated - select for diffs
Sat Feb 4 13:38:04 2006 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +7 -3
lines
vndstrategy: do bounds_check_with_mediasize.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Sat Feb 4 11:52:32 2006 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +9 -4
lines
vndthread: play with b_vp and v_numoutput as it used to do,
for "strange" filesystems like nfs. PR/32671 from Simon Burge.
although i'm not really happy with this "fix", i think that the code will
be replaced with direct i/o anyway, sooner or later...
Revision 1.137: download - view: text, markup, annotated - select for diffs
Sat Feb 4 11:19:59 2006 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +2 -8
lines
vnd_cget: remove a wrong comment.
Revision 1.136: download - view: text, markup, annotated - select for diffs
Sat Feb 4 10:48:32 2006 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +5 -3
lines
vnd_destroy: don't access freed memory.
Revision 1.125.2.4: download - view: text, markup, annotated - select for diffs
Thu Feb 2 14:44:35 2006 UTC (20 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.125.2.3: preferred, colored
Changes since revision 1.125.2.3: +3 -3
lines
adapt VND_COMPRESSION.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Thu Feb 2 06:57:35 2006 UTC (20 years, 9 months ago) by cube
Branches: MAIN
Branch point for: simonb-timecounters
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3
lines
Fix typo.
Revision 1.134: download - view: text, markup, annotated - select for diffs
Thu Feb 2 06:56:30 2006 UTC (20 years, 9 months ago) by cube
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +11 -8
lines
Move the code that destroys the device to vndclose. That way it no longer
returns ENXIO when deconfiguring a vnd.
Revision 1.125.2.3: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:51:48 2006 UTC (20 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.125.2.2: preferred, colored
Changes since revision 1.125.2.2: +121 -85
lines
sync with head.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Wed Feb 1 05:05:22 2006 UTC (20 years, 9 months ago) by cube
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +16 -3
lines
Free cfdata memory. The tap LKM might be wrong in that area, to...
Pointed out by Greg Oster.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Wed Feb 1 04:30:10 2006 UTC (20 years, 9 months ago) by cube
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +5 -2
lines
Free the bufq. Pointed out by yamt@.
Revision 1.131: download - view: text, markup, annotated - select for diffs
Wed Feb 1 03:15:33 2006 UTC (20 years, 9 months ago) by cube
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +104 -83
lines
Have vnd(4) devices automatically created when the user tries to
configure one. That removes the compile-time constant that limits the
number of vnds.
Thanks xtraeme@ for testing.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Sun Jan 15 12:14:52 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
Branch point for: rpaulo-netinet-merge-pcb
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +3 -4
lines
compstrategy: remove bogus handling of B_PHYS.
Revision 1.125.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 15 10:02:47 2006 UTC (20 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.125.2.1: preferred, colored
Changes since revision 1.125.2.1: +103 -184
lines
sync with head.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Wed Jan 11 00:50:29 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +71 -157
lines
use nestiobuf api for vnd.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Wed Jan 11 00:49:59 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +1 -1
lines
don't set b_rawblkno unnecessarily.
it will be set by device strategy routine.
Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun Jan 8 09:09:00 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +23 -18
lines
do b_blkno -> b_rawblkno translation earlier so that bufq can use it.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Sat Jan 7 13:25:50 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +46 -46
lines
- do disk_busy/unbusy for requested i/o, rather than ones that we reuqest.
- on error, be conservative about b_resid.
- make vndthread static.
Revision 1.125.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 31 12:37:20 2005 UTC (20 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +3 -3
lines
adapt some random parts of kernel to uio_vmspace.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Wed Dec 14 19:49:16 2005 UTC (20 years, 11 months ago) by bouyer
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -3
lines
Only VNDIOCSET needs a valid process context, so don't blindly
dereference l, test it l is NULL first.
Fix exporting a vnd device to a XENU domain.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:20:53 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +21 -20
lines
merge ktrace-lwp.
Revision 1.123.6.2: download - view: text, markup, annotated - select for diffs
Fri Nov 18 08:44:54 2005 UTC (21 years ago) by yamt
Branches: yamt-readahead
CVS tags: yamt-readahead-pervnode
Diff to: previous 1.123.6.1: preferred, colored; branchpoint 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123.6.1: +3 -3
lines
- associate read-ahead context to vnode, rather than file.
- revert VOP_READ prototype.
Revision 1.123.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 15 04:12:01 2005 UTC (21 years ago) by yamt
Branches: yamt-readahead
CVS tags: yamt-readahead-perfile
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -3
lines
adapt vnd.
Revision 1.101.2.9: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:03:00 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.101.2.8: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.2.8: +361 -58
lines
Sync with HEAD. Here we go again...
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sat Oct 15 17:29:12 2005 UTC (21 years, 1 month ago) by yamt
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Branch point for: yamt-readahead
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +7 -7
lines
- change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
from sys/bufq.h to sys/bufq_impl.h.
(is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c. (not tested)
Revision 1.111.10.5: download - view: text, markup, annotated - select for diffs
Fri Oct 7 11:47:40 2005 UTC (21 years, 1 month ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE
Branch point for: netbsd-3-1,
netbsd-3-0
Diff to: previous 1.111.10.4: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.10.4: +3 -2
lines
Pull up following revision(s) (requested by xtraeme in ticket #867):
sys/dev/vnd.c: revision 1.119
Call VOP_UNLOCK() in the case where VND_COMPRESSION isn't defined and
we're about to return EOPNOTSUPP. Prevents a "locking against myself"
panic in vn_close() in the error return path.
Addresses PR# kern/30958
Revision 1.122: download - view: text, markup, annotated - select for diffs
Sun Aug 28 08:56:14 2005 UTC (21 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -3
lines
Fix logic error in vndiocget.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Sat Aug 20 12:01:04 2005 UTC (21 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +5 -4
lines
use pseudo_disk_{init,attach,detach} where appropriate.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Fri Aug 19 02:04:03 2005 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +50 -20
lines
64 bit inode changes.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu Aug 18 22:06:25 2005 UTC (21 years, 3 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +3 -2
lines
Call VOP_UNLOCK() in the case where VND_COMPRESSION isn't defined and
we're about to return EOPNOTSUPP. Prevents a "locking against myself"
panic in vn_close() in the error return path.
Addresses PR# kern/30958
Revision 1.111.10.4: download - view: text, markup, annotated - select for diffs
Sun Aug 14 21:14:32 2005 UTC (21 years, 3 months ago) by riz
Branches: netbsd-3
Diff to: previous 1.111.10.3: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.10.3: +290 -5
lines
Pull up revision 1.115 (requested by hubertf in ticket #625):
Add support for reading cloop2 compressed filesystem images,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Jul 25 13:25:08 2005 UTC (21 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +9 -14
lines
minor usability improvements:
-fabricate a trivial geometry also in the case of images <=1M
(XXX I didn't add a check for >0 size -- this is generally harmless
because there are enough boundary checks present, and it allows
to test some corner cases in the disklabel handling code)
-ignore the VNF_KLABEL flag -- the vnd device is if limited (and
well-defined!) lifetime anyway, and the implications of "keeplabel"
are confusing at best
Revision 1.117: download - view: text, markup, annotated - select for diffs
Mon Jul 18 16:36:29 2005 UTC (21 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -3
lines
Fix typo in previous [thanks jukka]
Revision 1.116: download - view: text, markup, annotated - select for diffs
Mon Jul 18 16:09:37 2005 UTC (21 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +239 -248
lines
Fix whitespace issues and use ansi prototypes.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Sun Jul 17 00:08:27 2005 UTC (21 years, 4 months ago) by hubertf
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +290 -5
lines
Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
Revision 1.106.4.2: download - view: text, markup, annotated - select for diffs
Mon May 16 05:21:56 2005 UTC (21 years, 6 months ago) by riz
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1
Diff to: previous 1.106.4.1: preferred, colored; branchpoint 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106.4.1: +4 -3
lines
Fix a build problem introduced in a previous pullup. [bouyer, ticket #1520]
Revision 1.106.4.1: download - view: text, markup, annotated - select for diffs
Fri May 13 18:07:13 2005 UTC (21 years, 6 months ago) by riz
Branches: netbsd-2
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +252 -192
lines
Pull up revisions 1.112 and 1.114 via patch(requested by bouyer in
ticket #1417):
Make vnd do I/O to the underlying file from thread context. This
allows the strategy routine to be called from interrupt context
Now that pool_get() is only called from thread context, change PR_NOWAIT to
PR_WAITOK. Fix PR kern/26272 by Juergen Hannken-Illjes.
OK'd by thorpej@
Don't eventually leak vnx and bp on unconfigure, pointed out by YAMAMOTO
Takashi. Instead, let the current I/O complete before killing the thread.
Revision 1.111.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:44 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111: +245 -191
lines
sync with -current
Revision 1.111.10.3: download - view: text, markup, annotated - select for diffs
Wed Apr 6 11:57:09 2005 UTC (21 years, 7 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.111.10.2: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.10.2: +7 -2
lines
Pull up revision 1.113 (requested by yamt in ticket #112):
introduce a function to drain bufq and use it where appropriate.
Revision 1.111.10.2: download - view: text, markup, annotated - select for diffs
Sun Apr 3 13:34:16 2005 UTC (21 years, 7 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.111.10.1: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.10.1: +2 -6
lines
Pull up revision 1.114 (requested by bouyer in ticket #85):
Don't eventually leak vnx and bp on unconfigure, pointed out by YAMAMOTO
Takashi. Instead, let the current I/O complete before killing the thread.
Revision 1.111.10.1: download - view: text, markup, annotated - select for diffs
Sun Apr 3 13:32:45 2005 UTC (21 years, 7 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +244 -191
lines
Pull up revision 1.112 (requested by bouyer in ticket #85):
Make vnd do I/O to the underlying file from thread context. This
allows the strategy routine to be called from interrupt context, fixes
PR kern/29775 by Juan RP.
Now that pool_get() is only called from thread context, change PR_NOWAIT to
PR_WAITOK. Fix PR kern/26272 by Juergen Hannken-Illjes.
OK'd by thorpej@
Revision 1.101.2.8: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:29:37 2005 UTC (21 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.101.2.7: preferred, colored
Changes since revision 1.101.2.7: +245 -191
lines
Sync with HEAD.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu Mar 31 18:02:16 2005 UTC (21 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: kent-audio2-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +2 -6
lines
Don't eventually leak vnx and bp on unconfigure, pointed out by YAMAMOTO
Takashi. Instead, let the current I/O complete before killing the thread.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Mar 31 11:28:53 2005 UTC (21 years, 7 months ago) by yamt
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +7 -2
lines
introduce a function to drain bufq and use it where appropriate.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Mar 30 19:23:08 2005 UTC (21 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +244 -191
lines
Make vnd do I/O to the underlying file from thread context. This
allows the strategy routine to be called from interrupt context, fixes
PR kern/29775 by Juan RP.
Now that pool_get() is only called from thread context, change PR_NOWAIT to
PR_WAITOK. Fix PR kern/26272 by Juergen Hannken-Illjes.
OK'd by thorpej@
Revision 1.101.2.7: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:19 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.101.2.6: preferred, colored
Changes since revision 1.101.2.6: +3 -2
lines
Sync with HEAD.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Thu Oct 28 07:07:39 2004 UTC (22 years ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
netbsd-3-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: netbsd-3,
kent-audio2
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -2
lines
move buffer queue related stuffs from buf.h to their own header, bufq.h.
Revision 1.101.2.6: download - view: text, markup, annotated - select for diffs
Fri Sep 24 10:53:27 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.101.2.5: preferred, colored
Changes since revision 1.101.2.5: +4 -4
lines
Sync with HEAD.
Revision 1.101.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:26:26 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.101.2.4: preferred, colored
Changes since revision 1.101.2.4: +17 -16
lines
Fix the sync with head I botched.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Sat Sep 18 16:40:11 2004 UTC (22 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +4 -4
lines
change some members of struct buf from long to int.
ride on 2.0H.
Revision 1.101.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:44:28 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.101.2.3: preferred, colored
Changes since revision 1.101.2.3: +18 -22
lines
Sync with HEAD.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Fri Sep 10 10:00:33 2004 UTC (22 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +4 -7
lines
vndstrategy/vndiodone:
don't call bgetvp/brelvp here. they are not interrupt safe.
as we're doing something like direct i/o,
there's no point to call them anyway.
Revision 1.101.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 3 12:45:17 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.101.2.2: preferred, colored
Changes since revision 1.101.2.2: +60 -97
lines
Sync with HEAD
Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Aug 30 00:34:42 2004 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +60 -97
lines
Use ANSI function decls, sprinkle static.
Revision 1.101.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:44:54 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.101.2.1: preferred, colored
Changes since revision 1.101.2.1: +52 -6
lines
Sync with HEAD
Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Apr 21 18:40:37 2004 UTC (22 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -3
lines
kill sprintf, use snprintf
Revision 1.106: download - view: text, markup, annotated - select for diffs
Sun Jan 25 18:06:48 2004 UTC (22 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: netbsd-2-base,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0
Branch point for: netbsd-2
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3
lines
Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern.
VOP_STRATEGY(bp) is replaced by one of two new functions:
- VOP_STRATEGY(vp, bp) Call the strategy routine of vp for bp.
- DEV_STRATEGY(bp) Call the d_strategy routine of bp->b_dev for bp.
DEV_STRATEGY(bp) is used only for block-to-block device situations.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Sat Jan 10 14:39:50 2004 UTC (22 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -2
lines
store a i/o priority hint in struct buf for buffer queue discipline.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Oct 19 07:41:19 2003 UTC (23 years, 1 month ago) by scw
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +6 -3
lines
Be more careful about validating the user-specified geometry, otherwise
it's too easy to specify a geometry which will cause a divide by zero
elsewhere in the disklabel code.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Oct 15 11:28:59 2003 UTC (23 years, 1 month ago) by hannken
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +8 -2
lines
Add the gating of system calls that cause modifications to the underlying
file system.
The function vfs_write_suspend stops all new write operations to a file
system, allows any file system modifying system calls already in progress
to complete, then sync's the file system to disk and returns. The
function vfs_write_resume allows the suspended write operations to
complete.
From FreeBSD with slight modifications.
Approved by: Frank van der Linden <fvdl@netbsd.org>
Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:30:52 2003 UTC (23 years, 3 months ago) by agc
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +38 -3
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:02 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +20 -19
lines
Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:03 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +17 -18
lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:32 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +20 -19
lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
Revision 1.99: download - view: text, markup, annotated - select for diffs
Sat May 17 16:11:52 2003 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +24 -5
lines
Add DIOCKLABEL support. Fixes PR kern/21605 (Luke Mewburn).
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat May 10 23:12:43 2003 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3
lines
Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself. This paves the way for some future changes.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Fri May 2 08:45:26 2003 UTC (23 years, 6 months ago) by dsl
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3
lines
Change return type of readdisklabel() to const char *
I hope I've found all the correct places!
Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Apr 26 12:02:12 2003 UTC (23 years, 6 months ago) by dsl
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -3
lines
In the absensce of a netbsd disklabel:
- Use partition size (instead of type) to determine whether a disklabel slot
has been filled in (eg from mbr info on i386).
- Set number of partitions to 16 to stop disklabel bleating.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Fri Apr 11 16:11:49 2003 UTC (23 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +34 -10
lines
Add a VNDIOF_FORCE flag which forces unconfiguration if the emulated
disk is still in use.
Not for everyday use, but we have to face eg USB flash drives being
unplugged at the wrong time, and this is a way to simulate this without
wearing out the connectors.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Mar 27 15:34:36 2003 UTC (23 years, 7 months ago) by yamt
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +28 -12
lines
read-only configuration support.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Sat Mar 1 08:01:17 2003 UTC (23 years, 8 months ago) by enami
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -5
lines
Don't require root privilege explicitly to issue ioctl. It should be
controlled by file's attribute.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Feb 25 20:35:34 2003 UTC (23 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -4
lines
Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and
use it. This fixes a few places where either b_dep or b_interlock were
not properly initialized.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Feb 5 21:38:39 2003 UTC (23 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -2
lines
Make the buffer cache code MP-safe.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Sat Jan 25 23:09:59 2003 UTC (23 years, 9 months ago) by kleink
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +7 -5
lines
Fix further printf format warnings for DEBUG, in the wake of daddr_t
having changed.
Revision 1.71.2.16: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:37:48 2002 UTC (23 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.71.2.15: preferred, colored; branchpoint 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71.2.15: +16 -3
lines
Sync with HEAD.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat Nov 16 08:10:48 2002 UTC (24 years ago) by mrg
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +18 -5
lines
vnd.c
- allow vnddetach() to return EBUSY if any vnd's are currently initialised.
lkm:
- add new 'dev' directory, initially with just a 'vnd' LKM. for now, the
vnd lkm driver requests 4 devices....
XXX: vnd should be converted to a psuedo-device that creates & deletes
instances of itself (vnd0, vnd1, etc) when vnconfig -c/-u are called,
then the vnd lkm driver can not be limited to '4' by default.
Revision 1.71.2.15: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:08:53 2002 UTC (24 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.14: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.14: +2 -2
lines
Catch up to -current
Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Nov 1 11:31:56 2002 UTC (24 years ago) by mrg
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3
lines
implement separate read/write disk statistics:
- disk_unbusy() gets a new parameter to tell the IO direction.
- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
when processing hw.diskstats, add the read&write bytes/transfers for
the old combined stats to attempt to keep backwards compatibility.
unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail. however, the next time this is
change it will not fail again.
this is just the kernel portion.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:13:05 2002 UTC (24 years ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3
lines
merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
Revision 1.72.2.6: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:38:22 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.72.2.5: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.5: +20 -2
lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
Revision 1.71.2.14: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:19:25 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.13: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.13: +18 -0
lines
Catch up to -current.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (24 years, 2 months ago) by gehenna
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-base
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +20 -2
lines
Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.
- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.
- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
Revision 1.72.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:43:47 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.72.2.4: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.4: +59 -43
lines
sync kqueue branch with HEAD
Revision 1.79.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:19 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.79.2.2: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.2.2: +28 -43
lines
catch up with -current.
Revision 1.71.2.13: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:19:19 2002 UTC (24 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.12: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.12: +0 -12
lines
Catch up to -current.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Aug 12 02:34:12 2002 UTC (24 years, 3 months ago) by enami
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -7
lines
No longer need to calculate geomsize if we use fictitious geometry.
Revision 1.79.4.1: download - view: text, markup, annotated - select for diffs
Sat Aug 3 00:59:46 2002 UTC (24 years, 3 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +2 -9
lines
Pull up revision 1.84 (via patch) (requested by oster in #612):
Do not truncate the size of the vnd, as that will cause lossage with
images with sizes that are not multiples of 1MB. Fix as proposed by me on
tech-kern, and ok'ed by Christos.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Fri Aug 2 14:43:32 2002 UTC (24 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +2 -9
lines
Do not truncate the size of the vnd, as that will cause lossage with
images with sizes that are not multiples of 1MB. Fix as proposed by me on
tech-kern, and ok'ed by Christos.
Revision 1.71.2.12: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:44:34 2002 UTC (24 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.11: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.11: +59 -31
lines
Catch up to -current.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri Jul 26 06:16:32 2002 UTC (24 years, 3 months ago) by enami
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +20 -27
lines
Don't sprinkle cleanup code here and there (necessary cleanup was missed).
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Jul 21 15:32:18 2002 UTC (24 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +8 -3
lines
Rename bufq_init() to bufq_alloc().
Add bufq_free() to remove a buffer queue.
Avoid MALLOC while holding a spinlock.
From Chuck Silvers.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Jul 20 11:28:08 2002 UTC (24 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -6
lines
Convert to new device buffer queue interface.
Revision 1.79.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:35:10 2002 UTC (24 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.79.2.1: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.2.1: +33 -2
lines
catch up with -current.
Revision 1.71.2.11: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:40:07 2002 UTC (24 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.10: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.10: +2 -3
lines
No longer need to pull in lwp.h; proc.h pulls it in for us.
Revision 1.71.2.10: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:09:46 2002 UTC (24 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.9: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.9: +6 -6
lines
Curproc->curlwp renaming.
Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".
"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
Revision 1.72.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:45:01 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.72.2.3: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.3: +4 -3
lines
catch up with -current on kqueue branch
Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Jun 21 19:09:31 2002 UTC (24 years, 5 months ago) by atatat
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +33 -2
lines
Provide a means for vnconfig to indicate which devices are in use, and
by which files (hmm...why can't I unmount that file system over
there). Currently this is just the device and inode number of the
file backing the vnd, but hopefully consing up full pathnames can be
done at some point.
Revision 1.71.2.9: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:43:25 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.8: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.8: +4 -3
lines
Catch up to -current.
Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Thu May 16 04:47:32 2002 UTC (24 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +20 -2
lines
Add the block/character device switches.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu May 2 16:25:23 2002 UTC (24 years, 6 months ago) by briggs
Branches: MAIN
CVS tags: netbsd-1-6-base
Branch point for: netbsd-1-6,
gehenna-devsw
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +4 -3
lines
Ensure that b_bufsize is set to a range covering the buffer in vndstrategy().
This addresses kern/16570 where using the raw vnd device with a file backed by
NFS was failing due to bp->b_bufsize being 0.
Revision 1.71.2.8: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:45:05 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.7: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.7: +4 -4
lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
Revision 1.72.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:00:48 2002 UTC (24 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.72.2.2: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.2: +4 -4
lines
Catch up with -current.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Mar 8 20:48:37 2002 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: newlock-base,
newlock,
eeh-devprop-base,
eeh-devprop
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -4
lines
Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map). Try to deal with this:
* Group all information about the backend allocator for a pool in a
separate structure. The pool references this structure, rather than
the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
to become available, but will still fail if it cannot callocate KVA
space for the pages. If this happens, carefully drain all pools using
the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
some pages, and use that information to make draining easier and more
efficient.
* Get rid of PR_URGENT. There was only one use of it, and it could be
dealt with by the caller.
From art@openbsd.org.
Revision 1.71.2.7: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:13:11 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.6: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.6: +3 -4
lines
Catch up to -current.
Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:09:38 2002 UTC (24 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.1: +3 -4
lines
Sync w/ -current.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Jan 13 19:28:08 2002 UTC (24 years, 10 months ago) by tsutsui
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -4
lines
Call malloc(9) with M_ZERO flag instead of memset() after malloc().
Revision 1.71.2.6: download - view: text, markup, annotated - select for diffs
Fri Jan 11 23:38:55 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.5: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.5: +10 -2
lines
More catchup.
Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:52:51 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +19 -1
lines
Sync kqueue branch with -current.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Jan 4 06:31:08 2002 UTC (24 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +10 -2
lines
add a vnddetach: it just free()s the vnd_softc. useful for LKM.
Revision 1.71.2.5: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:13:42 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.4: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.4: +4 -1
lines
Catch up to -current.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Nov 13 05:32:50 2001 UTC (25 years ago) by lukem
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -1
lines
add RCSIDs
Revision 1.71.2.4: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:41:15 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.3: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.3: +3 -1
lines
Catch up to -current.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Oct 22 16:43:55 2001 UTC (25 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: thorpej-mips-cache-base,
thorpej-mips-cache
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -1
lines
use _KERNEL_OPT so this can be built as an LKM.
Revision 1.71.2.3: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:10:56 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.2: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.2: +6 -1
lines
Catch up to -current.
Revision 1.72.4.3: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:44:12 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.72.4.2: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.4.2: +6 -1
lines
Catch up with -current.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Sep 30 12:32:09 2001 UTC (25 years, 1 month ago) by chs
Branches: MAIN
CVS tags: thorpej-devvp-base3,
thorpej-devvp-base2
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -1
lines
in vndstrategy(), handle the underlying file being force-unmounted.
Revision 1.72.4.2: download - view: text, markup, annotated - select for diffs
Wed Sep 26 15:28:10 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.72.4.1: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.4.1: +58 -33
lines
* add a VCLONED vnode flag that indicates a vnode representing a cloned
device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
to the specinfo of a cloned vnode. could possibly redirect getattr to
the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
original device, and reassociates it with the specified dev_t. to be
used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
when debugging race conditions that still exist wrt. locking and
revoking vnodes.
* make the locking state of a vnode consistent when passed to
d_open and d_close (unlocked). locked would be better, but has
some deadlock issues
Revision 1.72.4.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:45:23 2001 UTC (25 years, 2 months ago) by thorpej
Branches: thorpej-devvp
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +56 -63
lines
Commit my "devvp" changes to the thorpej-devvp branch. This
replaces the use of dev_t in most places with a struct vnode *.
This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).
Revision 1.71.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:03 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71.2.1: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.1: +6 -6
lines
Catch up with -current.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Jul 7 17:04:02 2001 UTC (25 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp,
kqueue
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -6
lines
bcopy -> memcpy
bzero -> memset
Revision 1.65.4.2: download - view: text, markup, annotated - select for diffs
Tue May 1 12:27:07 2001 UTC (25 years, 6 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001
Diff to: previous 1.65.4.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.4.1: +54 -2
lines
Pull up revisions 1.70-1.71 (requested by fvdl):
Increase the number of BSD disklabel partitions on i386 to 16.
Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 5 22:49:33 2001 UTC (25 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -5
lines
Initial commit of scheduler activations and lightweight process support.
Revision 1.61.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:15 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.61.2.2: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.2.2: +54 -2
lines
Sync with head (for UBC+NFS fixes, mostly).
Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Jan 8 02:03:46 2001 UTC (25 years, 10 months ago) by fvdl
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3
lines
Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL when
the number of partitions is > OLDMAXPARTITIONS. This is better
than silently truncating the label (don't want to silently throw
away partitions when using an old disklabel binary on a label with
> 8 partitions). From Enami Tsugutomo.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Jan 7 18:09:01 2001 UTC (25 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +55 -3
lines
Adapt all disk devices in MI directories to handle ODIOC* calls
for ports that have bumped MAXPARTITIONS (and thus define
__HAVE_OLD_DISKLABEL).
Revision 1.61.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:12:15 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.61.2.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.2.1: +1 -23
lines
Sync with HEAD.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Nov 27 08:39:41 2000 UTC (25 years, 11 months ago) by chs
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +1 -23
lines
Initial integration of the Unified Buffer Cache project.
Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:39:48 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +36 -33
lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
Revision 1.65.4.1: download - view: text, markup, annotated - select for diffs
Wed Sep 13 02:18:33 2000 UTC (26 years, 2 months ago) by enami
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-BETA2,
netbsd-1-5-BETA
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +5 -4
lines
Pullup rev. 1.68 (approved by thorpej):
Define an auto variable `bn' as off_t instead of int since it is finally
converted to byte offset.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Sep 12 08:03:24 2000 UTC (26 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +5 -4
lines
Define an auto variable `bn' as off_t instead of int since it is finally
converted to byte offset.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Aug 20 11:51:52 2000 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -2
lines
Remove duplicate `flags' from printf format string.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Aug 19 10:44:02 2000 UTC (26 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +5 -4
lines
When breaking up a transfer in vndstrategy(), only inherit B_READ and
B_ASYNC from the original buffer's flags.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Mar 30 12:45:27 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-ALPHA2,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +13 -13
lines
Remove register declarations.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Feb 7 20:16:55 2000 UTC (26 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -2
lines
Fix a bug in disksort_*() which caused non-optimal ordering when multiple
active partitions were on a single spindle. Add a b_rawblkno member to
struct buf which contains the non-partition-relative block number to sort
by.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Jan 21 23:39:57 2000 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +14 -14
lines
Update for sys/buf.h/disksort_*() changes.
Revision 1.61.8.2: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:35 1999 UTC (26 years, 10 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.61.8.1: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.8.1: +2 -1
lines
Pull up to last week's -current.
Revision 1.61.8.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 23:19:52 1999 UTC (26 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +33 -17
lines
Initial commit of recent changes to make DEV_BSIZE go away.
Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.
cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.
Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Nov 17 09:34:03 1999 UTC (27 years ago) by fvdl
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -1
lines
Initialize buffer dependencies list for soft updates when initializing
a new buffer.
Revision 1.60.4.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:17:36 1999 UTC (27 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.60.4.1: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.4.1: +0 -0
lines
Sync w/ -current.
Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 22:52:54 1999 UTC (27 years, 7 months ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: chs-ubc2
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +5 -1
lines
pullup 1.60->1.61 (thorpej): add missing splbio()/spx() pairs.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Apr 21 22:14:15 1999 UTC (27 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-base
Branch point for: wrstuden-devbsize,
thorpej_scsipi
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -1
lines
Add a couple of missing splbio()/splx() pairs that caused pool corruption.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Nov 12 22:39:57 1998 UTC (28 years ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-4-base,
kenh-if-detach-base,
kenh-if-detach
Branch point for: netbsd-1-4
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
Must use PR_NOWAIT when allocating component buffers.
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 8 03:06:46 1998 UTC (28 years, 3 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +24 -17
lines
Revert cdevsw mmap routines to return int.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Jul 31 02:24:26 1998 UTC (28 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc-base,
chs-ubc
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +24 -17
lines
Use the pool allocator for vndxfer and vndbuf structures.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Mar 12 16:51:41 1998 UTC (28 years, 8 months ago) by bouyer
Branches: MAIN
CVS tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -13
lines
Better fix for PR 5113, per discussion with fvdl: now that the vnode locking
interface allow recusive locks, use it instead of the local hack to avoid
recursive locking.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Mar 4 15:34:41 1998 UTC (28 years, 8 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2
lines
Fix vn_lock argument botch. From Manuel Bouyer (PR 5113).
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:21:00 1998 UTC (28 years, 8 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +10 -10
lines
Merge with Lite2 + local changes
Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Feb 19 00:47:02 1998 UTC (28 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -1
lines
Include the NFS option header.
Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 29 12:30:56 1998 UTC (28 years, 9 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.1: +20 -2
lines
Pull up 1.52 and 1.53 (enami) and 1.54 (bad)
Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Jan 26 23:30:44 1998 UTC (28 years, 9 months ago) by bad
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +12 -1
lines
In vndsetcred(): after establishing credentials, flush all buffers
associated with the vnode from the buffer cache. This obviates the
need to flush the buffer cache manually after ``vnconfig -u''.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Dec 31 02:46:51 1997 UTC (28 years, 10 months ago) by enami
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2
lines
Fix a typo in panic string.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Dec 31 02:38:24 1997 UTC (28 years, 10 months ago) by enami
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +8 -1
lines
When building fake disklabel, if a partition type is other than FS_UNUSED
don't override it so that port specific hack takes effect.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 9 20:28:39 1997 UTC (28 years, 11 months ago) by thorpej
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +84 -47
lines
Sync w/ trunk: fix several race conditions (pk)
Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Dec 2 13:54:50 1997 UTC (28 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +84 -47
lines
Pull over fixes from vm_swap.c:
- guard against synchronous I/O completion
- avoid race conditions
- use bgetvp/brelvp to properly maintain the vnode holdcount
and clean/dirty buffer lists.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Oct 20 00:11:03 1997 UTC (29 years, 1 month ago) by fvdl
Branches: MAIN
CVS tags: netbsd-1-3-base,
netbsd-1-3-BETA
Branch point for: netbsd-1-3
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +14 -4
lines
Do hack around VOP_BMAP call to avoid recursive locks. The locking
interface doesn't allow currently to specify recursive locks.
Should fix vnd device locking panics.
Revision 1.44.4.3: download - view: text, markup, annotated - select for diffs
Tue Oct 14 10:22:12 1997 UTC (29 years, 1 month ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.44.4.2: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.4.2: +33 -14
lines
Update marc-pcmcia branch from trunk.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Oct 10 02:05:36 1997 UTC (29 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: marc-pcmcia-base
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -1
lines
Add a missing splx(). From augustss.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Oct 9 08:11:12 1997 UTC (29 years, 1 month ago) by jtc
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3
lines
Fix tipo inherited from old version of TNF copyright template.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Oct 8 23:07:00 1997 UTC (29 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +30 -12
lines
Implement DIOCGDEFLABEL.
Revision 1.44.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 27 23:29:50 1997 UTC (29 years, 2 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.44.4.1: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.4.1: +4 -2
lines
Update marc-pcmcia branch from trunk.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Aug 26 18:12:58 1997 UTC (29 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-signal-base,
thorpej-signal
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -2
lines
Add missing call to vndunlock(), per PR #3811, enami tsugutomo.
Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Sat Aug 23 07:12:51 1997 UTC (29 years, 3 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +10 -10
lines
Update marc-pcmcia branch from trunk.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Aug 4 10:00:13 1997 UTC (29 years, 3 months ago) by fair
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +10 -10
lines
%x -> 0x%x
Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Jun 26 16:28:37 1997 UTC (29 years, 4 months ago) by kleink
Branches: MAIN
CVS tags: marc-pcmcia-bp,
bouyer-scsipi
Branch point for: marc-pcmcia
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -1
lines
Leftover from last commit: require us to be initialized when a DIOCGDINFO
ioctl(2) is issued; the uninitialized disklabel pointer might get dereferenced
otherwise.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Jun 26 04:16:31 1997 UTC (29 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +23 -21
lines
In vndioctl(), consolidate checks for "open for writes" and "initialized",
and cover all of the cases we're supposed to cover.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Jun 26 04:06:57 1997 UTC (29 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -3
lines
Remove an outdated comment that is not true with the Mach VM system.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Jun 23 21:03:55 1997 UTC (29 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +359 -52
lines
Add full disklabel and partition support to the vnd driver, allowing much
greater flexibility in its use. Additionally, add support for "geometry
emulation". This allows the "geometry" of the "disk" to be specified
at config time, providing near-perfect emulation of disklabel-less floppies,
CD-ROMs, etc., including non-512-byte sectors. If a geometry is not
specified at config time, a default based on 1M cylinders will be used.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jun 8 15:59:41 1997 UTC (29 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -21
lines
Remove attempt to use files with holes; it's prone to deadlocks.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Jun 8 15:55:34 1997 UTC (29 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +7 -2
lines
Avoid race for residual count and pending requests count.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon May 26 20:28:38 1997 UTC (29 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2
lines
Pass correct offset to vn_rdwr().
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun May 25 22:27:16 1997 UTC (29 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +23 -8
lines
Add code (#ifdef'ed VND_FILLHOLES for now) to fall back on vn_rdwr()
if VOP_BMAP() does not produce a translation.
IO_SYNC is used to prevent dirty file cache buffers. On a ffs filesystem,
once a hole is filled, subsequent vnd accesses find will find valid
VOP_BMAP() translations.
Concerns:
* is the assumed semantics correct for all filesystems?
* do we actually want the automagic extension on the VND
backing store..
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun May 25 19:37:36 1997 UTC (29 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +64 -26
lines
Use an additional structure to keep information on a set of transfers
initiated by vnd_strategy(). This allows for more natural error handling
and solves two bugs:
* vnd can disk_unbusy without disk_busy (PR#2657)
* b_resid is set correctly on the external at the end
of a transfer in case of an error.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun May 25 16:21:45 1997 UTC (29 years, 5 months ago) by pk
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2
lines
Pass correct transfer count to disk_unbusy().
Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon May 19 22:08:56 1997 UTC (29 years, 6 months ago) by pk
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -3
lines
Avoid negative values for `b_dirtyend' and `b_validend'.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon May 19 14:41:54 1997 UTC (29 years, 6 months ago) by pk
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +19 -5
lines
Fill in b_dirtyoff/b_dirtyend and b_validoff/b_validend appropriately
in each auxiliary buffer; the strategy routines (esp. NFS's) like that.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Mar 12 22:31:40 1997 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -6
lines
Remove bogus use of splhigh(), and apparently unneeded bzero().
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Jan 31 05:18:51 1997 UTC (29 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2
lines
NFSCLIENT -> NFS
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Oct 13 01:37:08 1996 UTC (30 years, 1 month ago) by christos
Branches: MAIN
CVS tags: thorpej-setroot
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +17 -17
lines
backout kprintf changes
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Oct 10 22:25:09 1996 UTC (30 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +18 -18
lines
printf -> kprintf, sprintf -> ksprintf
Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Sep 25 02:22:10 1996 UTC (30 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +7 -6
lines
Avoid problems with ptrdiff_t and size_t being different on different
architectures, by adding explicit casts to printf arguments. Is there
a better way to do this?
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Jul 10 18:15:22 1996 UTC (30 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -4
lines
print difference between pointers with %ld, so that -Wformat works
on the Alpha and for consistency. Also, other minor formatting cleanups.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Mar 30 23:06:11 1996 UTC (30 years, 7 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -6
lines
Remove dependencies to dev_conf.h and the file itself.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Mar 16 23:19:08 1996 UTC (30 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
fix printf() formats
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Feb 10 00:11:44 1996 UTC (30 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +33 -34
lines
vnd.c: Typo (disk_deta{t,}ch) It was detach in the header file and
detatch everywhere else. Reverted to the english spelling.
Also fixed the rest of the prototype warnings while I was at it.
ic/ncr5380sbc.c: Don't declare Debugger()... I have to clean this
everywhere :-(
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jan 7 22:03:33 1996 UTC (30 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +17 -2
lines
New generic disk framework. Highlights:
- New metrics handling. Metrics are now kept in the new
`struct disk'. Busy time is now stored as a timeval, and
transfer count in bytes.
- Storage for disklabels is now dynamically allocated, so that
the size of the disk structure is not machine-dependent.
- Several new functions for attaching and detaching disks, and
handling metrics calculation.
Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.
For usage and architectural details, see the forthcoming disk(9) manual
page.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Nov 6 20:28:09 1995 UTC (31 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +190 -20
lines
Bring in several changes from the ccd:
* Be a bit better with prototypes
* Use struct dkdevice in vnd_softc.
* Prevent the unit from being unconfigured while open.
* Implement a simple locking mechanism and use it for sanity's
sake.
Still needs more work; needs to support disklabels and the like.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Oct 5 06:20:57 1995 UTC (31 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -1
lines
Lock the underlying vnode around VOP_BMAP() and VOP_READ(). From John Kohl.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Jul 4 07:18:27 1995 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +27 -1
lines
Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely. Remove d_strategy from cdevsw to
force the abstraction barrier.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jun 26 05:34:47 1995 UTC (31 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -3
lines
make dump stubs consistent
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Feb 27 19:31:00 1995 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +49 -40
lines
use a buf-within-struct to avoid overloading b_pfcent.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jan 25 04:45:38 1995 UTC (31 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +131 -131
lines
vn -> vnd renaming, for consistency
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Dec 24 14:05:51 1994 UTC (31 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +17 -1
lines
various cleanups for -Wall, suggested by James Jegers.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Dec 14 19:09:15 1994 UTC (31 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2
lines
Remove extra arg to d_open and vn_open().
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Nov 14 06:00:11 1994 UTC (32 years ago) by christos
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2
lines
added extra argument to vn_open
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Oct 30 21:47:32 1994 UTC (32 years ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
be more careful with types, also pull in headers where necessary.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 24 18:19:55 1994 UTC (32 years, 3 months ago) by mycroft
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +2 -2
lines
update from trunk
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Aug 24 16:49:16 1994 UTC (32 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2
lines
fix (bogus) default ioctl return.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:31:35 1994 UTC (32 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -1
lines
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jun 27 19:49:48 1994 UTC (32 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -0
lines
new standard, minimally intrusive ID format
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jun 14 00:25:43 1994 UTC (32 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +0 -19
lines
kill some pre-lite code that was #ifdef'd appropriately
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 24 01:05:33 1994 UTC (32 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -0
lines
provide upgrade notice
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed May 11 10:03:59 1994 UTC (32 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +0 -28
lines
Get rid of the private vnread() and vnwrite(); they are the same as rawread()
and rawwrite().
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed May 11 04:26:17 1994 UTC (32 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -0
lines
Device strategy functions return void again.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Apr 20 05:01:22 1994 UTC (32 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +50 -38
lines
update from hibler
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Feb 27 08:41:11 1994 UTC (32 years, 8 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -0
lines
add vnclose function
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Dec 21 06:01:32 1993 UTC (32 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -5
lines
fix that last
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Dec 21 05:24:31 1993 UTC (32 years, 11 months ago) by brezak
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2
lines
Tweak for BSD44/NetBSD environ.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 04:17:02 1993 UTC (32 years, 11 months ago) by brezak
Branches: MAIN
vnode driver (from Mike Hibler make@cs.utah.edu)
CVSweb <webmaster@jp.NetBSD.org>