Date: Fri, 21 Jan 2005 15:39:26 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Attila Nagy <bra@fsn.hu> Cc: hackers@freebsd.org Subject: Re: geom mirror and gbde Message-ID: <20050121143926.GW795@darkness.comp.waw.pl> In-Reply-To: <41F0C3DA.50104@fsn.hu> References: <41F0C3DA.50104@fsn.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
--Cv++WRjpEUwHXUCE Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 21, 2005 at 09:56:58AM +0100, Attila Nagy wrote: +> Hello, +>=20 +> I would like to use gbde on a geom mirror, but /etc/rc.d/gbde fails if= =20 +> there is a slash in the device name. +>=20 +> I don't know what would be the clean solution, I used the attached diff= =20 +> to solve the problem. +>=20 +> Please review it and if there is a better solution, commit it. Acha! I fixed gbde(8) to accept devices with / in them, but forgot about rc.d/gbde. +> @@ -81,16 +81,17 @@ +> for device in $gbde_devices; do +> parent=3D${device%.bde} +> parent=3D${parent#/dev/} +> - eval "lock=3D\${gbde_lock_${parent}-\"${gbde_lockdir}/${parent}.lock\= "}" +> + parent_=3D`echo ${parent} | sed "s/\//_/g"` +> + eval "lock=3D\${gbde_lock_${parent_}-\"${gbde_lockdir}/${parent_}.loc= k\"}" +> if [ -e "/dev/${parent}" -a ! -e "/dev/${parent}.bde" ]; then +> echo "Configuring Disk Encryption for ${parent}." Only this part is needed. Committed to HEAD, MFC after 1 week. Thanks! --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Cv++WRjpEUwHXUCE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFB8RQeForvXbEpPzQRAr+zAKC4H+dqLzmFMMXWTwuiRxMhcU8jCACfZezK 5a9l3K0MZTCI5yFCbnZsXXQ= =/KUy -----END PGP SIGNATURE----- --Cv++WRjpEUwHXUCE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050121143926.GW795>