CVS log for src/sys/dev/fss.c
Up to [cvs.NetBSD.org] / src / sys / dev
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.114.6.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:21:46 2026 UTC (11 days, 4 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +9 -3
lines
Sync with HEAD
Revision 1.107.4.2: download - view: text, markup, annotated - select for diffs
Sun Aug 2 13:46:01 2026 UTC (3 months, 2 weeks ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE
Diff to: previous 1.107.4.1: preferred, colored; branchpoint 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107.4.1: +8 -2
lines
Pull up following revision(s) (requested by hannken in ticket #2042):
sys/dev/fss.c: revision 1.116
Bracket I/O from or to the backing store with fstrans_start_lazy()
so the fss device doesn't block before the file system is suspended.
Should fix some deadlocks with revokation of ttys.
PR kern/59663 (ffs_snapshot_read -> uvm_fault (or pool page empty)
Revision 1.113.4.2: download - view: text, markup, annotated - select for diffs
Sun Aug 2 13:44:41 2026 UTC (3 months, 2 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-2-RELEASE
Diff to: previous 1.113.4.1: preferred, colored; branchpoint 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113.4.1: +8 -2
lines
Pull up following revision(s) (requested by hannken in ticket #1320):
sys/dev/fss.c: revision 1.116
Bracket I/O from or to the backing store with fstrans_start_lazy()
so the fss device doesn't block before the file system is suspended.
Should fix some deadlocks with revokation of ttys.
PR kern/59663 (ffs_snapshot_read -> uvm_fault (or pool page empty)
Revision 1.114.8.1: download - view: text, markup, annotated - select for diffs
Sun Aug 2 13:43:18 2026 UTC (3 months, 2 weeks ago) by martin
Branches: netbsd-11
CVS tags: netbsd-11-1-RELEASE
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +8 -2
lines
Pull up following revision(s) (requested by hannken in ticket #409):
sys/dev/fss.c: revision 1.116
Bracket I/O from or to the backing store with fstrans_start_lazy()
so the fss device doesn't block before the file system is suspended.
Should fix some deadlocks with revokation of ttys.
PR kern/59663 (ffs_snapshot_read -> uvm_fault (or pool page empty)
Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Jul 29 17:39:23 2026 UTC (3 months, 2 weeks ago) by hannken
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
HEAD
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +8 -2
lines
Bracket I/O from or to the backing store with fstrans_start_lazy()
so the fss device doesn't block before the file system is suspended.
Should fix some deadlocks with revokation of ttys.
PR kern/59663 (ffs_snapshot_read -> uvm_fault (or pool page empty)
Revision 1.115: 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
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -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.113.4.1: download - view: text, markup, annotated - select for diffs
Thu Mar 23 12:11:03 2023 UTC (3 years, 7 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE,
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.113: preferred, colored
Changes since revision 1.113: +3 -3
lines
Pull up following revision(s) (requested by hannken in ticket #126):
sys/dev/fss.c: revision 1.114
Pass B_PHYS when reading from device. Xbd(4) at least checks
this flag and may trigger an assertion.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Mar 22 21:14:46 2023 UTC (3 years, 7 months ago) by hannken
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
netbsd-11-base,
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
Branch point for: perseant-exfatfs,
netbsd-11
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +3 -3
lines
Pass B_PHYS when reading from device. Xbd(4) at least checks
this flag and may trigger an assertion.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Sat Sep 24 23:18:54 2022 UTC (4 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: netbsd-10-base,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +7 -7
lines
malloc(9) -> kmem(9)
Revision 1.112: 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.111: preferred, colored
Changes since revision 1.111: +13 -15
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.110.4.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:20 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +10 -10
lines
Sync with HEAD.
Revision 1.111: 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
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.110: preferred, colored
Changes since revision 1.110: +10 -10
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.109.6.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:34:57 2021 UTC (5 years, 10 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +15 -3
lines
Sync w/ HEAD.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Sat Dec 26 14:50:50 2020 UTC (5 years, 10 months ago) by nia
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base,
thorpej-cfargs,
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.109: preferred, colored
Changes since revision 1.109: +15 -3
lines
Check the return value of device_lookup_private against NULL.
Reported-by: syzbot+06561ba90b6e618ce6d0@syzkaller.appspotmail.com
Revision 1.104.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.104.4.2: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.4.2: +7 -4
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.104.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.104.4.1: preferred, colored; branchpoint 1.104: preferred, colored
Changes since revision 1.104.4.1: +3 -3
lines
Merge changes from current as of 20200406
Revision 1.108.2.1: 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.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108: +3 -3
lines
Sync with head.
Revision 1.109: 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-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3
Branch point for: thorpej-futex
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3
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.107.4.1: download - view: text, markup, annotated - select for diffs
Wed Oct 23 20:35:52 2019 UTC (7 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +9 -6
lines
Pull up following revision(s) (requested by maxv in ticket #356):
sys/dev/fss.c: revision 1.108
Check fc_type before fc_cluster, because the latter may not be initialized.
This is harmless because fc_type is always initialized properly, so the
next branch wouldn't have been taken.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Wed Aug 7 10:36:19 2019 UTC (7 years, 3 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20191119,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +9 -6
lines
Check fc_type before fc_cluster, because the latter may not be initialized.
This is harmless because fc_type is always initialized properly, so the
next branch wouldn't have been taken.
Revision 1.104.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.104: preferred, colored
Changes since revision 1.104: +126 -59
lines
Sync with HEAD
Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Feb 20 10:03:25 2019 UTC (7 years, 8 months ago) by hannken
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base,
isaki-audio2-base,
isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +7 -7
lines
Make FSS_ERROR a flag to prevent bogus fscow_disestablish() after error.
Revision 1.104.2.1: 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
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104: +127 -60
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.98.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 1 06:02:13 2018 UTC (8 years, 2 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.98.2.2: preferred, colored; branchpoint 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.2.2: +127 -60
lines
Pull up following revision(s) (requested by hannken in ticket #999):
sys/dev/fssvar.h: revision 1.30
sys/dev/fssvar.h: revision 1.31
sys/dev/fss.c: revision 1.105
sys/dev/fss.c: revision 1.106
Convert flags FSS_ACTIVE and FSS_ERROR into new member sc_state
with states FSS_IDLE, FSS_ACTIVE and FSS_ERROR.
No functional change intended.
Add two new states FSS_CREATING and FSS_DESTROYING and use them
while creating or destroying a snapshot.
Remove now unneeded sc_lock that made fss_ioctl mutually exclusive.
Fss_ioctl no longer blocks forever because a snapshot gets
created or destroyed.
Serialize snapshot creation and make it interruptible.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Aug 29 09:04:40 2018 UTC (8 years, 2 months ago) by hannken
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +77 -27
lines
Add two new states FSS_CREATING and FSS_DESTROYING and use them
while creating or destroying a snapshot.
Remove now unneeded sc_lock that made fss_ioctl mutually exclusive.
Fss_ioctl no longer blocks forever because a snapshot gets
created or destroyed.
Serialize snapshot creation and make it interruptible.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Aug 29 09:04:03 2018 UTC (8 years, 2 months ago) by hannken
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +60 -43
lines
Convert flags FSS_ACTIVE and FSS_ERROR into new member sc_state
with states FSS_IDLE, FSS_ACTIVE and FSS_ERROR.
No functional change intended.
Revision 1.81.4.5: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:38:28 2018 UTC (8 years, 8 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.81.4.4: preferred, colored; branchpoint 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.4.4: +34 -19
lines
Pull up following revision(s) (requested by hannken in ticket #1516):
sys/dev/fss.c: 1.101-1.103
Bounds check against media size for non-persistent snapshots.
--
Treat partial read from backing store as I/O error.
--
Pass residual back to b_resid for persistent snapshots.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Jan 23 22:42:29 2018 UTC (8 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: 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
Branch point for: phil-wifi,
pgoyette-compat
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -3
lines
Add "bufq_fcfs" requirement to all those driver modules that explicitly
request it in their calls to bufq_alloc().
Revision 1.98.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 13 05:38:54 2018 UTC (8 years, 10 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.98.2.1: preferred, colored; branchpoint 1.98: preferred, colored
Changes since revision 1.98.2.1: +34 -19
lines
Pull up following revision(s) (requested by hannken in ticket #475):
sys/dev/fss.c: revision 1.101-1.103
usr.sbin/fssconfig/fssconfig.c: revision 1.13
Bounds check against media size for non-persistent snapshots.
--
Treat partial read from backing store as I/O error.
--
Pass residual back to b_resid for persistent snapshots.
--
Use stat() information to decide if the backing store is a directory.
Depending on open() returning EISDIR fails for mount points.
Revision 1.91.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 3 21:47:45 2018 UTC (8 years, 10 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.91.2.1: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.2.1: +34 -19
lines
Pull up following revision(s) (requested by hannken in ticket #1549):
sys/dev/fss.c: revision 1.101-1.103
Bounds check against media size for non-persistent snapshots.
--
Treat partial read from backing store as I/O error.
--
Pass residual back to b_resid for persistent snapshots.
Revision 1.98.2.1: download - view: text, markup, annotated - select for diffs
Thu Dec 21 21:50:16 2017 UTC (8 years, 10 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +10 -3
lines
Pull up following revision(s) (requested by pgoyette in ticket #453):
sys/dev/fss.c: revision 1.100
If config_cfattach_detach() returns an error, handle it instead of
ignoring. Otherwise the mutex will get destroyed and we'll unload
the module, and any active users will eventually cause a panic.
Noted by code inspection.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu Dec 21 15:51:39 2017 UTC (8 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +18 -13
lines
Pass residual back to b_resid for persistent snapshots.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Dec 21 15:51:07 2017 UTC (8 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +14 -8
lines
Bounds check against media size for non-persistent snapshots.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Dec 21 15:50:33 2017 UTC (8 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +6 -2
lines
Treat partial read from backing store as I/O error.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Dec 17 22:09:47 2017 UTC (8 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +10 -3
lines
If config_cfattach_detach() returns an error, handle it instead of
ignoring. Otherwise the mutex will get destroyed and we'll unload
the module, and any active users will eventually cause a panic.
Noted by code inspection.
XXX pullup to netbsd-8
Revision 1.83.2.4: 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.83.2.3: preferred, colored; branchpoint 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83.2.3: +30 -32
lines
update from HEAD
Revision 1.99: 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
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +2 -3
lines
Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".
Revision 1.92.2.3: 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.92.2.2: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.2: +6 -16
lines
Sync with HEAD
Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:09 2017 UTC (9 years, 5 months ago) by chs
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek
Branch point for: netbsd-8
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -15
lines
remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()
all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
Revision 1.97.4.4: 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.97.4.3: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.4.3: +2 -3
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.97.4.3: download - view: text, markup, annotated - select for diffs
Sat Apr 29 11:12:14 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.97.4.2: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.4.2: +2 -3
lines
Remove more unnecessary #include for sys/localcount.h
Revision 1.97.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.97.4.1: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.4.1: +4 -7
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.97.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.97: preferred, colored
Changes since revision 1.97: +39 -8
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.95.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.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +6 -3
lines
Sync with HEAD
Revision 1.93.2.9: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:27 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.93.2.8: preferred, colored; branchpoint 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93.2.8: +6 -3
lines
Sync with HEAD
Revision 1.97: download - view: text, markup, annotated - select for diffs
Fri Feb 17 08:30:00 2017 UTC (9 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: prg-localcount2
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -2
lines
Bring back vrele_flush() to flush deferred vrele() o an suspended file system.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Fri Feb 17 08:29:11 2017 UTC (9 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -3
lines
Untangle VFS_SYNC() from VFS_SUSPENDCTL().
Revision 1.92.2.2: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:39 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.1: +22 -17
lines
Sync with HEAD
Revision 1.91.4.1: download - view: text, markup, annotated - select for diffs
Sat Aug 27 15:09:48 2016 UTC (10 years, 2 months ago) by bouyer
Branches: netbsd-7-0
CVS tags: netbsd-7-0-2-RELEASE
Diff to: previous 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +13 -11
lines
Pull up following revision(s) (requested by hannken in ticket #1239):
sys/dev/fss.c: revision 1.95
Disestablish COW handler on error. No need to do further copies after
the snapshot device failed.
Should fix PR kern/51377: fss(4) panic if snapshot mounted read/write
Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 27 15:09:22 2016 UTC (10 years, 2 months ago) by bouyer
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,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +13 -11
lines
Pull up following revision(s) (requested by hannken in ticket #1239):
sys/dev/fss.c: revision 1.95
Disestablish COW handler on error. No need to do further copies after
the snapshot device failed.
Should fix PR kern/51377: fss(4) panic if snapshot mounted read/write
Revision 1.81.4.3.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 27 14:48:50 2016 UTC (10 years, 2 months ago) by bouyer
Branches: netbsd-6-1
Diff to: previous 1.81.4.3: preferred, colored; next MAIN 1.81.4.4: preferred, colored
Changes since revision 1.81.4.3: +13 -11
lines
Pull up following revision(s) (requested by hannken in ticket #1399):
sys/dev/fss.c: revision 1.95
Disestablish COW handler on error. No need to do further copies after
the snapshot device failed.
Should fix PR kern/51377: fss(4) panic if snapshot mounted read/write
Revision 1.81.4.1.4.3: download - view: text, markup, annotated - select for diffs
Sat Aug 27 14:48:09 2016 UTC (10 years, 2 months ago) by bouyer
Branches: netbsd-6-0
Diff to: previous 1.81.4.1.4.2: preferred, colored; branchpoint 1.81.4.1: preferred, colored; next MAIN 1.81.4.2: preferred, colored
Changes since revision 1.81.4.1.4.2: +13 -11
lines
Pull up following revision(s) (requested by hannken in ticket #1399):
sys/dev/fss.c: revision 1.95
Disestablish COW handler on error. No need to do further copies after
the snapshot device failed.
Should fix PR kern/51377: fss(4) panic if snapshot mounted read/write
Revision 1.81.4.4: download - view: text, markup, annotated - select for diffs
Sat Aug 27 14:47:47 2016 UTC (10 years, 2 months ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.81.4.3: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.3: +13 -11
lines
Pull up following revision(s) (requested by hannken in ticket #1399):
sys/dev/fss.c: revision 1.95
Disestablish COW handler on error. No need to do further copies after
the snapshot device failed.
Should fix PR kern/51377: fss(4) panic if snapshot mounted read/write
Revision 1.93.2.8: 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.93.2.7: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.7: +1 -1
lines
Sync with HEAD
Revision 1.93.2.7: download - view: text, markup, annotated - select for diffs
Sun Jul 31 13:12:59 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.93.2.6: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.6: +13 -11
lines
mport rev 1.95 from HEAD
Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun Jul 31 12:17:36 2016 UTC (10 years, 3 months ago) by hannken
Branches: MAIN
CVS tags: 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.94: preferred, colored
Changes since revision 1.94: +13 -11
lines
Disestablish COW handler on error. No need to do further copies after
the snapshot device failed.
Should fix PR kern/51377: fss(4) panic if snapshot mounted read/write
Revision 1.93.2.6: download - view: text, markup, annotated - select for diffs
Sun Jul 31 01:36:49 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.93.2.5: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.5: +11 -8
lines
When initializing the rump component, detach the [bc]devsw after
using the devmajors to create the device nodes. Normal module
initialization will reattach them.
XXX This code sequence is fairly common, and probably should be
XXX extracted into a separate routine and/or macro. But there's
XXX a lot of variables/parameters involved...
Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Jul 30 22:36:14 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +11 -8
lines
More adaptation of the rump component init, to avoid EEXIST during
regular module initialization.
Revision 1.93.2.5: download - view: text, markup, annotated - select for diffs
Wed Jul 27 03:25:00 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.93.2.4: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.4: +4 -4
lines
Repair the inevitable tyops in previous.
Revision 1.93.2.4: download - view: text, markup, annotated - select for diffs
Wed Jul 27 01:13:50 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.93.2.3: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.3: +36 -8
lines
Update a few more drivers for localcount(9)
Revision 1.93.2.3: 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.93.2.2: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.2: +4 -4
lines
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT. This better describes
what we're doing, and why.
Revision 1.93.2.2: 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.93.2.1: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.1: +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.93.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.93: preferred, colored
Changes since revision 1.93: +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.92.2.1: 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.92: preferred, colored
Changes since revision 1.92: +3 -3
lines
Sync with HEAD
Revision 1.93: 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: pgoyette-localcount-base,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921
Branch point for: pgoyette-localcount
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -3
lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Oct 2 22:05:38 2014 UTC (12 years, 1 month ago) by justin
Branches: MAIN
CVS tags: nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +4 -3
lines
Use devmajor_t not int
Revision 1.83.2.3: 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.83.2.2: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.2: +23 -8
lines
Rebase to HEAD as of a few days ago.
Revision 1.88.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.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +7 -4
lines
Rebase.
Revision 1.91: 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,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-1-RELEASE
Branch point for: netbsd-7-0,
netbsd-7
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +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.90: 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.89: preferred, colored
Changes since revision 1.89: +5 -3
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.89: download - view: text, markup, annotated - select for diffs
Sun May 25 13:52:12 2014 UTC (12 years, 5 months ago) by hannken
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -3
lines
Use broadcast after freeing a cache entry. A waiter may not
use a cache entry after wakeup leading to possible deadlock.
Revision 1.78.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.78.2.2: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.2: +25 -25
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.86.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.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +19 -7
lines
sync with head
Revision 1.88: 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: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +19 -6
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.87: download - view: text, markup, annotated - select for diffs
Fri Feb 28 10:16:51 2014 UTC (12 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -3
lines
G/C sys/simplelock.h includes
Revision 1.60.4.6.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 9 16:20:29 2013 UTC (13 years, 5 months ago) by msaitoh
Branches: netbsd-5-2
CVS tags: netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE
Diff to: previous 1.60.4.6: preferred, colored; next MAIN 1.60.4.7: preferred, colored
Changes since revision 1.60.4.6: +5 -6
lines
Pull up following revision(s) (requested by gdt in ticket #1853):
sys/dev/fss.c: revision 1.84
Take fss_device_lock first when closing a fss device.
Fixes PR kern/47514 (Multiple dump -X triggers kernel panic in fss_ioctl)
Revision 1.60.4.3.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 9 16:18:57 2013 UTC (13 years, 5 months ago) by msaitoh
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE
Diff to: previous 1.60.4.3: preferred, colored; next MAIN 1.60.4.4: preferred, colored
Changes since revision 1.60.4.3: +5 -6
lines
Pull up following revision(s) (requested by gdt in ticket #1853):
sys/dev/fss.c: revision 1.84
Take fss_device_lock first when closing a fss device.
Fixes PR kern/47514 (Multiple dump -X triggers kernel panic in fss_ioctl)
Revision 1.60.4.7: download - view: text, markup, annotated - select for diffs
Sun Jun 9 11:29:43 2013 UTC (13 years, 5 months ago) by msaitoh
Branches: netbsd-5
Diff to: previous 1.60.4.6: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.4.6: +5 -6
lines
Pull up following revision(s) (requested by gdt in ticket #1853):
sys/dev/fss.c: revision 1.84
Take fss_device_lock first when closing a fss device.
Fixes PR kern/47514 (Multiple dump -X triggers kernel panic in fss_ioctl)
Revision 1.83.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:10 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.83.2.1: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.1: +8 -20
lines
resync with head
Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Feb 13 14:03:48 2013 UTC (13 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -21
lines
Make the spec_node table implementation private to spec_vnops.c.
To retrieve a spec_node, two new lookup functions (by device or by mount)
are implemented. Both return a referenced vnode, for an opened block device
the opened vnode is returned so further diagnostic checks "vp == ... sd_bdevvp"
will not fire. Otherwise any vnode matching the criteria gets returned.
No objections on tech-kern.
Welcome to 6.99.17
Revision 1.81.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:39:28 2013 UTC (13 years, 9 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
Branch point for: netbsd-6-1
Diff to: previous 1.81.4.2: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.2: +22 -16
lines
Pull up following revision(s) (requested by hannken in ticket #810):
sys/dev/fss.c: revision 1.85
Lookup the block device mounted on from the specfs_hash table.
This doesn't belong here but makes it possible to pullup.
Fixes PR kern/47020 (fss(4) panic)
Revision 1.81.4.1.4.2: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:39:04 2013 UTC (13 years, 9 months ago) by riz
Branches: netbsd-6-0
CVS tags: 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
Diff to: previous 1.81.4.1.4.1: preferred, colored; branchpoint 1.81.4.1: preferred, colored
Changes since revision 1.81.4.1.4.1: +22 -16
lines
Pull up following revision(s) (requested by hannken in ticket #810):
sys/dev/fss.c: revision 1.85
Lookup the block device mounted on from the specfs_hash table.
This doesn't belong here but makes it possible to pullup.
Fixes PR kern/47020 (fss(4) panic)
Revision 1.81.4.1.4.1: download - view: text, markup, annotated - select for diffs
Sun Feb 10 23:57:38 2013 UTC (13 years, 9 months ago) by riz
Branches: netbsd-6-0
Diff to: previous 1.81.4.1: preferred, colored
Changes since revision 1.81.4.1: +5 -6
lines
Pull up following revision(s) (requested by hannken in ticket #808):
sys/dev/fss.c: revision 1.84
Take fss_device_lock first when closing a fss device.
Fixes PR kern/47514 (Multiple dump -X triggers kernel panic in fss_ioctl)
Revision 1.81.4.2: download - view: text, markup, annotated - select for diffs
Sun Feb 10 23:57:25 2013 UTC (13 years, 9 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.81.4.1: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.1: +5 -6
lines
Pull up following revision(s) (requested by hannken in ticket #808):
sys/dev/fss.c: revision 1.84
Take fss_device_lock first when closing a fss device.
Fixes PR kern/47514 (Multiple dump -X triggers kernel panic in fss_ioctl)
Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Feb 6 09:33:16 2013 UTC (13 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +22 -16
lines
Lookup the block device mounted on from the specfs_hash table.
This doesn't belong here but makes it possible to pullup.
Fixes PR kern/47020 (fss(4) panic)
Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Feb 6 09:29:46 2013 UTC (13 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +5 -6
lines
Take fss_device_lock first when closing a fss device.
Fixes PR kern/47514 (Multiple dump -X triggers kernel panic in fss_ioctl)
Revision 1.83.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 2 05:46:39 2012 UTC (13 years, 11 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +16 -3
lines
Don't pass NULL struct dkdriver to disk_init. That's seriously bogus.
Revision 1.78.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.78.2.1: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.1: +7 -6
lines
sync with head
Revision 1.60.4.6: download - view: text, markup, annotated - select for diffs
Thu Aug 23 08:59:47 2012 UTC (14 years, 2 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1
Branch point for: netbsd-5-2
Diff to: previous 1.60.4.5: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.4.5: +7 -6
lines
Pull up following revision(s) (requested by hannken in ticket #1784):
sys/dev/fss.c: revisions 1.82 and 1.83 via patch
usr.sbin/fssconfig/fssconfig.c: revision 1.9
Initialize `fss_flags' before setting an individual bit.
Use `getdisksize()' to get the size of the mounted-on block device.
Should work for disks without partition table (wedges) now.
Revision 1.81.4.1: download - view: text, markup, annotated - select for diffs
Mon Jul 30 08:05:33 2012 UTC (14 years, 3 months ago) by martin
Branches: netbsd-6
CVS tags: netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-1-RELEASE,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: netbsd-6-0
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +7 -6
lines
Pull up following revision(s) (requested by hannken in ticket #449):
sys/dev/fss.c: revision 1.82
sys/dev/fss.c: revision 1.83
usr.sbin/fssconfig/fssconfig.c: revision 1.9
Initialize `fss_flags' before setting an individual bit.
Not a real problem as there is only one valid bit yet.
From Edgar Fuss via tech-kern@netbsd.org
Use `getdisksize()' to get the size of the mounted-on block device.
Should work for disks without partition table (wedges) now.
Minor fix to previous -- release vnode after last use, not before.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Jul 28 16:14:17 2012 UTC (14 years, 3 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
Minor fix to previous -- release vnode after last use, not before.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Jul 28 15:12:42 2012 UTC (14 years, 3 months ago) by hannken
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +6 -5
lines
Use `getdisksize()' to get the size of the mounted-on block device.
Should work for disks without partition table (wedges) now.
Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:25 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +39 -2
lines
sync with head
Revision 1.60.4.5: download - view: text, markup, annotated - select for diffs
Wed Jan 25 18:06:26 2012 UTC (14 years, 9 months ago) by riz
Branches: netbsd-5
Diff to: previous 1.60.4.4: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.4.4: +8 -2
lines
Pull up following revision(s) (requested by bouyer in ticket #1700):
sys/dev/fss.c: revision 1.79
sys/dev/fssvar.h: revision 1.26
Fix FSSIOCSET50: needs to use the 5.0 struct fss_set, not the current one.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Nov 30 09:51:18 2011 UTC (14 years, 11 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp
Branch point for: netbsd-6
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +6 -2
lines
On LP64 host, fss_get and fss_get50 have the same size; so FSSIOCGET50
and FSSIOCGET are identical and the compiler complains about
"duplicate case value". Guard FSSIOCGET50 with #ifndef _LP64/#endif to
fix this.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Nov 29 20:56:12 2011 UTC (14 years, 11 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +29 -2
lines
Complete backward compat with NetBSd 5.x: time_t changed size, so did
struct timeval, and so did struct fss_get. So we need a compat FSSIOCGET50
ioctl.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Nov 29 19:17:03 2011 UTC (14 years, 11 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +8 -2
lines
Fix FSSIOCSET50: needs to use the 5.0 struct fss_set, not the current one.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Aug 7 14:03:16 2011 UTC (15 years, 3 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3
lines
Rename slightly misleading KTHREAD_JOINABLE to KTHREAD_MUSTJOIN.
Revision 1.74.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.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +3 -3
lines
Catchup with rmind-uvmplock merge.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Jun 21 13:59:41 2011 UTC (15 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +6 -7
lines
Use kthread_join() to wait for the termination of the helper thread.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue Jun 21 12:41:24 2011 UTC (15 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +5 -4
lines
When reading or writing the backing store us POSIX_FADV_NOREUSE access hint
to prevent read ahead.
Revision 1.60.4.4: download - view: text, markup, annotated - select for diffs
Sat Jun 18 17:00:25 2011 UTC (15 years, 5 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.60.4.3: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.4.3: +26 -9
lines
Pull up following revision(s) (requested by hannken in ticket #1627):
sys/kern/vfs_wapbl.c: revisions 1.41-1.42
sbin/dump/snapshot.c: revisions 1.6 (patch)
share/man/man4/fss.4: revisions 1.15 (patch)
sys/dev/fss.c: revisions 1.73 (patch)
sys/dev/fssvar.h: revisions 1.25
usr.sbin/fssconfig/fssconfig.c: revisions 1.7
sys/ufs/ffs/ffs_balloc.c: revisions 1.54
sys/ufs/ffs/ffs_snapshot.c: revisions 1.90, 1.98, 1.100-1.101, 1.103-1.110, 1.111, 1.112-1.115 (patch)
- Try to keep snapshot indirect blocks contiguous. This speeds up snapshot
creation by a factor of ~3 and reduces the file system suspension time by
a factor of ~5.
- Refine the scope of WAPBL transactions and the limit for deallocations in
one transaction so we should no longer get a "wapbl_flush: current
transaction too big to flush" panic when creating or removing snapshots
on larger logging disks.
- fss(4): Allow FSSIOCSET to set the initial flags. Add a new flag
"FSS_UNLINK_ON_CREATE" to unlink the backing store before the snapshot
gets created. With this change dump(8) no longer dumps the zero-sized,
but named snapshot it is working on.
Revision 1.75: 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.74: preferred, colored
Changes since revision 1.74: +3 -3
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.72.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.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +26 -14
lines
Sync with HEAD.
Revision 1.65.4.5: 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.65.4.4: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.4.4: +1 -1
lines
sync with head
Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon May 23 21:18:55 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.73: preferred, colored
Changes since revision 1.73: +3 -3
lines
Don't use string literal as format string.
Revision 1.65.4.4: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:52:59 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.65.4.3: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.4.3: +39 -19
lines
sync with head
Revision 1.72.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:15 2011 UTC (15 years, 8 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +25 -13
lines
Sync with HEAD
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Feb 24 09:38:57 2011 UTC (15 years, 8 months ago) by hannken
Branches: MAIN
CVS tags: bouyer-quota2-nbase
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +25 -13
lines
fss(4): Allow FSSIOCSET to set the initial flags. Add a new flag
"FSS_UNLINK_ON_CREATE" to unlink the backing store before
the snapshot gets created.
With this change dump(8) no longer dumps the zero-sized, but named
snapshot it is working on. Same applies to fsck_ffs(8).
Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:41:07 2010 UTC (15 years, 10 months ago) by hannken
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -5
lines
Remove an always true if-clause.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Nov 19 06:44:39 2010 UTC (16 years ago) by dholland
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +15 -5
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.65.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:57 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.65.2.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.1: +4 -4
lines
Sync with HEAD.
Revision 1.44.4.5: 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.44.4.4: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.4.4: +13 -14
lines
sync with head.
Revision 1.65.4.3: 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.65.4.2: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.4.2: +6 -6
lines
sync with head
Revision 1.70: 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
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +6 -6
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.65.4.2: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:16 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.65.4.1: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.4.1: +9 -10
lines
sync with head
Revision 1.65.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.65: preferred, colored
Changes since revision 1.65: +9 -10
lines
Sync with HEAD.
Revision 1.60.4.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:32 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.60.4.1: preferred, colored; next MAIN 1.60.4.2: preferred, colored
Changes since revision 1.60.4.1: +6 -13
lines
sync to netbsd-5
Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Apr 16 11:22:43 2010 UTC (16 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +5 -3
lines
release lock in error branch
Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Apr 13 07:58:54 2010 UTC (16 years, 7 months ago) by hannken
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -4
lines
fss_softc_free: don't detach a disk that is not attached. Disk is
attached only if the backing store thread is running.
Resolves PR #43153: fss error branch error
Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Apr 12 22:29:11 2010 UTC (16 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -2
lines
Ignore EEXIST from devsw_attach. This is not the optimal solution,
but it makes it possible to dynamically create device nodes for
fss before the fss module init runs by allowing to run devsw_attach
earlier.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Apr 5 09:30:46 2010 UTC (16 years, 7 months ago) by hannken
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -7
lines
Remove unused fss_softc member sc_bs_size.
Revision 1.60.4.3: download - view: text, markup, annotated - select for diffs
Sun Mar 28 17:26:26 2010 UTC (16 years, 7 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-2-RELEASE,
netbsd-5-1-1-RELEASE,
matt-nb5-pq3-base,
matt-nb5-pq3
Branch point for: netbsd-5-1
Diff to: previous 1.60.4.2: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.4.2: +2 -10
lines
Pull up following revision(s) (requested by hannken in ticket #1345):
sys/dev/fss.c: revision 1.65
Remove unneeded vinvalbuf() on backing store as we don't use
VOP_BMAP()/VOP_STRATEGY() here.
Revision 1.60.4.2: download - view: text, markup, annotated - select for diffs
Sun Mar 28 17:25:12 2010 UTC (16 years, 7 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.60.4.1: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.4.1: +6 -5
lines
Pull up following revision(s) (requested by hannken in ticket #1345):
sys/dev/fss.c: revision 1.64
Fix a race where the backing store thread runs (and exits immediately)
before kthread_create() returns.
Revision 1.65.4.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.65: preferred, colored
Changes since revision 1.65: +3 -3
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.44.4.4: 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.44.4.3: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.4.3: +6 -13
lines
sync with head
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Oct 17 10:29:29 2009 UTC (17 years, 1 month ago) by hannken
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base,
matt-premerge-20091211,
jym-xensuspend-nbase
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -10
lines
Remove unneeded vinvalbuf() on backing store as we don't use
VOP_BMAP()/VOP_STRATEGY() here.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Tue Oct 13 12:37:19 2009 UTC (17 years, 1 month ago) by hannken
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -5
lines
Fix a race where the backing store thread runs (and exits immediately)
before kthread_create() returns.
Revision 1.62.2.1: 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.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +35 -26
lines
Sync with HEAD.
Revision 1.44.4.3: 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.44.4.2: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.4.2: +35 -26
lines
sync with head.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Jun 29 05:08:17 2009 UTC (17 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
jymxensuspend-base
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +35 -26
lines
Convert 67 namei call sites to use namei_simple, in these functions:
check_console, veriexecclose, veriexec_delete, veriexec_file_add,
emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib,
compat_20_sys_statfs, compat_20_netbsd32_statfs,
ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs,
ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib,
osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs,
ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4),
adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount,
ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount,
ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags,
sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown,
sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs,
sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl,
sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file,
sys_extattr_get_link, sys_extattr_delete_file,
sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link,
sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr,
sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr
All have been scrutinized (several times, in fact) and compile-tested,
but not all have been explicitly tested in action.
XXX: While I haven't (intentionally) changed the use or nonuse of
XXX: TRYEMULROOT in any of these places, I'm not convinced all the
XXX: uses are correct; an audit might be desirable.
Revision 1.44.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:32 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.44.4.1: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.4.1: +445 -392
lines
sync with head.
Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:51 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +7 -5
lines
Sync with HEAD.
Revision 1.43.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.43.6.7: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.6.7: +11 -20
lines
- Fix a CVS merge breakage
- Catch up with some driver changes
Revision 1.43.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.43.6.6: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.6.6: +5 -3
lines
Sync with HEAD.
Revision 1.62: 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: yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
mjf-devfs2-base,
jym-xensuspend-base
Branch point for: jym-xensuspend
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -5
lines
g/c BUFQ_FOO() macros and use bufq_foo() directly.
Revision 1.48.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.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.1: +4 -2
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Fri Nov 7 23:32:19 2008 UTC (18 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
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: matt-nb5-mips64
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -2
lines
Pull up following revision(s) (requested by hannken in ticket #24):
sys/dev/fss.c: revision 1.61
fss_bs_thread: initialize b_error and b_resid.
Before it was possible for fss reads to return bogus b_resid values
leading to "delta > 0" panics from physio().
Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Nov 5 19:30:57 2008 UTC (18 years ago) by hannken
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -2
lines
fss_bs_thread: initialize b_error and b_resid.
Before it was possible for fss reads to return bogus b_resid values
leading to "delta > 0" panics from physio().
Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:18 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +440 -391
lines
Sync with HEAD.
Revision 1.45.2.4: 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.45.2.3: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.3: +141 -85
lines
Sync with HEAD.
Revision 1.43.6.6: download - view: text, markup, annotated - select for diffs
Sun Oct 5 20:11:28 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.43.6.5: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.6.5: +86 -85
lines
Sync with HEAD.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Oct 1 10:45:11 2008 UTC (18 years, 1 month ago) by hannken
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.59: preferred, colored
Changes since revision 1.59: +88 -87
lines
Make fss(4) D_MPSAFE.
- Use the device lock to protect fss_open(), fss_close() and fss_unmount_hook().
- Make sure fss_bs_thread() does not call biodone() with locks held.
Reviewd by: Andrew Doran <ad@netbsd.org>
Revision 1.43.6.5: 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.43.6.4: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.6.4: +394 -336
lines
Sync with HEAD.
Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:38:51 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.45.2.2: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.2: +325 -344
lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Sep 23 07:56:59 2008 UTC (18 years, 1 month ago) by hannken
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +57 -2
lines
Build modular fss driver.
Reviewed by: Quentin Garnier <cube@netbsd.org>
Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Sep 18 10:52:14 2008 UTC (18 years, 2 months ago) by hannken
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +33 -24
lines
Persistent snapshots do not need to allocate the variable softc elements.
Revision 1.45.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.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.1: +33 -21
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Sep 17 14:49:25 2008 UTC (18 years, 2 months ago) by hannken
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +25 -15
lines
Replace the fss unmount hook with a vfs_hook.
fssvar.h: struct device * -> device_t.
fss.c: establish unmount hook on first attach, remove on last detach.
vfs_syscalls.c: remove the call of fss_umount_hook().
vfs_trans.c: destroy cow handlers on unmount as fstrans_unmount() will be
called before vfs_hooks.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Sep 14 16:10:19 2008 UTC (18 years, 2 months ago) by hannken
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +117 -46
lines
Create fss(4) devices on first open and destroy on last close of an
unconfigured device. That removes the compile-time constant number
of useable devices.
While here, add disk_busy()/disk_unbusy() instrumentation.
Reviewed by: Quentin Garnier <cube@netbsd.org>
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Sep 14 10:12:14 2008 UTC (18 years, 2 months ago) by hannken
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +7 -80
lines
Remove FSS_STATISTICS. It was never documented and has no real value.
While here, modify fss_error() to no longer use variable arguments.
No functional changes.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Sep 12 10:56:14 2008 UTC (18 years, 2 months ago) by hannken
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +100 -114
lines
- Replace simple_lock/ltsleep/wakeup with mutex/cv.
- Replace malloc/free with kmem_alloc/kmem_free.
- Use bdev_ioctl() instead of bdevsw_lookup()/(*d_ioctl)().
- Be more fair to readers by cleaning the cache one slot at a time.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Sep 11 09:37:53 2008 UTC (18 years, 2 months ago) by hannken
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +77 -99
lines
fss_copy_on_write(): return error if reading the snapshotted device failed.
fss_read_cluster(): use nestiobuf for reading.
fss_bs_thread(): dont read the snapshotted device if a request is
completely covered by backing store.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Aug 26 13:04:55 2008 UTC (18 years, 2 months ago) by hannken
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +15 -8
lines
Use (*bdev->d_ioctl)() to get the size of the block device the file system
is mounted on. VOP_IOCTL() without VOP_OPEN() is wrong and we cannot
open a block device twice.
Fixes PR #39405
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Aug 15 10:31:24 2008 UTC (18 years, 3 months ago) by hannken
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +15 -4
lines
Fail requests from pagedaemon that need to copy-on-write.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Aug 12 10:14:37 2008 UTC (18 years, 3 months ago) by hannken
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -9
lines
Deny read/write access to snapshot vnodes. We use fss(4) to read from
snapshots. With this policy in place:
- Separate the snapshot vnode lock from the snapshot common lock.
Snapshots no longer need recursive vnode locks.
- Use a mutex (si_snaplock) to serialize creation, deletion, reading and
writing of snapshots.
- Move ffs_read() for snapshots into ffs_snapshot.c.
Reviewed by: Jason Thorpe <thorpej@netbsd.org>
While here change ffs_copyonwrite() to fail requests from pagedaemon that need
to copy-on-write.
Revision 1.45.4.2: download - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:31 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.45.4.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.4.1: +5 -6
lines
Sync with head.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Jul 8 14:57:03 2008 UTC (18 years, 4 months ago) by hannken
Branches: MAIN
CVS tags: simonb-wapbl-nbase,
simonb-wapbl-base
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -6
lines
Stop reusing a buffer obtained with getiobuf().
Revision 1.43.6.4: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:04 2008 UTC (18 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.43.6.3: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.6.3: +2 -0
lines
Sync with HEAD.
Revision 1.45.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.45: preferred, colored
Changes since revision 1.45: +4 -2
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.45.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.45: preferred, colored
Changes since revision 1.45: +4 -2
lines
Sync with head.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Jun 17 15:05:15 2008 UTC (18 years, 5 months ago) by mlelstv
Branches: MAIN
CVS tags: wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: haad-dm
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3
lines
fix copy&paste error
Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Jun 17 15:04:12 2008 UTC (18 years, 5 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -2
lines
One more place to mark an iobuf busy before use.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Jun 17 14:53:10 2008 UTC (18 years, 5 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -2
lines
Mark a buffer `busy` in getnewbuf() when it came from the pool_cache since
its not on a free list.
Also change buf_init() to not automatically mark buffers `busy' since this
only makes sense for bufcache buffers.
Mark all buf_init'd buffers 'busy' on the places where they ought to be
flagged as such to not confuse the buffer cache.
Fixes PR 38923.
Revision 1.43.6.3: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:11 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.43.6.2: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.6.2: +2 -9
lines
Sync with HEAD.
Revision 1.44.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.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +2 -9
lines
sync with head.
Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:48 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -9
lines
sync with head.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:46 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.43.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 5 23:33:20 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.43.6.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.6.1: +11 -3
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.43.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:36 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -6
lines
Sync with HEAD.
Revision 1.15.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.15.2.8: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.8: +6 -6
lines
sync with head.
Revision 1.44: 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-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -6
lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.
Revision 1.36.4.4: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:31 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.36.4.3: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.4.3: +8 -9
lines
Sync with HEAD.
Revision 1.15.2.8: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:25 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.7: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.7: +13 -14
lines
sync with head
Revision 1.34.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:12 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.34.6.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.6.1: +19 -21
lines
sync with HEAD
Revision 1.41.4.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:10:54 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.41.4.1: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.4.1: +1 -0
lines
Sync with HEAD
Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Jan 4 21:17:47 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-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2
lines
Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:53:46 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -9
lines
Sync with HEAD
Revision 1.42: 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
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -9
lines
Merge vmlocking2 to head.
Revision 1.36.4.3: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:44:45 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.36.4.2: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.4.2: +7 -7
lines
Sync with HEAD.
Revision 1.39.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:20 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.39.2.2: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.2: +7 -7
lines
Sync with head.
Revision 1.34.4.5: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:41 2007 UTC (18 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.34.4.4: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.4.4: +8 -8
lines
Sync with HEAD.
Revision 1.41: 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-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -7
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.36.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:19 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.36.4.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.4.1: +7 -8
lines
Sync with HEAD.
Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:16 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.39.2.1: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.1: +3 -3
lines
Sync with head.
Revision 1.15.2.7: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:16 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.6: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.6: +7 -8
lines
sync with head
Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Dec 5 07:06:50 2007 UTC (18 years, 11 months ago) by ad
Branches: MAIN
CVS tags: vmlocking2-base2,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.
Revision 1.39.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.39: preferred, colored
Changes since revision 1.39: +7 -9
lines
Pull the vmlocking changes into a new branch.
Revision 1.34.4.4: download - view: text, markup, annotated - select for diffs
Mon Dec 3 16:14:30 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.34.4.3: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.4.3: +4 -4
lines
Sync with HEAD.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Dec 2 13:56:15 2007 UTC (18 years, 11 months ago) by hannken
Branches: MAIN
CVS tags: vmlocking2-base1,
vmlocking-nbase
Branch point for: vmlocking2
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4
lines
Fscow_run(): add a flag "bool data_valid" to note still valid data.
Buffers run through copy-on-write are marked B_COWDONE. This condition
is valid until the buffer has run through bwrite() and gets cleared from
biodone().
Welcome to 4.99.39.
Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
Revision 1.34.4.3: 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.34.4.2: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.4.2: +4 -5
lines
Sync with HEAD. amd64 Xen support needs testing.
Revision 1.38: 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
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -5
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.36.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:47:40 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3
lines
Sync with HEAD.
Revision 1.15.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:01 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.5: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.5: +3 -3
lines
sync with head.
Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:00:50 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +3 -3
lines
Sync with HEAD
Revision 1.34.4.2: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:47:26 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.34.4.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.4.1: +3 -3
lines
Sync with HEAD.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Nov 10 18:53:57 2007 UTC (19 years ago) by rmind
Branches: MAIN
CVS tags: bouyer-xenamd64-base2,
bouyer-xenamd64-base
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3
lines
Use PRI_BIO for kthreads instead of PINOD. Fixes a missed case of priority
inversion, which caused LFS to fire some assertions.
Reported by Kurt Schreiner on <current-users>.
Revision 1.34.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:25:27 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -7
lines
sync with HEAD
Revision 1.15.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:29:57 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.4: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.4: +6 -7
lines
sync with head.
Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:09 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -7
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.34.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:00 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +6 -7
lines
sync with head.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Oct 10 20:42:22 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base,
jmcneill-base
Branch point for: mjf-devfs,
bouyer-xenamd64
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3
lines
Merge from vmlocking:
- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.
Revision 1.32.2.10: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:12 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.32.2.9: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.9: +5 -6
lines
Sync with head.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Oct 7 13:39:03 2007 UTC (19 years, 1 month ago) by hannken
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +5 -6
lines
Update the file system copy-on-write handler.
- Instead of hooking the handler on the specdev of a mounted file system
hook directly on the `struct mount'.
- Rename from `vn_cow_*' to `fscow_*' and move to `kern/vfs_trans.c'. Use
`mount_*specific' instead of clobbering `struct mount' or `struct specinfo'.
- Replace the hand-made reader/writer lock with a krwlock.
- Keep `vn_cow_*' functions and mark as obsolete.
- Welcome to NetBSD 4.99.32 - `struct specinfo' changed size.
Reviewed by: Jason Thorpe <thorpej@netbsd.org>
Revision 1.15.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:33:12 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.3: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.3: +26 -31
lines
sync with head.
Revision 1.32.2.9: 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.32.2.8: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.8: +5 -7
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.32.2.8: download - view: text, markup, annotated - select for diffs
Sun Aug 19 19:24:20 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.32.2.7: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.7: +25 -9
lines
- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:12 2007 UTC (19 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +3 -8
lines
Sync with HEAD.
Revision 1.34.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.34.10.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.10.1: +1236 -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.34.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.34: +0 -1236
lines
file fss.c was added on branch matt-mips64 on 2007-07-29 12:50:19 +0000
Revision 1.34: 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.33: preferred, colored
Changes since revision 1.33: +3 -8
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.32.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:00 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +15 -15
lines
Sync with head.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:28 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.32: preferred, colored
Changes since revision 1.32: +15 -15
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.32.2.7: download - view: text, markup, annotated - select for diffs
Sun Jun 17 21:30:50 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.32.2.6: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.6: +4 -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.32.2.6: download - view: text, markup, annotated - select for diffs
Sat Jun 9 23:57:49 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.32.2.5: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.5: +3 -3
lines
Sync with head.
Revision 1.32.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.32.2.4: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.4: +8 -29
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.32.2.4: download - view: text, markup, annotated - select for diffs
Fri Apr 13 20:56:20 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.32.2.3: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.3: +4 -4
lines
- Make the devsw interface MP safe, and add some comments.
- Allow individual block/character drivers to be marked MP safe.
- Provide wrappers around the device methods that look up the
device, returning ENXIO if it's not found, and acquire the
kernel lock if needed.
Revision 1.32.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.32.2.2: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.2: +3 -3
lines
Nuke the deferred kthread creation stuff, as it's no longer needed.
Pointed out by thorpej@.
Revision 1.32.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.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.1: +13 -13
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.32.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:57:43 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3
lines
Compile fixes.
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:03 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +12 -12
lines
Sync with HEAD.
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 4 14:26:51 2007 UTC (19 years, 8 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
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.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +5 -3
lines
Pull up following revision(s) (requested by hannken in ticket #484):
sys/dev/fss.c: revision 1.30 via patch
Initialize resid to prevent a kernel assertion on DEBUG-enabled kernels.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:42 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +12 -12
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:09:54 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.2: +15 -12
lines
sync with head.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Feb 15 15:40:51 2007 UTC (19 years, 9 months ago) by ad
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +9 -9
lines
Replace some uses of lockmgr() / simplelocks.
Revision 1.27.4.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.27.4.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.4.1: +8 -5
lines
Sync with head.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Jan 19 14:49:09 2007 UTC (19 years, 10 months ago) by hannken
Branches: MAIN
CVS tags: post-newlock2-merge,
newlock2-nbase,
newlock2-base
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +8 -5
lines
New file system suspension API to replace vn_start_write and vn_finished_write.
The suspension helpers are now put into file system specific operations.
This means every file system not supporting these helpers cannot be suspended
and therefore snapshots are no longer possible.
Implemented for file systems of type ffs.
The new API is enabled on a kernel option NEWVNGATE. This option is
not enabled by default in any kernel config.
Presented and discussed on tech-kern with much input from
Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>.
Welcome to 4.99.9 (new vfs op vfs_suspendctl).
Revision 1.15.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.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +11 -10
lines
sync with head.
Revision 1.27.6.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.27.6.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.6.1: +10 -10
lines
sync with head.
Revision 1.27.4.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.27: preferred, colored
Changes since revision 1.27: +4 -3
lines
Sync with head.
Revision 1.29: 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: netbsd-4
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +10 -10
lines
__unused removal on arguments; approved by core.
Revision 1.27.6.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.27: preferred, colored
Changes since revision 1.27: +10 -9
lines
sync with head
Revision 1.28: 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
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -9
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.22.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.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +22 -27
lines
sync with head
Revision 1.22.6.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.22.6.2: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.6.2: +9 -9
lines
sync with head
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Jul 21 16:48:47 2006 UTC (20 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
rpaulo-netinet-merge-pcb-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +9 -9
lines
- Use the LWP cached credentials where sane.
- Minor cosmetic changes.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:11 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +64 -280
lines
sync with head.
Revision 1.22.4.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.22.4.1: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.4.1: +12 -10
lines
Sync with head.
Revision 1.23.2.1: 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.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +14 -10
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.22.6.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.22.6.1: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.6.1: +14 -10
lines
sync with head.
Revision 1.26: 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.25: preferred, colored
Changes since revision 1.25: +10 -10
lines
integrate kauth.
Revision 1.22.8.3: download - view: text, markup, annotated - select for diffs
Thu May 11 23:28:05 2006 UTC (20 years, 6 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.22.8.2: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.8.2: +4 -2
lines
sync with head
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed May 10 21:53:16 2006 UTC (20 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: elad-kernelauth-base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -2
lines
quell GCC 4.1 uninitialised variable warnings.
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
Revision 1.22.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:45 2006 UTC (20 years, 6 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +12 -19
lines
Sync with head.
Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Fri Apr 21 12:08:50 2006 UTC (20 years, 7 months 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-1-1-RELEASE,
netbsd-3-1
Diff to: previous 1.13.2.3: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.3: +4 -2
lines
Pull up following revision(s) (requested by hannken in ticket #1282):
sys/dev/fss.c: revision 1.24
fss_bs_thread: add FSS_LOCK() in two error cases so the lock is held
on top of the loop.
From Christian Ehrhardt (netbsd-kern AT c--e.de) via tech-kern@
Revision 1.22.8.2: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:23 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.22.8.1: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.8.1: +12 -19
lines
sync with head.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Apr 13 15:56:53 2006 UTC (20 years, 7 months ago) by hannken
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -2
lines
fss_bs_thread: add FSS_LOCK() in two error cases so the lock is held
on top of the loop.
From Christian Ehrhardt (netbsd-kern AT c--e.de) via tech-kern@
Revision 1.22.6.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.22: preferred, colored
Changes since revision 1.22: +10 -19
lines
sync with head.
Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Fri Mar 17 15:18:50 2006 UTC (20 years, 8 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.2: +10 -19
lines
Pull up following revision(s) (requested by chs in ticket #1202):
sys/dev/fssvar.h: revision 1.13 via patch
sys/dev/fss.c: revision 1.23 via patch
use lockmgr() instead of bespoke code for mutual exclusion in fss_ioctl().
only take the lock when we actually need it (and particularly not for
unknown cmds that are just going to fail immediately). fixes PR 33060.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Mar 14 15:07:29 2006 UTC (20 years, 8 months ago) by chs
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
peter-altq-base
Branch point for: peter-altq
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +10 -19
lines
use lockmgr() instead of bespoke code for mutual exclusion in fss_ioctl().
only take the lock when we actually need it (and particularly not for
unknown cmds that are just going to fail immediately). fixes PR 33060.
Revision 1.22.8.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.22: preferred, colored
Changes since revision 1.22: +10 -10
lines
Adapt to kernel authorization KPI.
Revision 1.18.2.1: 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.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +10 -23
lines
sync with head.
Revision 1.22: 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
CVS tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base2,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
elad-kernelauth
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2
lines
don't set b_rawblkno unnecessarily.
it will be set by device strategy routine.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jan 7 01:11:42 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -3
lines
fss_cluster_iodone: don't call brelvp on non-buffercache buf.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jan 7 00:26:58 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +0 -2
lines
remove B_EINTR as it isn't used anymore.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Jan 4 10:13:05 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -16
lines
- add simple functions to allocate/free a buffer for i/o.
- make bufpool static.
Revision 1.18: 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
Branch point for: yamt-uio_vmspace
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +29 -28
lines
merge ktrace-lwp.
Revision 1.9.2.8: 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.9.2.7: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.7: +61 -218
lines
Sync with HEAD. Here we go again...
Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Wed Oct 26 08:32:45 2005 UTC (21 years ago) by yamt
Branches: yamt-vop
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.1: +14 -218
lines
sync with head
Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Oct 24 14:25:06 2005 UTC (21 years ago) by hannken
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
ktrace-lwp-base
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +14 -213
lines
Run all i/o from or to backing store through fss_bs_io().
Replace VOP_BMAP()/VOP_BALLOC() by vn_rdwr()/VOP_PUTPAGES().
Inspired by discussion on tech-kern@
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 20 02:47:18 2005 UTC (21 years, 1 month ago) by yamt
Branches: yamt-vop
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -3
lines
#if 0 out code which abuses VOP_BALLOC.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Oct 15 17:29:11 2005 UTC (21 years, 1 month ago) by yamt
Branches: MAIN
CVS tags: yamt-vop-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-vop
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -6
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.11.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.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +57 -14
lines
sync with -current
Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Thu Apr 21 19:01:40 2005 UTC (21 years, 7 months ago) by tron
Branches: netbsd-3
CVS tags: 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-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +46 -4
lines
Pull up revision 1.15 (requested by hannken in ticket #184):
Support user controllable flags for the snapshot driver:
- Add FSSIOFSET and FSSIOFGET ioctl() to set/get the flags.
- Add FSS_UNCONFIG_ON_CLOSE flag to unconfigure the snapshot device
on the last close.
Reviewed by: Jason R. Thorpe <thorpej@netbsd.org>
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 21 19:00:24 2005 UTC (21 years, 7 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3
lines
Pull up revision 1.14 (requested by hannken in ticket #184):
When a snapshot gets unconfigured always clear `FSS_BS_ALLOC'.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Apr 17 16:28:26 2005 UTC (21 years, 7 months ago) by hannken
Branches: MAIN
CVS tags: kent-audio2-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +46 -4
lines
Support user controllable flags for the snapshot driver:
- Add FSSIOFSET and FSSIOFGET ioctl() to set/get the flags.
- Add FSS_UNCONFIG_ON_CLOSE flag to unconfigure the snapshot device
on the last close.
Reviewed by: Jason R. Thorpe <thorpej@netbsd.org>
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Apr 17 11:39:52 2005 UTC (21 years, 7 months ago) by hannken
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3
lines
When a snapshot gets unconfigured always clear `FSS_BS_ALLOC'.
Revision 1.11.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:53 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.11.6.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.6.1: +5 -5
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.9.2.7: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:40:53 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.6: preferred, colored
Changes since revision 1.9.2.6: +5 -5
lines
Sync with HEAD.
Hi Perry!
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:26:58 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -5
lines
nuke trailing whitespace
Revision 1.9.2.6: download - view: text, markup, annotated - select for diffs
Tue Feb 15 21:33:12 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.5: preferred, colored
Changes since revision 1.9.2.5: +9 -8
lines
Sync with HEAD.
Revision 1.11.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:42 2005 UTC (21 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +9 -8
lines
sync with head.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Feb 9 15:12:19 2005 UTC (21 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +9 -8
lines
- Unlock backing store vnode in case of error.
- 32 -> sizeof()*NBBY
Revision 1.9.2.5: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:45:09 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.4: preferred, colored
Changes since revision 1.9.2.4: +27 -26
lines
Sync with HEAD.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Oct 29 15:39:38 2004 UTC (22 years ago) by hannken
Branches: MAIN
CVS tags: yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -3
lines
Move the inclusion of <sys/bufq.h> from fss.c to fssvar.h to make
an FSS-enabled kernel compile again.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Oct 28 07:07:39 2004 UTC (22 years ago) by yamt
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -2
lines
move buffer queue related stuffs from buf.h to their own header, bufq.h.
Revision 1.9.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:26:25 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.3: preferred, colored
Changes since revision 1.9.2.3: +2 -2
lines
Fix the sync with head I botched.
Revision 1.9.2.3: 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.9.2.2: preferred, colored
Changes since revision 1.9.2.2: +2 -2
lines
Sync with HEAD.
Revision 1.9.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.9.2.1: preferred, colored
Changes since revision 1.9.2.1: +1410 -0
lines
Sync with HEAD
Revision 1.9.2.1
Sun Jun 20 18:55:58 2004 UTC (22 years, 5 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.9: +0 -1410
lines
file fss.c was added on branch ktrace-lwp on 2004-08-03 10:44:54 +0000
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 20 18:55:58 2004 UTC (22 years, 5 months ago) by hannken
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +53 -16
lines
- Add flag L_COWINPROGRESS to struct lwp to avoid recursion when
doing copy-on-write.
- Change VFS_SNAPSHOT() to return the snapshot vnode locked.
- Make the IO path for copy-on-write and snapshot-read more lightweight.
Avoids deadlocks where vn_rdwr(...READ...) has a shared lock and needs
to copy-on-write.
Avoids deadlocks/panics where to clean pages the copy-on-write needs
to allocate pages for its VOP_PUTPAGES().
L_COWINPROGRESS part approved by: Jason R. Thorpe <thorpej@netbsd.org>
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 25 14:54:56 2004 UTC (22 years, 5 months ago) by hannken
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +121 -40
lines
Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.
- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
Snapshots may not be opened for writing and the attributes are read-only.
Use the mtime as the time this snapshot was taken.
Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
a vnode.
- Add snapshot support to ls, fsck_ffs and dump.
Welcome to 2.0F.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Feb 24 15:12:51 2004 UTC (22 years, 8 months ago) by wiz
Branches: MAIN
CVS tags: netbsd-2-base,
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,
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,
netbsd-2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
occured -> occurred. From Peter Postma.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Feb 14 00:00:56 2004 UTC (22 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +20 -54
lines
Add a generic copy-on-write hook to add/remove functions that will be
called with every buffer written through spec_strategy().
Used by fss(4). Future file-system-internal snapshots will need them too.
Welcome to 1.6ZK
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
Revision 1.5: 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
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -12
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.4: download - view: text, markup, annotated - select for diffs
Sun Jan 11 19:05:27 2004 UTC (22 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +316 -173
lines
Update the file system snapshot driver:
- Document the kernel thread.
- Rename some functions and variables.
- Return EROFS where appropriate.
- Use shifts instead of 64-bit divide.
- Use a simple_lock to make it MP-safe.
- Add M_CANFAIL to malloc to avoid panic on large cluster size.
- Allow sparse file for backing store and use VOP_BALLOC() to allocate
space. Default size of backing store is the size of the file system.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jan 10 17:16:38 2004 UTC (22 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3
lines
Allow vfs_write_suspend() to wait if the file system is already
suspending.
Move vfs_write_suspend() and vfs_write_resume() from kern/vfs_vnops.c
to kern/vfs_subr.c.
Change vnode write gating in ufs/ffs/ffs_softdep.c (from FreeBSD).
When vnodes are throttled in softdep_trackbufs() check for
file system suspension every 10 msecs to avoid a deadlock.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 18:59:29 2003 UTC (22 years, 11 months ago) by hannken
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -34
lines
Use ioctl(..., DIOCGPART, ...) instead of vn_stat() to get the size of the
underlying block device. vn_stat() gives the wrong size for the root fs.
Remove fssdetach() and fss_attached.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Dec 10 11:40:11 2003 UTC (22 years, 11 months ago) by hannken
Branches: MAIN
The file system snapshot pseudo driver.
Uses a hook in spec_strategy() to save data written from a mounted
file system to its block device and a hook in dounmount().
Not enabled by default in any kernel config.
Approved by: Frank van der Linden <fvdl@netbsd.org>
CVSweb <webmaster@jp.NetBSD.org>