From owner-freebsd-current@FreeBSD.ORG Mon Mar 22 17:45:10 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6466D16A4CE for ; Mon, 22 Mar 2004 17:45:10 -0800 (PST) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55AA543D2D for ; Mon, 22 Mar 2004 17:45:10 -0800 (PST) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i2N1j9RS029058; Mon, 22 Mar 2004 17:45:09 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i2N1j9EQ029057; Mon, 22 Mar 2004 17:45:09 -0800 (PST) (envelope-from rizzo) Date: Mon, 22 Mar 2004 17:45:09 -0800 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20040322174509.A28739@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Subject: userland|unprivileged file system handling tools X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 23 Mar 2004 01:45:10 -0000 We seem to lack tools that allow the generation/handling of file system images without root privs. The 'standard techniques' used to build the bootable floppies rely on vnconfig/mdconfig, disklabel, fsck and mknod which all must run as root. Colin Percival pointed me to ports/sysutils/makefs which builds an almost correct fs image -- it has a couple of bugs, one which is trivially fixed, the other one which could be cured by a pass of fsck. There is still the issue of creating a label for the image (which right now i do using a small C program), and handling device nodes (not an issue on 5.x, but this could be possibly fixed with some makefs extension). So: + is there interest in having makefs become part of the standard system, instead of a port ? + how hard would it be to teach disklabel and fsck to work on files (filesystem images) as well as devices ? cheers luigi