| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for the device on which the vnd image resides on, this has the
effect that a bufq_done call is done in the context of the
underlaying bufq, setting b_bq to NULL, meaning there is never
a bufq_done call done for the vnd bufq so the outstanding count
never decreses.
Add one in vndiodone. This fixes the suspsend issues krw@ was
running into.
ok tedu@, krw@
nod from miod@ on the commit.
|
|
|
|
|
|
|
|
| |
the softc is zero'ed when the vnd is unconfigured;
otherwise we blow up when configuring a vnd the second
time since the bufq structure is kaputt.
found by and OK krw@
|
|
|
|
| |
OK dlg@, beck@, krw@.
|
|
|
|
|
|
|
| |
in which it was configured. If this is a "safe" vnd disk the name should
be "svndX" whereas a standard vnd disk should be named "vndX".
ok deraadt@ todd@ thib@
|
|
|
|
|
|
|
| |
no point in keeping it around.
"i like this" thib@ (a while back); ok krw@ and oga@; reminder to
update the man page and tweaks jmc@
|
|
|
|
|
|
|
| |
disk_attach() is called by the device driver. We will be building on
this shortly.
ok deraadt@ krw@
|
|
|
|
| |
ok miod@; "please go ahead" jsing@
|
|
|
|
|
|
|
|
|
|
|
|
| |
right thing, throw it away by marking it as B_INVAL and setting
the B_ERROR flag and b_error to the errno that was returned.
B_RAW doesn't matter there.
Issue report my mlarkin@, this diff tested and confirmed to
fix the issue by mlarkin also, thanks!
OK krw@, beck@, deraadt@
|
| |
|
|
|
|
| |
call bufq_done in biodone.
|
|
|
|
|
|
|
|
|
|
|
| |
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include
<sys/dkio.h> to the places that actually want and use the disk
ioctls.
this became an issue when krw@'s X build failed when he was testing
a change to dkio.h.
tested by krw@
help from and ok miod@
|
|
|
|
|
|
|
| |
identifier, allowing the disk to be identified without relying on the
device name.
ok deraadt@ krw@ beck@ marco@ todd@
|
|
|
|
| |
ok otto@, agreed by deraadt@
|
|
|
|
|
|
|
|
|
| |
errnos. Note that the error strings are being ignored, since we long ago
decided to not spam the console, and there is no other nice way to use the
errors (without changing the ioctls to pass it back)
The errno is now useful, since we can pass b_error from failing IO up, and
the drive can decide how to use that
ok miod
|
|
|
|
|
|
| |
have been going on. this appears to bring us back to stable state.
lots of testing by oga and ariane and my self.
|
|
|
|
| |
Noticed by & ok deraadt@
|
|
|
|
|
|
|
|
|
| |
one by tedu@. It doesn't do anything smart yet, it just uses
plain old disksort. we also keep the old method of queueing bufs
since some miods have crazy MD drivers that need some love.
ok beck@, art@
tested by many on many archs.
|
|
|
|
|
|
|
|
|
|
|
| |
option which makes the vnd device emulate the geometry of the
specified disktab(5) entry. No change in behaviour or geometry
unless -t is used.
API for vnd configuration ioctl (VNDIOCSET) changes, so mount_vnd
must be in sync with kernel.
Tested & ok jsing@ 'Lovely' deraadt@
|
|
|
|
|
|
|
|
|
|
| |
vnd(4) device, via a new -s option to vnconfig/mount_vnd. This allows us
to create disklabels and file systems that are suitable for use on
devices that have a non-512 byte sector size (eg. CDROMs).
With help from krw@ and feedback from pedro@.
ok krw@, pedro@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
them going negative - this consists of identifying a number of cases of
IO not going through the buffer cache and marking those buffers with
B_RAW - as well as fixing nfs_bio to show pending writes and reads through
the buffer cache via NFS
still has a problem with mishandling the counters I believe in the
async/sync fallback case where counters stay positive which will be
addressed seperately.
ok tedu@ deraadt@
|
| |
|
|
|
|
|
|
| |
disklabel's d_secsize.
ok millert@ marco@
|
|
|
|
|
|
| |
prepare for adding missing DIOC* ioctl's.
No functional change.
|
| |
|
|
|
|
|
| |
from Piotr Durlej, tested by henning@, krw@, thib@ and myself
ok thib@, grunk@, krw@
|
|
|
|
| |
ok mglocker
|
|
|
|
| |
prompted and "much better" by marco@, ok pyr@
|
|
|
|
| |
ok pyr@ and krw@
|
|
|
|
| |
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
|
| |
|
|
|
|
|
|
|
| |
type of all variables to daddr64_t. this includes the APIs for XXsize()
and XXdump(), all range checks inside bio drivers, internal variables
for disklabel handling, and even uvm's swap offsets. re-read numerous
times by otto, miod, krw, thib to look for errors
|
|
|
|
|
| |
to size. tested on almost all machines, double checked by miod and krw
next comes the type handling surrounding these values
|
|
|
|
|
|
| |
readdisklabel(), since all readdisklabel()'s do that already.
ok deraadt@
|
|
|
|
|
| |
VNDLABELDEV() is used in readdisklabel(). VNDLABELDEV() preserves the
vndsimple() property encoded in the device.
|
|
|
|
|
|
| |
more consistant. No change to code.
ok miod@
|
|
|
|
| |
up elsewhere
|
|
|
|
| |
ok art pedro thib
|
| |
|
|
|
|
|
|
|
| |
how much blowfish takes at max, which is 72 bytes.
Also define a constant for this in the include file, suggested by ray@.
ok pedro@ thib@ tedu@
|
|
|
|
| |
Fixes kern/5347
|
|
|
|
|
|
|
|
|
|
|
| |
s/DEBUG/VNDDEBUG/ and introduce DNPRINTF, fold
all the #ifdef DEBUG <stuff> #endif into DNPRINTFs.
Use DTYPE_VND for the disklabel d_type member, dont
calcluate d_secpercyl from d_ntrack * d_nsectors, just
set it too 100 directly since we set d_ntrack and
d_nsectors to 1 and 100 respectivly.
testing and OK krw@
|
| |
|
|
|
|
|
|
| |
type of the first open (svnd vs vnd).
ok pedro@
|
|
|
|
| |
Okay weingart@, "I'm game with putting my name on it" dlg@
|
| |
|
|
|
|
|
|
|
|
| |
are back by weird images (such as the ones qemu creates).
proplem found the hard way by msf@
ok mickey@, pedro@
|
|
|
|
|
|
|
|
|
|
| |
setting RAW_PART's p_size to d_secperunit * (d_secsize / DEV_BSIZE) is
a waste of a few ops. And p_size should be in sectors anyway.
Just set RAW_PART's p_size to d_secperunit to make usage consistant
across the tree.
Should be a no-op.
|
| |
|
|
|
|
| |
splbio() is required when allocating. Fixes PR kern/5041, okay tedu@.
|
| |
|