Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154547750
D37677.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37677.diff
View Options
diff --git a/sys/geom/vinum/geom_vinum_plex.c b/sys/geom/vinum/geom_vinum_plex.c
--- a/sys/geom/vinum/geom_vinum_plex.c
+++ b/sys/geom/vinum/geom_vinum_plex.c
@@ -173,7 +173,7 @@
return (GV_ERR_ISBUSY);
*sdno = stripeno % sdcount;
- KASSERT(sdno >= 0, ("gv_plex_offset: sdno < 0"));
+ KASSERT(*sdno >= 0, ("gv_plex_offset: sdno < 0"));
stripestart = (stripeno / sdcount) *
p->stripesize;
KASSERT(stripestart >= 0, ("gv_plex_offset: stripestart < 0"));
diff --git a/sys/geom/vinum/geom_vinum_raid5.c b/sys/geom/vinum/geom_vinum_raid5.c
--- a/sys/geom/vinum/geom_vinum_raid5.c
+++ b/sys/geom/vinum/geom_vinum_raid5.c
@@ -602,7 +602,7 @@
/* The number of the subdisk containing the parity stripe. */
psd = sdcount - 1 - ( boff / (p->stripesize * (sdcount - 1))) %
sdcount;
- KASSERT(psdno >= 0, ("gv_raid5_offset: psdno < 0"));
+ KASSERT(psd >= 0, ("gv_raid5_offset: psdno < 0"));
/* Offset of the start address from the start of the stripe. */
stripeoff = boff % (p->stripesize * (sdcount - 1));
@@ -610,7 +610,7 @@
/* The number of the subdisk where the stripe resides. */
sd = stripeoff / p->stripesize;
- KASSERT(sdno >= 0, ("gv_raid5_offset: sdno < 0"));
+ KASSERT(sd >= 0, ("gv_raid5_offset: sdno < 0"));
/* At or past parity subdisk. */
if (sd >= psd)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 9:26 PM (15 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32396627
Default Alt Text
D37677.diff (1 KB)
Attached To
Mode
D37677: gvinum: correct assertions
Attached
Detach File
Event Timeline
Log In to Comment