Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165855357
D19854.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
D19854.diff
View Options
Index: head/tests/sys/geom/class/eli/online_resize_test.sh
===================================================================
--- head/tests/sys/geom/class/eli/online_resize_test.sh
+++ head/tests/sys/geom/class/eli/online_resize_test.sh
@@ -172,22 +172,18 @@
atf_check -s exit:0 -o match:'^Flags: .*AUTORESIZE' geli list ${md}p1.eli
atf_check -s exit:0 -o match:resized gpart resize -i 1 -s 30${prefix} ${md}
atf_check -s exit:0 -o match:"^[[:space:]]${osize30}[[:space:]]+# mediasize in bytes" diskinfo -v ${md}p1.eli
- atf_check geli detach ${md}p1.eli
-
- # Cleanup.
- atf_check -s exit:0 -o match:deleted gpart delete -i 1 ${md}
- atf_check -s exit:0 -o match:destroyed gpart destroy ${md}
- atf_check -s exit:0 -o ignore mdconfig -d -u ${md}
done
}
online_resize_cleanup()
{
if [ -f "$TEST_MDS_FILE" ]; then
while read md; do
- [ -c /dev/${md}p1.eli ] && geli detach ${md}p1.eli
- mdconfig -d -u ${md} 2>/dev/null
+ atf_check -s ignore -e ignore -o ignore geli detach ${md}p1.eli
+ atf_check -s ignore -e ignore -o ignore gpart delete -i 1 ${md}
+ atf_check -s ignore -e ignore -o ignore gpart destroy ${md}
done < $TEST_MDS_FILE
fi
+ geli_test_cleanup
}
atf_init_test_cases()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 11, 7:09 AM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36468278
Default Alt Text
D19854.diff (1 KB)
Attached To
Mode
D19854: Fix geli device cleanup
Attached
Detach File
Event Timeline
Log In to Comment