From owner-freebsd-bugs@freebsd.org Sun Jul 26 20:18:01 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 777949AB7CA for ; Sun, 26 Jul 2015 20:18:01 +0000 (UTC) (envelope-from ricky1252@hotmail.com) Received: from SNT004-OMC4S26.hotmail.com (snt004-omc4s26.hotmail.com [65.55.90.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 55B7F824 for ; Sun, 26 Jul 2015 20:18:00 +0000 (UTC) (envelope-from ricky1252@hotmail.com) Received: from SNT146-W39 ([65.55.90.199]) by SNT004-OMC4S26.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 26 Jul 2015 13:16:53 -0700 X-TMN: [D827I1/Ewv9oWetp5l9iTOvPSU3xxyWb] X-Originating-Email: [ricky1252@hotmail.com] Message-ID: From: Ricky G To: "freebsd-bugs@freebsd.org" Subject: geli -a option broken Date: Sun, 26 Jul 2015 16:16:53 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 26 Jul 2015 20:16:53.0876 (UTC) FILETIME=[037B5340:01D0C7E0] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2015 20:18:01 -0000 Hello=2C Iv been playing around with geli=2C and it seems that the geli -a = (aalgo) option is completely broken. FreeBSD U1 10.2-BETA2 FreeBSD 10.2-BETA2 #0 d85d061(stable/10): Thu Jul 23 = 12:14:53 EDT 2015 ricky@S1:/usr/obj/usr/src/sys/MYKERNEL amd64 to recreate -# gpart create -s gpt /dev/da0# gpart add -t freebsd-boot -a 4= 096 -b 4096 -s +1G da0# gpart add -t freebsd-zfs -a 4096 da0 ### note=2C= using -b 4096 returns gpart: autofill: No space left on device=2C I think = this is a bug as well however off topic.# geli init -e AES-XTS -a HMAC/SHA2= 56 /dev/da0p2 # note=2C also tried HMAC/MD5=2C HMAC/SHA1# geli attach /de= v/da0p2# ls /dev/da*/dev/da0 /dev/da0p1 /dev/da0p2 /dev/da0p2= .eli# newfs /dev/da0p2.eli/dev/da0p2.eli: 14318.0MB (29323256 sectors) bloc= k size 32768=2C fragment size 4096 using 23 cylinder groups of 626.09MB=2C = 20035 blks=2C 80256 inodes.newfs: can't read old UFS1 superblock: read erro= r from block device: Invalid argument The only way to use geli with the -a option=2C seems to be as swap and it w= orks perfectly.# cat /etc/fstab/dev/mirror/ssdswap.eli none swap= sw=2Caalgo=3DHMAC/SHA256=2Cealgo=3DAES-XTS=2Ckeylen=3D256=2Csectorsize= =3D4096 0 0# swapinfoDevice 1K-blocks Used = Avail Capacity/dev/mirror/ssdswap.eli 3728268 44 3728224 0% = =