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 (Postfix) with ESMTP id 090AC7F4C for ; Fri, 8 Mar 2013 14:32:49 -0600 (CST) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay3.corp.sgi.com (Postfix) with ESMTP id A8BC8AC004 for ; Fri, 8 Mar 2013 12:32:45 -0800 (PST) Received: from sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id IrKewRoHg3CZQc8K for ; Fri, 08 Mar 2013 12:32:44 -0800 (PST) Message-ID: <513A4AEC.4010202@sandeen.net> Date: Fri, 08 Mar 2013 14:32:44 -0600 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: xfs_repair segfaults References: <512FA67D.2090708@sandeen.net> <5130DB54.9030503@sandeen.net> <5134BBA4.3060305@sandeen.net> In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Ole Tange Cc: xfs@oss.sgi.com On 3/8/13 4:21 AM, Ole Tange wrote: > On Mon, Mar 4, 2013 at 4:20 PM, Eric Sandeen wrote: > >> 2) so you could run a "real" non-"n" xfs_repair on a metadata image as a more realistic dry run > > I have now done a 'xfs_repair' using the code in GIT. It failed, and I > then did 'xfs_repair -L' which succeeded. > > Am I correct that I should now be able to mount the sparse disk-image > file and see all the filenames? In that case I am quite worried. I get > filenames like: > > /mnt/disk/??5?z+hEOgl/?7?Psr1?aIHS??+??z=ozK/8_0/???d) > 5JCG?eiBd?EVsNF'A?v?m?f;Fi6v)d>/?M%?A??J?)B X[Df?Wm^[?f 4| By default, xfs_metadump scrambles filenames, so nothing to worry about (it's for privacy reasons). If you use the "-o" option it'll keep it in the clear. -Eric > My guess is some superblock is corrupt and that it should instead try > a backup superblock. It might be useful if xfs_repair could do this > automatically based on the rule of thumb that more than 90% of > filenames/dirnames match: > > [- _.,=A-Za-z0-9':]* [([{]* [- _.,=A-Za-z0-9':]* []})]* [- _.,=A-Za-z0-9':]* > > If it finds a superblock resulting in more then 10% not matching the > above it should probably ignore that superblock (unless the file names > are using non-latin characters - such as Japanese). > > > /Ole > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs