From owner-freebsd-geom@FreeBSD.ORG Wed Apr 7 18:13:05 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A4E2106564A for ; Wed, 7 Apr 2010 18:13:05 +0000 (UTC) (envelope-from sektie@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id D10C78FC0A for ; Wed, 7 Apr 2010 18:13:04 +0000 (UTC) Received: by pvc7 with SMTP id 7so969471pvc.13 for ; Wed, 07 Apr 2010 11:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:received:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=SiqwQwC7dk1x9mEyrWc2Q+GdQqLveVaQBtCl3xbsRXg=; b=rNQqBX+Yv7ZCYbUgHnqWb4JN41d5MRXmveANcCl/xDZOCr+HYPjvXFpSLwJArN2p0t STMm9sWWeTETaIirf4f5yQnPcbN0XzF096XlucYqEQFBOhxEV80RfQuqo9pcC1bNvCKi nRfjKpzNchR396VAANyTKcHWEKdNGOcxQ4zMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=OE0dfe51QLDxNhPSLEMVPvJcZMJVeBYEvdviqhhZIUgXG6fPBWik8xye7GdmUia5qe cyPC4k6rWLSIjVV25/xZuLuDh4J2YpWZet+mNLi9FzRjs5nJ6AprOuFkL6Ixj99OsWOD KLsUWuqpEsymaK2wHirqqxjN8l0zTV+S7AVP0= MIME-Version: 1.0 Sender: sektie@gmail.com Received: by 10.140.172.16 with HTTP; Wed, 7 Apr 2010 10:49:35 -0700 (PDT) In-Reply-To: <55861270658151@web135.yandex.ru> References: <55861270658151@web135.yandex.ru> Date: Wed, 7 Apr 2010 10:49:35 -0700 X-Google-Sender-Auth: e08edf60433e04b1 Received: by 10.141.91.16 with SMTP id t16mr3729411rvl.128.1270662575470; Wed, 07 Apr 2010 10:49:35 -0700 (PDT) Message-ID: From: Randi Harper To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Devin Teske , freebsd-geom@freebsd.org Subject: Re: [RFC] Rewriting sade(8) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2010 18:13:05 -0000 On Wed, Apr 7, 2010 at 9:35 AM, Andrey V. Elsukov wrote= : > Hi, All. > > Some days ago i begun rewriting sade(8) to libgeom(3). Just for fun :-) > Today i have progress and you can see some screenshoots here: > http://butcher.heavennet.ru/sade/ > > What is done: > 1. It's fully rewritten, but yes, i reuse some code from old sade. > 2. I wrote small framework "customdlg" for creating custom dialogs (not y= et fully finished, but works). > 3. Now sade use libgeom for searching providers and it can use: > =A0 =A0 =A0 =A0{"DISK", =A0 =A0 =A0 =A0"disk device"}, > =A0 =A0 =A0 =A0{"MD", =A0 =A0 =A0 =A0 =A0"memory backed virtual disk"}, > =A0 =A0 =A0 =A0{"ZFS::ZVOL", =A0 "ZFS volume"}, > =A0 =A0 =A0 =A0{"MIRROR", =A0 =A0 =A0"GEOM based mirror (RAID1)"}, > =A0 =A0 =A0 =A0{"STRIPE", =A0 =A0 =A0"GEOM based stripe (RAID0)"}, > =A0 =A0 =A0 =A0{"RAID3", =A0 =A0 =A0 "GEOM based RAID3 array"}, > =A0 =A0 =A0 =A0{"CONCAT", =A0 =A0 =A0"GEOM based concatenated disk"}, > =A0 =A0 =A0 =A0{"ELI", =A0 =A0 =A0 =A0 "GEOM based encrypted disk"}, > =A0 =A0 =A0 =A0{"JOURNAL", =A0 =A0 "GEOM based journalled disk"}, > =A0 =A0 =A0 =A0{"MULTIPATH", =A0 "GEOM based disk with multiple path"} > 4. Access to partitions based on geom_part.so library. I made some change= s in geom_part.c and > sent it to Marcel, but currently didn't receive answer. Any way if these = changes is not acceptable > i can rewrite it for using libgeom(3) only. > 5. Undo/Commit features are based on internal implementation of geom clas= s PART. I found there > two bugs: > http://lists.freebsd.org/pipermail/freebsd-geom/2010-April/004018.html > http://lists.freebsd.org/pipermail/freebsd-bugs/2010-April/039390.html > 6. All "device" related code can be placed in shared library and in futur= e can be reused in another > frontend... > 7. New Partition Editor: > * partitions list now scrollable; > * all operations based on geom_part.so and similar to gpart(8); > * opening partition editor on empty provider opens new "Selech Partitioni= ng Scheme" dialog > and create selected scheme; > * new add slice dialog; > * deleting slice from empty table destroys scheme; > > Todo: > 1. Refine customdlg. > 2. Waiting for fixes in geom_part_mbr, geom_part and geom_part.so. > 3. "Set Type and Label" dialog. > 4. Better wording needed for messages and help. My english is bad :( > ------ > Missing functions: > Creating filesystem and save them into /etc/fstab. > > What new can be added: > 1. Creating ZFS pools and datasets. > 2. Creating GEOM-based raids. > > Any comments are welcome. > -- > WBR, Andrey V. Elsukov > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > Wow. This is awesome. patches? :D I've been working on moving sysinstall from libdisk to libgeom, but unfortunately it's a bit more complicated (redoing the way we detect devices while I'm at it). I've done a lot of the heavy lifting code, but I haven't even started on the GUI parts yet. I'd love to see how someone else tackled doing this. I'm particularly interested in #5 & #7. :) Generally, we try to keep sysinstall's disk tools and sade in sync, so I would like to work with you on this and see what we can come up with. I'm not entirely sure if #2 is a viable option since we already have functions in sysinstall that handle generating dialog boxes with libdialog, but if it's an improvement on what's existing, bring it on. CC:ing Devin Teske on this thread, as he's displayed interest in helping as well. My goal is to get all this in for 8.2, so there's quite a bit to work out in a short period of time. -- randi