From owner-freebsd-fs Sun Nov 19 3:53:41 2000 Delivered-To: freebsd-fs@freebsd.org Received: from modgud.nordicrecords.com (h21-168-107.nordicdms.com [207.21.168.107]) by hub.freebsd.org (Postfix) with SMTP id 02E9D37B479 for ; Sun, 19 Nov 2000 03:53:34 -0800 (PST) Received: (qmail 6874 invoked by alias); 19 Nov 2000 11:53:23 -0000 Received: (qmail 6861 invoked from network); 19 Nov 2000 11:53:22 -0000 Received: from adsl-216-103-90-137.dsl.snfc21.pacbell.net (HELO thinkpad770z) (216.103.90.137) by mail.nordicrecords.com with SMTP; 19 Nov 2000 11:53:22 -0000 From: "Dave Walton" To: Julian Elischer Date: Sun, 19 Nov 2000 03:53:09 -0800 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: corrupted filesystem Reply-To: dwalton@acm.org Cc: fs@freebsd.org Message-ID: <3A174EA5.24115.102AB11@localhost> In-reply-to: <3A179656.CA555A2B@elischer.org> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 19 Nov 2000, at 0:59, Julian Elischer wrote: > probably. Soft updates would have limitted he damage to files > created/extended in the last 30 seconds. Note to self: Remember to turn on softupdates. > Dave Walton wrote: > > ------------------------------------------------------------ > > fsdb (inum: 2)> ls > > slot 16 ino 3039518 reclen 16: directory, `home' > > fsdb (inum: 2)> cd home > > component `home': current inode: regular file > > ------------------------------------------------------------ > > > > Ok, now I'm really confused! First fsdb reports home as a > > directory, but when I cd into it, it becomes a regular file? How can > > that be? > > no, it is still a regular file.. > 'cd' in fsdb just makes it the 'current' inode. I understand that. But if you look at the short excerpt from fsdb above, it specifically says "directory" when I do ls. But after I cd to it, fsdb says "regular file". Quite a contradiction. > It's possible that the real inode is floating around somewhere, > 'unattached'. > or maybe the 'data' is correct but the inode is wrong. Either way, any tips for tracking down the real contents of home? > can you 'ls' it? Nope. It seems to act just like a normal file, except when I do an ls on it's parent in fsdb. Dave ---------------------------------------------------------------------- Dave Walton dwalton@acm.org ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message