Home | History | Annotate | Download | only in dev
History log of /src/sys/dev/cgdvar.h
RevisionDateAuthorComments
 1.21  13-Jun-2020  riastradh Constify.
 1.20  13-Jun-2020  riastradh Tidy up includes.
 1.19  09-Mar-2020  mlelstv Defer crypto operations to a workqueue and make it utilize all CPUs.
Make device mpsafe.
Some code cleanup.
 1.18  06-Sep-2015  dholland branches: 1.18.18; 1.18.24;
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.17  18-Mar-2014  skrll branches: 1.17.6;
Remove a simplelock and replace with a kmutex
 1.16  05-Dec-2012  christos branches: 1.16.2;
add cgdconfig -l like vnconfig -l
 1.15  25-May-2012  elric branches: 1.15.2;
Modify dksubr.c to add a function that sets the disk properties in
the drvctl framework. And call this new functionality from cgd(4),
the consumer of dksubr.c. We do this to allow gpt(8) to be able
to label cgd(4) disks. We also add in some DIOCGSECTORSIZE logic
and we ensure that the WEDGE ioctls are not called on either
uninitialised disks or disks which have not been opened for write
access.
 1.14  12-Jan-2010  dyoung branches: 1.14.12; 1.14.16;
Make cgd(4) into a detachable pseudo-device. Thanks, Jan Danielsson,
for the patches!

I've lightly tested the basics: create cgd0 on vnd0d, initialize with
zeros, newfs /dev/cgd0a, mount, copy files on, unmount, drvctl -d
cgd0. Works fine. I also shutdown with a cgd0 configured: detached as
expected.
 1.13  10-Nov-2009  christos avoid variable array stack allocation by enforcing and allocating always the
maximum.
 1.12  12-Sep-2008  christos PR/39525: Joachim Schueth, Frederik Sausmikat:
cgd inadvertently encrypts blkno eight times to generate IV
 1.11  28-Apr-2008  martin branches: 1.11.2; 1.11.6;
Remove clause 3 and 4 from TNF licenses
 1.10  04-Jan-2008  ad branches: 1.10.6; 1.10.8; 1.10.10;
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.
 1.9  04-Mar-2007  christos branches: 1.9.16; 1.9.22; 1.9.28;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.8  02-Dec-2006  christos branches: 1.8.2;
revert previous commit (size_t -> int change). Thanks cube.
 1.7  02-Dec-2006  christos restore binary compatibility.
 1.6  02-Dec-2006  christos int -> size_t
 1.5  11-Dec-2005  christos branches: 1.5.20; 1.5.22; 1.5.24;
merge ktrace-lwp.
 1.4  27-Jun-2005  christos branches: 1.4.2;
no reason for those not to be const.
 1.3  23-Aug-2004  thorpej Protect against multiple inclusion.
 1.2  27-Mar-2004  elric Modified the dksubr routines to:

o expect the disk's start routine to return an int. If the
int is non-zero, we enqueue the request and try again
later.
o have a dk_start() routine which runs the request queue.
o have a dk_iodone() function which should be called by the
driver using the framwork from its iodone. dk_iodone will
retry the queue since presumably further progress may be
possible once a request is complete. It is required that
the underlying driver have the resources to keep at least
one transaction in flight at any time.

Modified cgd to:

o be able to keep one transaction in flight at any time
(almost) by keeping a buffer of size MAXPHYS in its softc
and use it.

We still need to make the cgd_cbufpool per device rather than global
and provide a low water mark for it.

Addresses PR: kern/24715
(at least according to the submitter.)
 1.1  04-Oct-2002  elric branches: 1.1.2; 1.1.8;
The CryptoGraphic Disk Driver.
 1.1.8.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.8.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.8.3  18-Sep-2004  skrll Sync with HEAD.
 1.1.8.2  25-Aug-2004  skrll Sync with HEAD.
 1.1.8.1  03-Aug-2004  skrll Sync with HEAD
 1.1.2.2  18-Oct-2002  nathanw Catch up to -current.
 1.1.2.1  04-Oct-2002  nathanw file cgdvar.h was added on branch nathanw_sa on 2002-10-18 02:41:27 +0000
 1.4.2.3  21-Jan-2008  yamt sync with head
 1.4.2.2  03-Sep-2007  yamt sync with head.
 1.4.2.1  30-Dec-2006  yamt sync with head.
 1.5.24.1  04-Jan-2007  bouyer Pull up following revision(s) (requested by jdc in ticket #326):
sys/dev/cgdvar.h: revisions 1.6-1.8
int -> size_t, fix build on 64-bit architectures.
 1.5.22.1  10-Dec-2006  yamt sync with head.
 1.5.20.1  12-Jan-2007  ad Sync with head.
 1.8.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.9.28.1  08-Jan-2008  bouyer Sync with HEAD
 1.9.22.1  18-Feb-2008  mjf Sync with HEAD.
 1.9.16.1  09-Jan-2008  matt sync with HEAD
 1.10.10.3  11-Mar-2010  yamt sync with head
 1.10.10.2  04-May-2009  yamt sync with head.
 1.10.10.1  16-May-2008  yamt sync with head.
 1.10.8.1  18-May-2008  yamt sync with head.
 1.10.6.2  28-Sep-2008  mjf Sync with HEAD.
 1.10.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.11.6.1  19-Oct-2008  haad Sync with HEAD.
 1.11.2.1  24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.14.16.1  02-Jun-2012  mrg sync to latest -current.
 1.14.12.3  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.14.12.2  16-Jan-2013  yamt sync with (a bit old) head
 1.14.12.1  30-Oct-2012  yamt sync with head
 1.15.2.3  03-Dec-2017  jdolecek update from HEAD
 1.15.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.2.1  25-Feb-2013  tls resync with head
 1.16.2.1  18-May-2014  rmind sync with head
 1.17.6.1  22-Sep-2015  skrll Sync with HEAD
 1.18.24.1  06-Apr-2020  martin Pull up following revision(s) (requested by riastradh in ticket #823):

sys/dev/cgdvar.h: revision 1.19
sys/dev/cgd.c: revision 1.122
sys/dev/cgd.c: revision 1.123
sys/dev/cgd.c: revision 1.124

Defer crypto operations to a workqueue and make it utilize all CPUs.

Make device mpsafe.

Some code cleanup.

Don't wait for data buffer.

cgd: switch from malloc(9) to kmem(9)
XXX might be worthwhile to use pool_cache(9) in the write path
 1.18.18.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed