public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Inode #274 was a directory with children - removing those too...
@ 2005-09-28 10:38 Konstantin Kletschke
  2005-09-28 10:50 ` Artem B. Bityutskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Konstantin Kletschke @ 2005-09-28 10:38 UTC (permalink / raw)
  To: linux-mtd


What means "Inode #274 was a directory with children - removing those
too..." ?

I switched on CONFIG_MTD_DEBUG to 2:

scb9328_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
5 cmdlinepart partitions found on MTD device scb9328_flash
Creating 5 MTD partitions on "scb9328_flash":
0x00000000-0x00020000 : "U-boot"
0x00020000-0x00040000 : "U-boot_env"
0x00040000-0x00240000 : "kernel"
0x00240000-0x00740000 : "root"
0x00740000-0x01000000 : "fs"
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -2, 1024 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
Inode #274 was a directory with children - removing those too...
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 64K
x0003aca1, ino #55
, ino #536
f ino#52
2_read_inode_range: ino #70, range 0x00058000-0x00059000
30986c
248-53792, before the region we care about
g e000-f000: 0x0009831c(2) on flash (*c0309e70). left (00000000),
right (00000000), parent (c0309e8c)
x3000; phys 0x000c8e1c (*c03093d4)
 ino #474
rent "ftpput" (hash 0xc092a6bb, ino #451
Initializing random number generator... done.
Starting network...
ip: RTNETLINK answers: File exists
eth0: link down
 (00000000), right (00000000), parent (c0c1463c)
Starting dropbear sshd: 4), right (c0309d20), parent (00000000)
40
OK

I use 2.6.13 on arm (mach-imx) with a nor flash device...

Regards Konsti

-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

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

* Re: Inode #274 was a directory with children - removing those too...
  2005-09-28 10:38 Inode #274 was a directory with children - removing those too Konstantin Kletschke
@ 2005-09-28 10:50 ` Artem B. Bityutskiy
  2005-09-28 11:21   ` Konstantin Kletschke
  0 siblings, 1 reply; 6+ messages in thread
From: Artem B. Bityutskiy @ 2005-09-28 10:50 UTC (permalink / raw)
  To: Konstantin Kletschke; +Cc: linux-mtd

Konstantin Kletschke wrote:
> What means "Inode #274 was a directory with children - removing those
> too..." ?
> 
This means JFFS2 has found a deleted directory which has children.
This should be harmless.

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

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

* Re: Inode #274 was a directory with children - removing those too...
  2005-09-28 10:50 ` Artem B. Bityutskiy
@ 2005-09-28 11:21   ` Konstantin Kletschke
  2005-09-28 11:36     ` Artem B. Bityutskiy
  2005-09-28 11:54     ` Konstantin Kletschke
  0 siblings, 2 replies; 6+ messages in thread
From: Konstantin Kletschke @ 2005-09-28 11:21 UTC (permalink / raw)
  To: Artem B. Bityutskiy; +Cc: linux-mtd

At Wed, 28 Sep 2005 14:50:16 +0400,
"Artem B. Bityutskiy" <dedekind@yandex.ru> wrote:

> This means JFFS2 has found a deleted directory which has children.
> This should be harmless.

It happens on a virgin created image. After that on every mount.
The partition is used as /.

K

-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

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

* Re: Inode #274 was a directory with children - removing those too...
  2005-09-28 11:21   ` Konstantin Kletschke
@ 2005-09-28 11:36     ` Artem B. Bityutskiy
  2005-09-28 11:55       ` Konstantin Kletschke
  2005-09-28 11:54     ` Konstantin Kletschke
  1 sibling, 1 reply; 6+ messages in thread
From: Artem B. Bityutskiy @ 2005-09-28 11:36 UTC (permalink / raw)
  To: Konstantin Kletschke; +Cc: linux-mtd



Konstantin Kletschke wrote:
> It happens on a virgin created image. After that on every mount.
> The partition is used as /.

Refine "virgin created image" please. If you mean you made it by 
mkfs.jffs2 and mount and see that message - there is a bug I think.

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

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

* Re: Inode #274 was a directory with children - removing those too...
  2005-09-28 11:21   ` Konstantin Kletschke
  2005-09-28 11:36     ` Artem B. Bityutskiy
@ 2005-09-28 11:54     ` Konstantin Kletschke
  1 sibling, 0 replies; 6+ messages in thread
From: Konstantin Kletschke @ 2005-09-28 11:54 UTC (permalink / raw)
  To: Artem B. Bityutskiy; +Cc: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 2660 bytes --]

At Wed, 28 Sep 2005 13:21:46 +0200,
Konstantin Kletschke <lists@ku-gbr.de> wrote:

> It happens on a virgin created image. After that on every mount.
> The partition is used as /.

I did some further debugging:

konsti@synertronixx3:/usr/src/buildroot$ ls -laR
build_arm/root/etc/network/
build_arm/root/etc/network/:
total 8
drwxr-xr-x  3 konsti konsti   41 2005-09-28 09:51 .
drwxr-xr-x  4 konsti konsti 4096 2005-09-28 09:51 ..
drwxrwxr-x  2 konsti konsti   33 2005-08-26 15:42 if-pre-up.d
-rw-r--r--  1 konsti konsti 1618 2005-09-28 11:09 interfaces

build_arm/root/etc/network/if-pre-up.d:
total 8
drwxrwxr-x  2 konsti konsti   33 2005-08-26 15:42 .
drwxr-xr-x  3 konsti konsti   41 2005-09-28 09:51 ..
-rwxr-xr-x  1 konsti konsti 6027 2005-08-26 15:42 linux-wlan-ng-pre-up

Then:

/usr/src/buildroot/toolchain_build_arm/mtd-20050122.orig/util/mkfs.jffs2\
        -e 0x20000 -l \
        -d /usr/src/buildroot/build_arm/root \
        -o /usr/src/buildroot/root_fs_arm.jffs2 \
        -D target/scb9328/device_table.txt

On Target:

# ls -laR /etc/network/
/etc/network/:
drwxr-xr-x    6 default  default         0 Sep 28  2005 .
drwxr-xr-x    5 default  default         0 Jan  1 00:00 ..
drwxr-xr-x    2 root     root            0 Sep 28  2005 if-down.d
drwxr-xr-x    2 root     root            0 Sep 28  2005 if-post-down.d
drwxr-xr-x    2 root     root            0 Aug 26  2005 if-pre-up.d
drwxr-xr-x    2 root     root            0 Sep 28  2005 if-up.d
-rw-r--r--    1 default  default      1618 Sep 28  2005 interfaces

/etc/network/if-down.d:
drwxr-xr-x    2 root     root            0 Sep 28  2005 .
drwxr-xr-x    6 default  default         0 Sep 28  2005 ..

/etc/network/if-post-down.d:
drwxr-xr-x    2 root     root            0 Sep 28  2005 .
drwxr-xr-x    6 default  default         0 Sep 28  2005 ..

/etc/network/if-pre-up.d:
drwxr-xr-x    2 root     root            0 Aug 26  2005 .
drwxr-xr-x    6 default  default         0 Sep 28  2005 ..

/etc/network/if-up.d:
drwxr-xr-x    2 root     root            0 Sep 28  2005 .
drwxr-xr-x    6 default  default         0 Sep 28  2005 ..
#

With this devicetable:

/etc/network/if-up.d                    d       755     0       0
-       -       -       -       -
/etc/network/if-pre-up.d                d       755     0       0
-       -       -       -       -
/etc/network/if-down.d                  d       755     0       0
-       -       -       -       -
/etc/network/if-post-down.d             d       755     0       0
-       -       -       -       -

I attach jffs2dump because I am not able to convince emacs to not
linebreak it, it looks unuseable broken at 72 chars.

Konsti



[-- Attachment #2: less --]
[-- Type: application/octet-stream, Size: 5520 bytes --]

         Inode      node at 0x0007e42c, totlen 0x00000799, #ino    266, version     1, isize    10873, csize     1877, dsize     4096, offset        0
         Inode      node at 0x0007ebc8, totlen 0x0000073e, #ino    266, version     2, isize    10873, csize     1786, dsize     4096, offset     4096
         Inode      node at 0x0007f308, totlen 0x000003f3, #ino    266, version     3, isize    10873, csize      943, dsize     2681, offset     8192
         Dirent     node at 0x0007f6fc, totlen 0x0000002e, #pino     4, version   265, #ino       267, nsize        6, name shadow
         Inode      node at 0x0007f72c, totlen 0x000000b3, #ino    267, version     1, isize      321, csize      111, dsize      321, offset        0
         Dirent     node at 0x0007f7e0, totlen 0x0000002e, #pino     4, version   266, #ino       268, nsize        6, name shadow
         Inode      node at 0x0007f810, totlen 0x000000b3, #ino    268, version     1, isize      321, csize      111, dsize      321, offset        0
         Dirent     node at 0x0007f8c4, totlen 0x0000002e, #pino     4, version   267, #ino       269, nsize        6, name passwd
         Inode      node at 0x0007f8f4, totlen 0x00000137, #ino    269, version     1, isize      489, csize      243, dsize      489, offset        0
         Dirent     node at 0x0007fa2c, totlen 0x00000032, #pino   254, version   268, #ino       270, nsize       10, name S20urandom
         Inode      node at 0x0007fa60, totlen 0x00000270, #ino    270, version     1, isize     1108, csize      556, dsize     1108, offset        0
         Dirent     node at 0x0007fcd0, totlen 0x00000032, #pino   254, version   269, #ino       271, nsize       10, name S40network
         Inode      node at 0x0007fd04, totlen 0x00000112, #ino    271, version     1, isize      340, csize      206, dsize      340, offset        0
         Dirent     node at 0x0007fe18, totlen 0x00000033, #pino   254, version   270, #ino       272, nsize       11, name S50dropbear
         Inode      node at 0x0007fe4c, totlen 0x000001af, #ino    272, version     1, isize     1007, csize      363, dsize      734, offset        0
         Inode      node at 0x0008000c, totlen 0x00000104, #ino    272, version     2, isize     1007, csize      192, dsize      273, offset      734
         Dirent     node at 0x00080110, totlen 0x0000002b, #pino   254, version   271, #ino       273, nsize        3, name rcS
         Inode      node at 0x0008013c, totlen 0x0000015c, #ino    273, version     1, isize      408, csize      280, dsize      408, offset        0
         Dirent     node at 0x00080298, totlen 0x00000033, #pino   259, version   272, #ino       274, nsize       11, name if-pre-up.d
         Inode      node at 0x000802cc, totlen 0x00000044, #ino    274, version     1, isize        0, csize        0, dsize        0, offset        0
         Dirent     node at 0x00080310, totlen 0x00000032, #pino   259, version   273, #ino       275, nsize       10, name interfaces
         Inode      node at 0x00080344, totlen 0x0000034a, #ino    275, version     1, isize     1618, csize      774, dsize     1618, offset        0
         Dirent     node at 0x00080690, totlen 0x0000002f, #pino   259, version   274, #ino       276, nsize        7, name if-up.d
         Inode      node at 0x000806c0, totlen 0x00000044, #ino    276, version     1, isize        0, csize        0, dsize        0, offset        0
         Dirent     node at 0x00080704, totlen 0x00000033, #pino   259, version   275, #ino       277, nsize       11, name if-pre-up.d
         Inode      node at 0x00080738, totlen 0x00000044, #ino    277, version     1, isize        0, csize        0, dsize        0, offset        0
         Dirent     node at 0x0008077c, totlen 0x00000031, #pino   259, version   276, #ino       278, nsize        9, name if-down.d
         Inode      node at 0x000807b0, totlen 0x00000044, #ino    278, version     1, isize        0, csize        0, dsize        0, offset        0
         Dirent     node at 0x000807f4, totlen 0x00000036, #pino   259, version   277, #ino       279, nsize       14, name if-post-down.d
         Inode      node at 0x0008082c, totlen 0x00000044, #ino    279, version     1, isize        0, csize        0, dsize        0, offset        0
         Dirent     node at 0x00080870, totlen 0x0000003c, #pino   274, version   278, #ino       280, nsize       20, name linux-wlan-ng-pre-up
         Inode      node at 0x000808ac, totlen 0x0000065b, #ino    280, version     1, isize     6027, csize     1559, dsize     4096, offset        0
         Inode      node at 0x00080f08, totlen 0x000002e8, #ino    280, version     2, isize     6027, csize      676, dsize     1931, offset     4096
         Dirent     node at 0x000811f0, totlen 0x0000002f, #pino     5, version   279, #ino       281, nsize        7, name default
         Inode      node at 0x00081220, totlen 0x00000044, #ino    281, version     1, isize        0, csize        0, dsize        0, offset        0
         Dirent     node at 0x00081264, totlen 0x0000003b, #pino     6, version   280, #ino       282, nsize       19, name ld-uClibc-0.9.27.so
         Inode      node at 0x000812a0, totlen 0x000008b1, #ino    282, version     1, isize    19452, csize     2157, dsize     4096, offset        0
         Inode      node at 0x00081b54, totlen 0x00000a7e, #ino    282, version     2, isize    19452, csize     2618, dsize     4096, offset     4096

[-- Attachment #3: Type: text/plain, Size: 90 bytes --]




-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

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

* Re: Inode #274 was a directory with children - removing those too...
  2005-09-28 11:36     ` Artem B. Bityutskiy
@ 2005-09-28 11:55       ` Konstantin Kletschke
  0 siblings, 0 replies; 6+ messages in thread
From: Konstantin Kletschke @ 2005-09-28 11:55 UTC (permalink / raw)
  To: Artem B. Bityutskiy; +Cc: linux-mtd

At Wed, 28 Sep 2005 15:36:46 +0400,
"Artem B. Bityutskiy" <dedekind@yandex.ru> wrote:

> Refine "virgin created image" please. If you mean you made it by 
> mkfs.jffs2 and mount and see that message - there is a bug I think.

That I meant, yes.

-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

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

end of thread, other threads:[~2005-09-28 11:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28 10:38 Inode #274 was a directory with children - removing those too Konstantin Kletschke
2005-09-28 10:50 ` Artem B. Bityutskiy
2005-09-28 11:21   ` Konstantin Kletschke
2005-09-28 11:36     ` Artem B. Bityutskiy
2005-09-28 11:55       ` Konstantin Kletschke
2005-09-28 11:54     ` Konstantin Kletschke

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