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
[-- Attachment #1 --]
On Fri, Jan 21, 2005 at 09:56:58AM +0100, Attila Nagy wrote:
+> Hello,
+>
+> I would like to use gbde on a geom mirror, but /etc/rc.d/gbde fails if
+> there is a slash in the device name.
+>
+> I don't know what would be the clean solution, I used the attached diff
+> to solve the problem.
+>
+> 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=${device%.bde}
+> parent=${parent#/dev/}
+> - eval "lock=\${gbde_lock_${parent}-\"${gbde_lockdir}/${parent}.lock\"}"
+> + parent_=`echo ${parent} | sed "s/\//_/g"`
+> + eval "lock=\${gbde_lock_${parent_}-\"${gbde_lockdir}/${parent_}.lock\"}"
+> 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!
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd@FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFB8RQeForvXbEpPzQRAr+zAKC4H+dqLzmFMMXWTwuiRxMhcU8jCACfZezK
5a9l3K0MZTCI5yFCbnZsXXQ=
=/KUy
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050121143926.GW795>
