From owner-freebsd-questions@FreeBSD.ORG Tue Feb 7 20:41:23 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C2EC16A420 for ; Tue, 7 Feb 2006 20:41:23 +0000 (GMT) (envelope-from w@expro.pl) Received: from mailin2.expro.pl (mailin2.expro.pl [193.25.166.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24A4643D45 for ; Tue, 7 Feb 2006 20:41:22 +0000 (GMT) (envelope-from w@expro.pl) Received: from miranda-1.dmz.exprozone ([10.0.16.20] helo=miranda.expro.pl) (envelope-sender ) by mailin2.expro.pl with esmtp (Exim 4.50) id 1F6ZeM-0008Ar-7t for questions@freebsd.org; Tue, 07 Feb 2006 21:41:22 +0100 Received: by miranda.expro.pl (Postfix, from userid 1001) id 95E9754816; Tue, 7 Feb 2006 21:41:20 +0100 (CET) Date: Tue, 7 Feb 2006 21:41:20 +0100 From: Jan Srzednicki To: questions@freebsd.org Message-ID: <20060207204120.GA34689@miranda.expro.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: Support for ACLs missing in dump&restore? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 20:41:23 -0000 Hello, I've just migrated to 6.0 (-STABLE as of January the 31th) and started playing with ACLs on it. Everything went fine until I tried to dump&restore the partition I've been using ACLs on. Well, to make things short, it appears that neither dump nor restore understands or has any idea of existence of extended UFS2 attributes, and in particular of ACLs. A quick look at the source tree: cd /usr/src/sbin && grep -riE '(extattr|acl)' dump restore (that should show usage of extattr_*(2) family of functions, or acl_*(3), or __acl_*(2), if I'm getting this right) Shows that I'm right and there's indeed no support for it. I've also checked CVS logs for src/sbin/dump/main.c (and some other files there) and the only relevant info is that dump has been modified to understand UFS2, but extattr is still missing. I tried googling and found an article on ONLamp, which says that FreeBSD's dump and restore utilities have been modified to understand ACLs: http://www.onlamp.com/pub/a/bsd/2003/08/14/freebsd_acls.html Well, if it so, how can I make dump and restore to restore my ACLs right? If not, what is the recommended way of getting a filesystem with ACLs backuped? The handbook doesn't mention that dump and restore are missing ACL support: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html Man pages don't mention anything about ACLs or extaddr, no flag to enable them or anything. Just to make sure, I had both filesystems (the one being dumped and the one dumped to) tunefs -a enabled and mounted with explicit -oacls. I have checked them with dumpfs and both show as UFS2 and have "flags acls". Well then, did someone just forget about it or is there any other better official way to do backups? pax(1) doesn't seem to support ACLs as well, although AFAIK it was designed to be able to store and extract them by the POSIX people. greetings, -- Jan Srzednicki w@expro.pl