From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q1HKonAP109621 for ; Fri, 17 Feb 2012 14:50:50 -0600 Message-ID: <4F3EBDA6.7070108@sgi.com> Date: Fri, 17 Feb 2012 14:50:46 -0600 From: Bill Kendall MIME-Version: 1.0 Subject: Re: xfsrestore will create orphanage directory when use -t References: In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Tommy Wu Cc: xfs On 02/14/2012 11:21 AM, Tommy Wu wrote: > from the xfsdump man page: > xfsrestore also generates a directory named orphanage in the dest > directory. xfsrestore removes this directory after completing a simple > restore. However, if orphanage is not empty, it is not removed. This > can happen if files present on the dump media are not referenced by > any of the restored directories. The orphanage has an entry for each > such file. The entry name is the file's original inode number, a ".", > and the file's generation count modulo 4096 (only the lower 12 bits of > the generation count are used). > > and the -t option from xfsdump man page: > Displays the contents of the dump, but does not create or modify any > files or directories. It may be desirable to set the verbosity level > to silent when using this option. > > But when we use -t option with xfsrestore, it still create orphanage > directory in current directory (because no dest directory assign). > and if it's not empty, it is not removed. > > This is a bug or it's a feature? I can see code where this would happen, except that it would appear to require both -r and -t to be used, and xfsrestore doesn't allow that. If you send the command line you used I can take another look. Bill _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs