History log of /src/sys/dev/vndvar.h |
Revision | | Date | Author | Comments |
1.39 |
| 13-Feb-2025 |
gutteridge | vndvar.h: fix grammar in a comment
|
1.38 |
| 07-Oct-2018 |
mlelstv | branches: 1.38.36; 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.
|
1.37 |
| 20-Sep-2018 |
mlelstv | getdisksize only operates on device vnodes. Use the ioctl on the underlying device instead.
|
1.36 |
| 28-Jul-2017 |
riastradh | branches: 1.36.2; 1.36.4; Tweak whitespace to make this definition more greppable.
|
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/).
|
1.34 |
| 25-May-2015 |
prlw1 | whitespace police
|
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.
|
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.
|
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@.
|
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@.
|
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.)
|
1.26 |
| 14-Dec-2009 |
uebayasi | branches: 1.26.2; 1.26.4; Protect multiple inclusion.
|
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.
|
1.24 |
| 30-Apr-2009 |
dyoung | Straggler from last vnd(4) commit: #define VNF_CLEARING.
|
1.23 |
| 28-Apr-2008 |
martin | branches: 1.23.10; 1.23.14; Remove clause 3 and 4 from TNF licenses
|
1.22 |
| 04-Mar-2008 |
cube | branches: 1.22.2; 1.22.4; Split device_t/softc and other related cosmetic changes.
|
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
|
1.20 |
| 14-May-2006 |
elad | branches: 1.20.18; 1.20.20; integrate kauth.
|
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.
|
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.
|
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@
|
1.13 |
| 27-Feb-2005 |
perry | branches: 1.13.2; nuke trailing whitespace
|
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.
|
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.
|
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
|
1.5 |
| 21-Jan-2000 |
thorpej | Update for sys/buf.h/disksort_*() changes.
|
1.4 |
| 31-Jul-1998 |
thorpej | branches: 1.4.12; 1.4.18; Use the pool allocator for vndxfer and vndbuf structures.
|
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.
|
1.2 |
| 09-Oct-1997 |
jtc | branches: 1.2.2; Fix tipo inherited from old version of TNF copyright template.
|
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.
|
1.1.4.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.2.2.1 |
| 09-Dec-1997 |
thorpej | Sync w/ trunk: fix several race conditions (pk)
|
1.3.2.1 |
| 08-Aug-1998 |
eeh | Revert cdevsw mmap routines to return int.
|
1.4.18.1 |
| 21-Dec-1999 |
wrstuden | Initial commit of recent changes to make DEV_BSIZE go away.
Runs on i386, needs work on other arch's. Main kernel routines should be fine, but a number of the stand programs need help.
cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512 byte block devices. vnd, raidframe, and lfs need work.
Non 2**n block support is automatic for LKM's and conditional for kernels on "options NON_PO2_BLOCKS".
|
1.4.12.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.6.20.2 |
| 29-Aug-2002 |
gehenna | catch up with -current.
|
1.6.20.1 |
| 15-Jul-2002 |
gehenna | catch up with -current.
|
1.6.8.1 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.6.6.1 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.11.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.11.2.5 |
| 01-Apr-2005 |
skrll | Sync with HEAD.
|
1.11.2.4 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.11.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.11.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.11.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.12.10.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.12.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.12.6.1 |
| 13-May-2005 |
riz | Pull up revision 1.14 via patch (requested by bouyer in ticket #1417): Make vnd do I/O to the underlying file from thread context. This allows the strategy routine to be called from interrupt context
Now that pool_get() is only called from thread context, change PR_NOWAIT to PR_WAITOK. Fix PR kern/26272 by Juergen Hannken-Illjes. OK'd by thorpej@
|
1.13.2.2 |
| 14-Aug-2005 |
riz | Pull up revision 1.15 (requested by hubertf in ticket #625): Add support for reading cloop2 compressed filesystem images, enable by putting VND_COMPRESSION into kernel config file. Written by Cliff Wright, polished up slightly by me.
|
1.13.2.1 |
| 03-Apr-2005 |
tron | Pull up revision 1.14 (requested by bouyer in ticket #85): Make vnd do I/O to the underlying file from thread context. This allows the strategy routine to be called from interrupt context, fixes PR kern/29775 by Juan RP. Now that pool_get() is only called from thread context, change PR_NOWAIT to PR_WAITOK. Fix PR kern/26272 by Juergen Hannken-Illjes. OK'd by thorpej@
|
1.14.2.3 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.14.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.14.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.18.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.18.2.1 |
| 01-Feb-2006 |
yamt | sync with head.
|
1.19.8.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.19.6.2 |
| 06-May-2006 |
christos | - Move kauth_cred_t declaration to <sys/types.h> - Cleanup struct ucred; forward declarations that are unused. - Don't include <sys/kauth.h> in any header, but include it in the c files that need it.
Approved by core.
|
1.19.6.1 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
|
1.19.4.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.19.2.1 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.20.20.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.20.18.1 |
| 09-Apr-2007 |
ad | - Add two new arguments to kthread_create1: pri_t pri, bool mpsafe. - Fork kthreads off proc0 as new LWPs, not new processes.
|
1.21.28.3 |
| 05-Jun-2008 |
mjf | Sync with HEAD.
Also fix build.
|
1.21.28.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.21.28.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.21.24.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.21.8.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.22.4.4 |
| 09-Oct-2010 |
yamt | sync with head
|
1.22.4.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.22.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.22.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.22.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.23.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.23.10.1 |
| 31-Dec-2011 |
snj | Pull up following revision(s) (requested by riz in ticket #1705): sys/dev/vnd.c: revision 1.218 via patch sys/dev/vndvar.h: revision 1.31 via patch Make vnd(4) work on sparse files: - Make the strategy decision a device flag and set VNF_USE_VN_RDWR for files known to be sparse. - Change handle_with_rdwr() to use POSIX_FADV_NOREUSE advise to disable read ahead and keep the size of mapped pages below 1 MByte. No objections on tech-kern@.
|
1.26.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.26.2.1 |
| 22-Oct-2010 |
uebayasi | Sync with HEAD (-D20101022).
|
1.29.4.1 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.29.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.31.8.1 |
| 06-Apr-2012 |
riz | Pull up following revision(s) (requested by hannken in ticket #162): sys/dev/vnd.c: revision 1.220 sys/dev/vndvar.h: revision 1.32 When backed by a sparse file limit the number of pending requests. Should fix PR #45829: "writing to vnd on sparse file blocks on pager_map" where the pager_map gets exhausted by requests enqueued on a vnd device and the device worker thread blocks on putpages() needing the map. While here always sync the underlying vnode before calling biodone(). XXX: vnd should be converted to mutex/condvar.
|
1.31.6.1 |
| 05-Apr-2012 |
mrg | sync to latest -current.
|
1.31.2.2 |
| 22-May-2014 |
yamt | 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")
|
1.31.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.32.2.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.32.2.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.33.10.3 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.33.10.2 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.33.10.1 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.35.10.1 |
| 13-Oct-2018 |
martin | Pull up following revision(s) (requested by mlelstv in ticket #1059):
sys/dev/vnd.c: revision 1.265 sys/dev/vndvar.h: revision 1.37
getdisksize only operates on device vnodes. Use the ioctl on the underlying device instead.
|
1.36.4.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.36.2.2 |
| 20-Oct-2018 |
pgoyette | Sync with head
|
1.36.2.1 |
| 30-Sep-2018 |
pgoyette | Ssync with HEAD
|
1.38.36.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|