| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sparc64 installboot(8) on softraid(4) with too large files, e.g. unstripped
builds, fails poorly with "installboot: softraid installboot failed".
This is due to the BIOCINSTALLBOOT ioctl(2) returing the default EINVAL
rather than using softraid's sr_error() interface properly; additionally,
installboot does not check for such message from the bio(4) layer.
Make the kernel generate "boot block too large" and "boot loader too large"
messages for softraid devices and have installboot act upon them analogous
to bioctl(8), by adapting its bio_status() into the new sr_status() helper.
Input, reminder to look at bioctl, same kernel diff from, OK jsing
|
|
|
|
|
| |
Harmless since free(9) first checks that the pointer is not NULL.
ok krw@
|
|
|
|
|
|
| |
the vnode because `open' is true.
OK deraadt@, anton@
|
|
|
|
| |
ok kn@ deraadt@
|
|
|
|
|
|
|
|
| |
nothing at all. MAXPHYS will be applied in minphys() and nothing at
all, well, doesn't do anything.
Also remove any '#define <blah> MAXPHYS' statements used solely to
disguise MAXPHYS in said functions.
|
|
|
|
|
|
|
| |
system minphys(). scsi_minphys() will do that and cd/sd/st will call
scsi_minphys().
ok jmatthew@ as part of larger diff
|
| |
|
|
|
|
|
|
| |
Store the size of struct sr_workunit depending on the softraid type
in struct sr_discipline.
testing and OK jan@
|
|
|
|
| |
OK jan@, "yes please" tedu@
|
|
|
|
| |
OK tedu@
|
|
|
|
|
|
| |
unnecessary because curproc always does the locking.
OK mpi@
|
|
|
|
|
|
|
|
| |
output to the disks.
This is part of a larger suspend/resume filesystem-safety diff, which
has been worked on for a couple of months already. Tests by job, krw,
beck, benno, and others. Sometimes even by snapshot users...
|
|
|
|
| |
ok jsing@ tb@
|
|
|
|
| |
ok deraadt
|
| |
|
|
|
|
|
| |
assembled into a volume, to enure the on-disk
metadata and the in-memory metadata agree.
|
|
|
|
|
| |
time; the aggressive mountpoint destruction seems to hit insane
use-after-frees when we are already far on the way down.
|
|
|
|
|
|
|
|
|
| |
type on the chunks is not the same, we don't actually care because we
are going to clear their metadata anyway, so don't error out. This
allows assembling a new RAID based on a drive that is zeroed and one
that used to be part of a softraid in its previous life.
ok jsing@
|
|
|
|
|
|
| |
the sensor does not show the drive state as "unknown".
ok phessler@
|
|
|
|
|
|
| |
doesnt make sense to use M_CANFAIL flag.
ok dlg jsing
|
|
|
|
|
|
|
| |
is at least one bio status message. It is a much nicer user experience when
we properly report failures, however in the case that we fail to do this,
getting an errno back from the ioctl is somewhat better than simply
printing "unknown error" from bioctl(8).
|
|
|
|
|
|
|
|
|
|
| |
softraid volume and backing disk when i/o errors occur.
Original issue reported by Paul de Weerd.
Suggestions from jsing@.
ok deraadt@ mikeb@
|
|
|
|
| |
OK jsg@
|
|
|
|
|
| |
failure as early as possible.
ok mlarkin claudio
|
|
|
|
|
|
|
| |
in progress. This eliminates the spurious and harmless "0% done" message
in the output of 'bioctl softraid0' reported by various on misc.
ok jsing
|
|
|
|
|
|
| |
Problem found by Michael McConville.
Tested & ok stsp@
|
|
|
|
|
|
| |
having five copies of the same code.
ok krw@
|
|
|
|
|
|
|
|
|
| |
defined. Carrying on is pointless. And will currently cause a NULL
pointer deref anyway.
NULL deref found by mmcc@ and his friend clang.
ok deraadt@
|
| |
|
|
|
|
|
|
|
|
| |
greater than the sector size of the softraid volume. i.e. 512-byte
hot spares should work on 4096-byte volumes but 4096-byte hotspares
will not work on 512-byte volumes.
Pointed out, errors corrected and ok jsing@
|
|
|
|
|
|
| |
replaced by comment for first chunk of code.
Pointed out by jsing@.
|
|
|
|
|
| |
chunk and perhaps save the next person reading the code some
confusion.
|
|
|
|
|
| |
'cid = i;' when break'ing. Makes code consistent with same search
later. No functional change and shrinks later functional diff.
|
|
|
|
|
| |
chunks more obviously the same. Reduces size of upcoming diff. No
functional change.
|
|
|
|
|
|
| |
volume sector size. Determine volume sector size in sr_meta_init().
Pointed out, tweaked and ok jsing@
|
|
|
|
|
|
|
|
|
| |
sectors. Volumes created will present a sector size equal to the
largest sector size of the constituent disks.
Softraid Metadata version cranks to 6 due to new field.
ok jsing@ with tweaks that will follow soon.
|
|
|
|
|
|
|
|
| |
case check if it was set and bail out with a useful message if not.
In the other the variable was the wrong one anyway, and we can just
use the correct variable.
Found by & ok jsg@
|
|
|
|
| |
ok tb@
|
|
|
|
|
|
| |
use the constants where needed.
ok jsing@
|
|
|
|
|
|
| |
Originally from pelikan@, recent prodding from bluhm@ and jsg@.
ok pelikan@ millert@ bluhm@
|
|
|
|
|
|
| |
obvious idiom.
ok bluhm@ jsing@
|
|
|
|
| |
ok jsing@
|
|
|
|
|
|
|
|
|
| |
since they are now relative to chunks. Use 'blkno' as normal variable
name for daddr_t items rather than mix of 'blkno, blk, offset.
Change field name ssd_data_offset to ssd_data_blkno since it is a
block and not byte quantity.
No intentional functional change.
|
| |
|
|
|
|
|
|
| |
of the destination fields.
ok jsing@
|
|
|
|
|
|
|
|
|
|
| |
address) to 64 signed or unsigned ints. Add some paranoia checks
during partition size calculations to account for the fact that
partition sizes (DL_GETPSIZE()) are unsigned values.
More daddr_t rectification to do.
ok jsing@
|
|
|
|
|
|
|
|
|
| |
block offsets until actual i/o is constructed and needs the physical
offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus.
No intentional functional change.
Fixed and ok jsing@
|
|
|
|
|
|
|
|
| |
where appropriate. Noop for disks with 512-byte sectors. i.e. the
only kind currently allowed in softraid volumes. But starts laying
the groundwork to allow disks with other sector sizes.
ok jsing@
|
| |
|
|
|
|
| |
ok deraadt krw millert
|