Age | Commit message (Collapse) | Author |
|
but for now this allows us to move forward.
|
|
ok dlg@ marco@
|
|
discipline. This results in a drive sensor being attached for each volume
under the same sensordev, instead of having multiple sensordevs each with
a single drive. Fixes PR6576.
Tested by Mattieu Baptiste.
ok deraadt@
|
|
|
|
exceed MAXPHYS in size.
Thanks to ckuethe@ and stsp@ for testing.
ok marco@
|
|
installing boot code.
ok marco@
|
|
prodded and ok deraadt
|
|
logical block address, not the size of the device. Adjust softraid's
handling of the commands accordingly.
Fixes panics when newfs'ing the 'c' partition of a softraid volume
(one shouldn't newfs 'c' partitions of any device). Reported by
Andreas Bartlet via tech@. Fix tested by Andreas.
ok marco@. functionally identical diff developed by dlg@
|
|
call while in interrupt context.
Contains an additional spl dance as found by thib.
Tested by many opn various arches. Note that raid 0/4/5/6 have not been
moved over yet.
|
|
than 1 i/o active at once. This reduces the chances that concurrent
i/o's for such devices will confuse the device or the adapter code.
It also eliminates a reason for adapter code to maintain its own
queues.
Tweak all drivers that fake INQUIRY results to set the SID_CmdQue
flag, thus continuing to claim to be able to do tagged i/o.
Positive feedback from matthew@ and marco@ for an earlier version.
ok dlg@
|
|
curproc. A bunch of callers were passing in 0 (not even NULL, 0) as this
pointer, which was fine until the called vnode function tried to do
something with it. Typically, this code was then copy/pasted to various
parts of the tree.
Accept the facts of life and switch all of these over to passing curproc
for now until the argument can be removed.
Discovered by stsp trying to create a softraid on top of a vnd, which
crashed with a NULL deref in vndioctl.
softraid bits tested by mikeb and jsing. raidframe bits tested by pea,
matthieu and naddy. The rest tested by at least thib, jsing and myself.
ok thib@, jsing@.
|
|
different levels; ok oga kettenis
|
|
|
|
where disks can be on alldevs, however they are not yet initialised and
have not yet called disk_attach() (in particular this means that dk_label
is a null pointer). Also, if we sleep restart the scan from the top of
the disklist in case things have changed whilst we slept.
ok marco@
|
|
This is more clear, and as thib pointed out, the default in softraid was
wrong. ok thib.
|
|
ok marco@
|
|
metadata. This allows us to implement seamless transitions from the
previous metadata version to the current version, avoiding the need to
recreate the softraid volume.
Joint work with marco@ during c2k10.
ok marco@
|
|
step in elminating 'struct scsi_device' entirely.
Spotted and initial diff from matthew@.
ok matthew@ dlg@ deraadt@ marco@ miod@
|
|
not supported.
this prevents a panic caused by recursively entering the ioctl handler that
now happens on boot when sd tries to enable write cache on all disks.
found by ckeuthe@
tested by todd@
|
|
ioctl requests, and dont pass the proc pointers around for any ioctl
requests in scsi land at all. neither were used, so trim the fat.
ok krw@ marco@
|
|
|
|
low-hanging splbio/splx pairs that are no longer needed and see if
this reveals any hidden scsi flaws.
ok dlg@
|
|
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@
|
|
optional metadata per volume and discipline specific optional metadata
processing.
ok marco@
|
|
Found by jsg@ using the clang static analyser.
ok marco@
|
|
splx() call.
Found by jsg@ using the clang static analyser.
ok marco@
|
|
Found by clang static analyser.
|
|
installed on a softraid volume. This is work in progress but can continue
in tree.
ok marco@
|
|
Also add a new optional metadata type for boot data. This is the first
step (of many) towards being able to boot from softraid volumes.
WARNING: This version of the softraid metadata is not compatible with
previous versions. As a result, any softraid volumes created with older
kernels will not assemble. Data on existing softraid volumes should be
backed up before upgrading. The volume should then be recreated and the
data restored.
ok marco@
|
|
void. Use XS_NO_CCB error in the scsi command (xs) to report the
NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE
confusion and untangles the midlayer from the adapter a bit more.
Eyes and some fixes by miod@
There may be some compile issues on little used (i.e. I don't have
any) drivers but the change is mechanical and thus easy to remedy.
ok dlg@
|
|
chunks from being reordered on an existing volume.
ok marco@
|
|
ok marco@
|
|
ok @marco
|
|
ok marco@
|
|
other devices do. Silences complaints about missing media on removable
media devices.
ok marco@ jsing@
|
|
else cares so it's just noise. Drivers that actually look at ITSDONE
are unchanged.
ok marco@ (for his files) dlg@ beck@
|
|
without using a passphrase - instead the encryption mask key is stored on
the specified key disk partition (ideally being one on a removable device).
This also enables automatic assembly of crypto volumes at boot time.
ok marco@
|
|
"Love it!" marco@
|
|
"in, in, in!" marco@
|
|
panic that is caused by vnode aliasing, where checkalias() switches the
vnode ops for our vnode. This means that we end up using ufs unlocking
rather than specfs unlocking (which is a no-op).
ok marco@
|
|
ok marco@
|
|
"shiny!!" marco@
|
|
you backup your data and lock up your pets prior to using this.
Tested by todd@
ok marco@
|
|
ok marco@
|
|
ok marco@
|
|
ok marco@
|
|
ok marco@ deraadt@
|
|
rather than the start of the device name. Also, be inclusive with devices
probed rather than exclusive - this means we now only look for RAID
partitions on sd(4) and wd(4) devices.
prodded by deraadt@
ok marco@ deraadt@
|
|
spotted and ok jsing
|
|
This is needed for the addition of further suspend/resume actions.
Okay deraadt@, marco@.
|