Project

General

Profile

Actions

Bug #3207

closed

bug/feature expansion: ufslabels.sh doesn't account for gmirror systems.

Added by Andrew Stuart over 11 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
09/16/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

Attempting to run ufslabels.sh on a system using gmirror gives the following:

sed: 1: "s/mirror/gm0s1a/ufsid\/ ...": bad flag in substitute command: 'u'
FS: / on device mirror/gm0s1a with ufsid 46404044387e2bbf
FS: Swap on device mirror/gm0s1b
sed: 1: "s/mirror/gm0s1b/label\/ ...": bad flag in substitute command: 'l'
====================
Current fstab:
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/gm0s1a      /               ufs     rw              1       1
/dev/mirror/gm0s1b      none            swap    sw              0       0
====================
New fstab:
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/gm0s1a      /               ufs     rw              1       1
/dev/mirror/gm0s1b      none            swap    sw              0       0
Commit changes? (y/n):

It might make sense to detect that it is a gmirror and to display a message accordingly vs spitting out errors.
At least if someone isn't paying attention, it doesn't appear to break things.. (though I didn't say yes to verify that)

Actions

Also available in: Atom PDF