public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mkfs.jffs2: creating dirs in /
@ 2008-06-20 15:28 Mike Frysinger
  2008-06-20 16:22 ` Grant Erickson
  2008-12-23 10:54 ` [PATCH] mkfs.jffs2: fix dir creation " Mike Frysinger
  0 siblings, 2 replies; 7+ messages in thread
From: Mike Frysinger @ 2008-06-20 15:28 UTC (permalink / raw)
  To: linux-mtd

with older mtd-utils, creating a directory in the root worked fine.
with current git, the parent dir search algo breaks this.

for example, just take the current git tree, build it up, and then run:
$ ./mkfs.jffs2 -d . -D device_table.txt -o /dev/null
mkfs.jffs2: skipping device_table entry '/dev': no parent directory!
mkfs.jffs2: skipping device_table entry '/dev/mem': no parent directory!
...
doing `mkdir dev` first works around the issue, but where's the fun in that.

locally i just made the change to interpret_table_entry() where it
looks to see if the dir is "/" and if so, uses "root" rather than
calling find_filesystem_entry(), but i dont think that's the right
long term fix.  i pondered the find_filesystem_entry() function for a
while, but the closest i found was to delete the first if statement
and then tweak the fullname[len] ...
-mike

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-27 12:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-20 15:28 mkfs.jffs2: creating dirs in / Mike Frysinger
2008-06-20 16:22 ` Grant Erickson
2008-06-20 16:25   ` Mike Frysinger
2008-12-23 10:54 ` [PATCH] mkfs.jffs2: fix dir creation " Mike Frysinger
2008-12-26 12:38   ` Artem Bityutskiy
2008-12-27  3:35     ` Mike Frysinger
2008-12-27 12:25       ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox