On Sat, 31 May 2008 17:20:15 +0200, arnd@arndb.de wrote:Couldn't this cause problems for NFS? The same inode no longer has a stable inode number across reboots. Basing on dentry location can also be an information leak and cause problems on 64bit machines with old userspace. We could keep the original approach and use a static counter otherwise. Something roughly like this: static ino_t cramfs_get_ino(struct super_block *sb, struct cramfs_inode *cramfs_inode) { static ino_t counter; struct inode *inode; if (cramfs_inode->offset && cramfs_inode->size) return cramfs_inode->offset << 2; for (;;) { counter++; if (!counter & 3) counter++; /* skip numbers that could be offsets */ inode = cramfs_iget(sb, counter); if (!inode) return counter; /* free to use */ iput(inode); } } That seems to be solved with above approach as well. Jörn -- You can take my soul, but not my lack of enthusiasm. -- Wally --
| Zach Brown | [PATCH 3 of 4] Teach paths to wake a specific void * target instead of a whole tas... |
| Linus Torvalds | Re: LSM conversion to static interface |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Gregory Haskins | [RFC PATCH 00/17] virtual-bus |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
