From owner-freebsd-stable Mon Dec 23 21: 9:36 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 078AA37B401 for ; Mon, 23 Dec 2002 21:09:35 -0800 (PST) Received: from spider.netmails.net (dsl-65-189-239-65.telocity.com [65.189.239.65]) by mx1.FreeBSD.org (Postfix) with SMTP id E984E43EEC for ; Mon, 23 Dec 2002 21:09:33 -0800 (PST) (envelope-from subscr@spider.netmails.net) Received: (qmail 15125 invoked by uid 1014); 24 Dec 2002 05:08:39 -0000 Date: Mon, 23 Dec 2002 23:08:39 -0600 From: Hari Bhaskaran To: Erminio Baranzini Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Losing schg flags on tar/un-tar Message-ID: <20021223230839.A15070@spider.netmails.net> References: <20021222234603.A10494@spider.netmails.net> <87fzsoyhew.fsf@stati11.pr.net.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <87fzsoyhew.fsf@stati11.pr.net.ch>; from ebaranz@swissonline.ch on Mon, Dec 23, 2002 at 02:49:11PM +0100 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 23, 2002 at 02:49:11PM +0100, Erminio Baranzini wrote: > You should try star, which preserves schg flags. Doesn't help. See below. # rmdir /var/empty rmdir: /var/empty: Operation not permitted # mkdir /fs1/var # star -c -Hexustar -acl -xfflags -C /var . | star -xp -acl -xfflags -C /fs1/var star: 'run/log' unsupported file type 'socket'. Not dumped. <-- Fine, no concern. star: current './' newer. star: 68 blocks + 0 bytes (total of 696320 bytes = 680.00k). star: The following problems occurred during archive processing: star: Cannot: stat 0, open 0, read/write 0. Size changed 0. star: Missing links 0, Name too long 0, File too big 0, Not dumped 1. star: Processed all possible files, despite earlier errors. star: 68 blocks + 0 bytes (total of 696320 bytes = 680.00k). # rmdir /fs1/var/empty <--- Wasn't this supposed to fail? # <--- it didn't. # star -version star 1.4.1 (i386-unknown-freebsd4.7) I repeated the test, with & without -acl and -xfflags (in all combinations) No big deal, /var/empty seems to be the only 'special' file I need to 'chflags' manually, but it would have nice if I could be 'sure' of this. # mkdir /fs1/var/empty # chflags schg /fs1/var/empty # rmdir /fs1/var/empty rmdir: /fs1/var/empty: Operation not permitted # > > Erminio Baranzini -- Hari Bhaskaran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message