public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Erik Andersen <andersen@codepoet.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux-2.4.10
Date: Mon, 24 Sep 2001 11:40:37 -0600	[thread overview]
Message-ID: <20010924114037.A7561@codepoet.org> (raw)
In-Reply-To: <20010924002854.A25226@codepoet.org> <Pine.LNX.4.33.0109231142060.1078-100000@penguin.transmeta.com> <16995.1001284442@redhat.com> <32737.1001314127@redhat.com>
In-Reply-To: <32737.1001314127@redhat.com>

On Mon Sep 24, 2001 at 07:48:47AM +0100, David Woodhouse wrote:
> 
> andersen@codepoet.org said:
> > Is jffs2 still showing the
> >     Child dir "." (ino #1) of dir ino #1 appears to be a hard link
> > problem?  I saw you patched mkfs.jffs2 after my changes -- do you
> > still need me to hunt down that bug I added? 
> 
> Yes please. The patch I committed just made it happier with a relative (or
> no) root directory - it was changing into the specified directory and then
> still prepending its name to every path. I assume it's still emitting a
> dirent for '.' in the root directory as it was before. The JFFS2 kernel code
> doesn't like that very much.

This seems to fix it, but I'm not certain this is correct?
Should / on jffs2 have neither inode nor dirent added?

--- mkfs.jffs2.c	2001/09/17 13:43:32	1.16
+++ mkfs.jffs2.c	2001/09/24 17:37:40
@@ -924,10 +924,11 @@
 		name = tmp_dir->name;
 		sb = tmp_dir->sb;
 		if (!tmp_dir->parent) {
+			/* Cope with the root directory */
 			ino = highest_ino++;
-			debug_msg("writing '/' ino=%lu", (unsigned long) ino);
-			output_pipe(ino, &sb);
-			write_dirent(ino, version++, ino, timestamp, DT_DIR, name);
+			debug_msg("writing '%s' ino=%lu", name, (unsigned long) ino);
+			//output_pipe(ino, &sb);
+			//write_dirent(ino, version++, ino, timestamp, DT_DIR, name);
 			tmp_dir = tmp_dir->next;
 			continue;
 		}

 -Erik

--
Erik B. Andersen   email:  andersee@debian.org, formerly of Lineo
--This message was written using 73% post-consumer electrons--

  reply	other threads:[~2001-09-24 17:40 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-23 18:54 Linux-2.4.10 Linus Torvalds
2001-09-23 16:41 ` Linux-2.4.10 Rob Landley
2001-09-23 21:32   ` Linux-2.4.10 André Dahlqvist
2001-09-23 21:54   ` Linux-2.4.10 Alan Cox
2001-09-23 21:30 ` Linux-2.4.10 + ext3 Michael Rothwell
2001-09-23 22:18   ` Gergely Nagy
2001-09-24  2:06   ` Linus Torvalds
2001-09-24  2:30     ` Aaron Lehmann
2001-09-24  3:45       ` Andrew Morton
2001-09-24  4:35         ` Simon Fowler
2001-09-24 20:40           ` Stephen C. Tweedie
2001-09-24  4:45         ` Aaron Lehmann
2001-09-24  5:19           ` Andrew Morton
2001-09-24 19:49             ` Jamie Lokier
2001-09-24 20:22               ` Chris Meadors
2001-09-24 21:57                 ` Jamie Lokier
2001-09-24 21:04               ` Andreas Dilger
2001-09-24 18:12       ` Linus Torvalds
2001-09-24 18:25         ` Alexander Viro
2001-09-26 16:49     ` Stephen C. Tweedie
2001-09-27 12:12       ` Jan Kara
2001-09-27 18:37         ` Stephen C. Tweedie
2001-09-23 21:54 ` Linux-2.4.10 Trond Myklebust
2001-09-23 22:34 ` Linux-2.4.10 David Woodhouse
2001-09-24  6:28   ` Linux-2.4.10 Erik Andersen
2001-09-24  6:48   ` Linux-2.4.10 David Woodhouse
2001-09-24 17:40     ` Erik Andersen [this message]
2001-09-24 17:41     ` Linux-2.4.10 David Woodhouse
2001-09-23 22:40 ` Linux-2.4.10 - necessary patches Eyal Lebedinsky
2001-09-24  0:04   ` Alan Cox
2001-09-24 14:42     ` Oliver Xymoron
2001-09-24  1:25 ` Linux-2.4.10 Matthias Andree
2001-09-24  2:26   ` Linux-2.4.10 Daniel T. Chen
2001-09-24  3:19     ` Linux-2.4.10 Matthias Andree
2001-09-24  2:57   ` Linux-2.4.10 Disconnect
2001-09-24 10:07     ` Linux-2.4.10 Matthias Andree
2001-09-27 12:17     ` Linux-2.4.10 Roeland Th. Jansen
2001-09-24  2:35 ` Linux-2.4.10 Naren Devaiah
2001-09-24  9:37 ` PATCH[2.4.9-pre14] Kill *writeonly* variable Martin Dalecki
2001-09-27 15:23 ` Linux-2.4.10 George R. Kasica
2001-09-27 15:27   ` Linux-2.4.10 Rik van Riel
2001-09-27 15:31   ` Linux-2.4.10 Bernd Petrovitsch
2001-09-27 15:49   ` Linux-2.4.10 John Jasen
2001-09-27 18:23   ` Linux-2.4.10 Petr Baudis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010924114037.A7561@codepoet.org \
    --to=andersen@codepoet.org \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox