Revision tags: isaki-audio2-base pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
|
#
1.38 |
|
07-Oct-2018 |
mlelstv |
Add flag to enforce file I/O even when bmap/strategy would be possible. This makes it easier to compare both modes, it also allows coherent operation between vnd device and image file.
|
Revision tags: pgoyette-compat-0930
|
#
1.37 |
|
20-Sep-2018 |
mlelstv |
getdisksize only operates on device vnodes. Use the ioctl on the underlying device instead.
|
Revision tags: pgoyette-compat-0906 jdolecek-ncqfixes-base pgoyette-compat-0728 phil-wifi-base 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 pgoyette-compat-base tls-maxphys-base-20171202 nick-nhusb-base-20170825
|
#
1.36 |
|
28-Jul-2017 |
riastradh |
branches: 1.36.2; Tweak whitespace to make this definition more greppable.
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
#
1.35 |
|
06-Sep-2015 |
dholland |
branches: 1.35.10; More on PR 41200: headers that declare ioctls should include sys/ioccom.h. This covers (I think) all the MI headers outside of external/ (and dist/).
|
Revision tags: nick-nhusb-base-20150606
|
#
1.34 |
|
25-May-2015 |
prlw1 |
whitespace police
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 rmind-smpnet-nbase riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base rmind-smpnet-base tls-maxphys-base
|
#
1.33 |
|
03-Jun-2013 |
christos |
branches: 1.33.10; PR/47879: Takahiro HAYASHI: vnd cannot handle disk image larger than 2TiB change size_t to uint64_t where needed.
|
Revision tags: agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8
|
#
1.32 |
|
26-Mar-2012 |
hannken |
branches: 1.32.2; When backed by a sparse file limit the number of pending requests.
Should fix PR #45829: "writing to vnd on sparse file blocks on pager_map" where the pager_map gets exhausted by requests enqueued on a vnd device and the device worker thread blocks on putpages() needing the map.
While here always sync the underlying vnode before calling biodone().
XXX: vnd should be converted to mutex/condvar.
|
Revision tags: jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.31 |
|
29-Jun-2011 |
hannken |
branches: 1.31.2; 1.31.6; 1.31.8; Make vnd(4) work on sparse files: - Make the strategy decision a device flag and set VNF_USE_VN_RDWR for files known to be sparse. - Change handle_with_rdwr() to use POSIX_FADV_NOREUSE advise to disable read ahead and keep the size of mapped pages below 1 MByte.
No objections on tech-kern@.
|
Revision tags: rmind-uvmplock-nbase cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base rmind-uvmplock-base
|
#
1.30 |
|
08-Feb-2011 |
rmind |
Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
Revision tags: jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11
|
#
1.29 |
|
19-Sep-2010 |
mrg |
branches: 1.29.2; 1.29.4; actually, put the old definitions back into vndvar.h, under _KERNEL, as netbsd32 wants access to them.
|
#
1.28 |
|
19-Sep-2010 |
mrg |
fix the vnd_osize changes on 32 bit platforms with 64 bit alignment for 64 bit integers (eg, sparc). the problem was that the new 64 bit element on the end was used for the offsetof() (aka size) for the old structure, but this includes the padding required, thus the ioctl number was set wrongly.
move all the supporting code for this inside COMPAT_50, with some renaming to suit, and kill all the external definitions related to it.
tested on i386, amd64 and sparc.
|
#
1.27 |
|
19-Sep-2010 |
mrg |
add support for COMPAT_50 ioctls. struct vnd_user has a dev_t component which grew since netbsd 5.0 (hi christos!)
fix a few issues/problems: - the COMPAT_30 code wasn't used since opt_compat_netbsd.h wasn't included - move 'struct vnd_ouser' (for COMPAT_30) into vnd.c itself, and call it 'struct vnd_user30' - same for VNDIOOCGET -> VNDIOCGET30
now 'vnconfig -l' works on -current with a netbsd-5 binary, using i386.
XXX: there is still a potential problem with the old VNDIOOCSET and VNDIOOCCLR macros on some platforms like sparc. there is padding between the old vnd_osize member and the new vnd_size member on platforms that want 64 bit values 64 bit aligned, but are 32 bit otherwise (like sparc.) 64 bit systems already end up with this member 64 bit aligned, and should be fine.
this most likely results in the old ioctl numbers being wrong and the code won't match/run ever (ENOTTY.)
|
Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1 yamt-nfs-mp-base9 uebayasi-xip-base
|
#
1.26 |
|
14-Dec-2009 |
uebayasi |
branches: 1.26.2; 1.26.4; Protect multiple inclusion.
|
Revision tags: matt-premerge-20091211
|
#
1.25 |
|
06-Dec-2009 |
dsl |
Make vnd_size (the returned size) 64 bit, keeping old field for ioctl compatibility. Both fields are now unsigned. Add compatibility for the old ioctl size. Detect and error files which are definitely sparse (va_bytes < va_size). Part of fix for PR/41873.
|
Revision tags: yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 jym-xensuspend-nbase yamt-nfs-mp-base3 jym-xensuspend-base
|
#
1.24 |
|
30-Apr-2009 |
dyoung |
Straggler from last vnd(4) commit: #define VNF_CLEARING.
|
Revision tags: netbsd-5-1-5-RELEASE netbsd-5-1-4-RELEASE netbsd-5-1-3-RELEASE netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 haad-dm-base wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 yamt-nfs-mp-base2 wrstuden-revivesa-base mjf-devfs2-base
|
#
1.23 |
|
28-Apr-2008 |
martin |
branches: 1.23.10; 1.23.14; Remove clause 3 and 4 from TNF licenses
|
Revision tags: yamt-pf42-baseX yamt-nfs-mp-base yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase
|
#
1.22 |
|
04-Mar-2008 |
cube |
branches: 1.22.2; 1.22.4; Split device_t/softc and other related cosmetic changes.
|
Revision tags: nick-csl-alignment-base5 nick-net80211-sync-base bouyer-xeni386-merge1 matt-armv6-prevmlocking vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 bouyer-xeni386-base yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base mjf-devfs-base bouyer-xenamd64-base2 vmlocking-nbase yamt-x86pmap-base4 bouyer-xenamd64-base yamt-x86pmap-base3 yamt-x86pmap-base2 yamt-x86pmap-base matt-armv6-base matt-mips64-base jmcneill-pm-base hpcarm-cleanup-base nick-csl-alignment-base reinoud-bufcleanup-base mjf-ufs-trans-base vmlocking-base
|
#
1.21 |
|
09-Jul-2007 |
ad |
branches: 1.21.8; 1.21.24; 1.21.28; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 yamt-idlelwp-base8 wrstuden-fixsa-base thorpej-atomic-base ad-audiomp-base post-newlock2-merge newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 abandoned-netbsd-4-base yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 newlock2-base yamt-pdpolicy-base8 yamt-pdpolicy-base7 netbsd-4-base yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base simonb-timecounters-base rpaulo-netinet-merge-pcb-base
|
#
1.20 |
|
14-May-2006 |
elad |
branches: 1.20.18; 1.20.20; integrate kauth.
|
Revision tags: yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5
|
#
1.19 |
|
01-Feb-2006 |
cube |
branches: 1.19.2; 1.19.4; 1.19.6; 1.19.8; Have vnd(4) devices automatically created when the user tries to configure one. That removes the compile-time constant that limits the number of vnds.
Thanks xtraeme@ for testing.
|
#
1.18 |
|
11-Dec-2005 |
christos |
branches: 1.18.2; 1.18.4; merge ktrace-lwp.
|
Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
|
#
1.17 |
|
15-Oct-2005 |
yamt |
- 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)
|
#
1.16 |
|
19-Aug-2005 |
christos |
64 bit inode changes.
|
#
1.15 |
|
17-Jul-2005 |
hubertf |
Add support for reading cloop2 compressed filesystem image, enable by putting VND_COMPRESSION into kernel config file. Written by Cliff Wright, polished up slightly by me.
|
Revision tags: kent-audio2-base
|
#
1.14 |
|
30-Mar-2005 |
bouyer |
branches: 1.14.2; Make vnd do I/O to the underlying file from thread context. This allows the strategy routine to be called from interrupt context, fixes PR kern/29775 by Juan RP. Now that pool_get() is only called from thread context, change PR_NOWAIT to PR_WAITOK. Fix PR kern/26272 by Juergen Hannken-Illjes. OK'd by thorpej@
|
Revision tags: yamt-km-base4 yamt-km-base3 netbsd-3-base
|
#
1.13 |
|
27-Feb-2005 |
perry |
branches: 1.13.2; nuke trailing whitespace
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-0-2-RELEASE yamt-km-base2 yamt-km-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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-base
|
#
1.12 |
|
07-Aug-2003 |
agc |
branches: 1.12.6; 1.12.8; 1.12.10; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
#
1.11 |
|
17-May-2003 |
thorpej |
branches: 1.11.2; Add DIOCKLABEL support. Fixes PR kern/21605 (Luke Mewburn).
|
#
1.10 |
|
11-Apr-2003 |
drochner |
Add a VNDIOF_FORCE flag which forces unconfiguration if the emulated disk is still in use. Not for everyday use, but we have to face eg USB flash drives being unplugged at the wrong time, and this is a way to simulate this without wearing out the connectors.
|
#
1.9 |
|
27-Mar-2003 |
yamt |
read-only configuration support.
|
Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base kqueue-aftermerge kqueue-beforemerge gehenna-devsw-base kqueue-base
|
#
1.8 |
|
20-Jul-2002 |
hannken |
Convert to new device buffer queue interface.
|
#
1.7 |
|
21-Jun-2002 |
atatat |
Provide a means for vnconfig to indicate which devices are in use, and by which files (hmm...why can't I unmount that file system over there). Currently this is just the device and inode number of the file backing the vnd, but hopefully consing up full pathnames can be done at some point.
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base netbsd-1-5-PATCH003 eeh-devprop-base newlock-base ifpoll-base thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 thorpej_scsipi_beforemerge thorpej_scsipi_nbase netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base thorpej_scsipi_base
|
#
1.6 |
|
20-Mar-2000 |
jdolecek |
branches: 1.6.6; 1.6.8; 1.6.20; only define struct vnd_softc if _KERNEL is defined
|
Revision tags: chs-ubc2-newbase
|
#
1.5 |
|
21-Jan-2000 |
thorpej |
Update for sys/buf.h/disksort_*() changes.
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 wrstuden-devbsize-19991221 wrstuden-devbsize-base kame_141_19991130 comdex-fall-1999-base fvdl-softdep-base netbsd-1-4-PATCH001 kame_14_19990705 kame_14_19990628 chs-ubc2-base netbsd-1-4-RELEASE netbsd-1-4-base kenh-if-detach-base chs-ubc-base
|
#
1.4 |
|
31-Jul-1998 |
thorpej |
branches: 1.4.12; 1.4.18; Use the pool allocator for vndxfer and vndbuf structures.
|
Revision tags: eeh-paddr_t-base
|
#
1.3 |
|
02-Dec-1997 |
pk |
branches: 1.3.2; Pull over fixes from vm_swap.c: - guard against synchronous I/O completion - avoid race conditions - use bgetvp/brelvp to properly maintain the vnode holdcount and clean/dirty buffer lists.
|
Revision tags: netbsd-1-3-BETA netbsd-1-3-base marc-pcmcia-base
|
#
1.2 |
|
09-Oct-1997 |
jtc |
branches: 1.2.2; Fix tipo inherited from old version of TNF copyright template.
|
Revision tags: thorpej-signal-base marc-pcmcia-bp
|
#
1.1 |
|
23-Jun-1997 |
thorpej |
branches: 1.1.4; Add full disklabel and partition support to the vnd driver, allowing much greater flexibility in its use. Additionally, add support for "geometry emulation". This allows the "geometry" of the "disk" to be specified at config time, providing near-perfect emulation of disklabel-less floppies, CD-ROMs, etc., including non-512-byte sectors. If a geometry is not specified at config time, a default based on 1M cylinders will be used.
|