From owner-freebsd-current@FreeBSD.ORG Wed Apr 7 16:35:57 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FCEA106564A; Wed, 7 Apr 2010 16:35:57 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward15.mail.yandex.net (forward15.mail.yandex.net [95.108.130.119]) by mx1.freebsd.org (Postfix) with ESMTP id D30718FC18; Wed, 7 Apr 2010 16:35:56 +0000 (UTC) Received: from web135.yandex.ru (web135.yandex.ru [95.108.131.157]) by forward15.mail.yandex.net (Yandex) with ESMTP id E6D75445912D; Wed, 7 Apr 2010 20:35:54 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1270658154; bh=xZo9tQkyyqdIT+2vGm27MNztuBjXIPxAwqLqKFab37Y=; h=From:To:Subject:MIME-Version:Message-Id:Date: Content-Transfer-Encoding:Content-Type; b=gpGLJv68FB5+SOSta4lTCseLAKlb2POfIlGF/HELhAP2U9/KoqF9DN17DLNfrG1KM ij1rWx37wS01SJwxoY9jRk3P5+K7J2J3cl+QPNtJ4rgGNNDHcdtiU17SUf1zFXn0F3 3Ul/yFejsklEtlz51jxPko1TJrxzwbI9VmM9MoRo= Received: from localhost (localhost.localdomain [127.0.0.1]) by web135.yandex.ru (Yandex) with ESMTP id E45011218001; Wed, 7 Apr 2010 20:35:54 +0400 (MSD) X-Yandex-Spam: 1 X-Yandex-Front: web135.yandex.ru X-Yandex-TimeMark: 1270658154 Received: from proxy.heavennet.ru (proxy.heavennet.ru [77.72.136.193]) by mail.yandex.ru with HTTP; Wed, 07 Apr 2010 20:35:51 +0400 From: Andrey V. Elsukov To: freebsd-current@freebsd.org,freebsd-geom@freebsd.org MIME-Version: 1.0 Message-Id: <55861270658151@web135.yandex.ru> Date: Wed, 07 Apr 2010 20:35:51 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: Subject: [RFC] Rewriting sade(8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2010 16:35:57 -0000 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 yet fully finished, but works). 3. Now sade use libgeom for searching providers and it can use: {"DISK", "disk device"}, {"MD", "memory backed virtual disk"}, {"ZFS::ZVOL", "ZFS volume"}, {"MIRROR", "GEOM based mirror (RAID1)"}, {"STRIPE", "GEOM based stripe (RAID0)"}, {"RAID3", "GEOM based RAID3 array"}, {"CONCAT", "GEOM based concatenated disk"}, {"ELI", "GEOM based encrypted disk"}, {"JOURNAL", "GEOM based journalled disk"}, {"MULTIPATH", "GEOM based disk with multiple path"} 4. Access to partitions based on geom_part.so library. I made some changes 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 class 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 future 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 Partitioning 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