openpromfs root inode has ino 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I noticed that fs/openpromfs/inode.c has:

#define OPENPROM_ROOT_INO  0

It seems it was originally 16 but was changed to 0 here:

commit 3d824a46b7210ea3b0a13ab0d0fbd7f6e2e91ddf
Author: David S. Miller <davem@xxxxxxxxxxxxx>
Date:   Sun Jun 25 23:19:14 2006 -0700

    [OPENPROMFS]: Rewrite using in-kernel device tree and seq_file.

As far as I understand, inode 0 should never be used and can cause
various things to fail, e.g. my /bin/ls seems to completely ignore
getdents() results which have ->d_ino = 0.

I don't know if it actually causes any problems for people who are
actually using this, and I don't have the means to test the code anyway,
so just a heads up...


Vegard
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux