Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131862412
D7968.id20526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
602 B
Referenced Files
None
Subscribers
None
D7968.id20526.diff
View Options
Index: tests/sys/geom/class/eli/resize_test.sh
===================================================================
--- tests/sys/geom/class/eli/resize_test.sh
+++ tests/sys/geom/class/eli/resize_test.sh
@@ -12,13 +12,19 @@
unit=${md#md}
i=1
+if [ -f /sbin/disklabel ]; then
+ DISKLABEL=/sbin/disklabel
+else
+ DISKLABEL=/sbin/bsdlabel
+fi
+
setsize() {
partszMB=$1 unitszMB=$2
{
echo a: $(($partszMB * $BLKS_PER_MB)) 0 4.2BSD 1024 8192
echo c: $(($unitszMB * $BLKS_PER_MB)) 0 unused 0 0
- } | disklabel -R $md /dev/stdin
+ } | $DISKLABEL -R $md /dev/stdin
}
# Initialise
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 7:04 PM (16 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23637034
Default Alt Text
D7968.id20526.diff (602 B)
Attached To
Mode
D7968: Fix resize_test
Attached
Detach File
Event Timeline
Log In to Comment