I am forwarding Michael Haas's patch to aufs-users ML, since it may help
other people.
Junjiro Okajima
--- Begin Message ---
[EMAIL PROTECTED] wrote:
> I'll wait for the release of linux-2.6.24 without -rc.
Ok, thank you. In the meantime, I've ported lhash-2.6.22.patch to the
Ubuntu gutsy kernel. Now I've got an NFS share on top of squashfs via
nbd and it's working fine :).
I'd like to ask the Ubuntu developers to add the lhash patch to their
kernel for the next Ubuntu release as well as lobbying for aufs to be
shipped with the linux-ubuntu-modules package, that's why I was asking
about a patch for 2.6.24. There's still some time left, though.
I'm attaching my updated lhash patch to this message. Here's a console
snippet:
[EMAIL PROTECTED]:/usr/src/linux-source-2.6.22# patch -p1 --dry-run <
../lhash-2.6.22.patch
patching file fs/namei.c
Hunk #1 succeeded at 1289 (offset 9 lines).
Hunk #2 FAILED at 2775.
1 out of 2 hunks FAILED -- saving rejects to file fs/namei.c.rej
patching file include/linux/namei.h
Hunk #1 FAILED at 81.
1 out of 1 hunk FAILED -- saving rejects to file include/linux/namei.h.rej
[EMAIL PROTECTED]:/usr/src/linux-source-2.6.22# patch -p1 --dry-run <
../lhash-2.6.22-ubuntu.diff
patching file fs/namei.c
patching file include/linux/namei.h
[EMAIL PROTECTED]:/usr/src/linux-source-2.6.22#
Regards,
Michael
--- linux-source-2.6.22/fs/namei.c 2007-12-18 07:30:37.000000000 +0000
+++ linux-source-2.6.22.mod/fs/namei.c 2008-01-18 16:18:17.000000000 +0000
@@ -1289,7 +1289,7 @@
* needs parent already locked. Doesn't follow mounts.
* SMP-safe.
*/
-static inline struct dentry * __lookup_hash(struct qstr *name, struct dentry *base, struct nameidata *nd)
+struct dentry * __lookup_hash(struct qstr *name, struct dentry *base, struct nameidata *nd)
{
struct dentry *dentry;
struct inode *inode;
@@ -2825,3 +2825,4 @@
EXPORT_SYMBOL(vfs_unlink);
EXPORT_SYMBOL(dentry_unhash);
EXPORT_SYMBOL(generic_readlink);
+EXPORT_SYMBOL(__lookup_hash);
--- linux-source-2.6.22/include/linux/namei.h 2007-12-18 07:30:37.000000000 +0000
+++ linux-source-2.6.22.mod/include/linux/namei.h 2008-01-18 16:18:17.000000000 +0000
@@ -84,6 +84,8 @@
extern struct file *nameidata_to_filp(struct nameidata *nd, int flags);
extern void release_open_intent(struct nameidata *);
+struct dentry * __lookup_hash(struct qstr *name, struct dentry * base, struct nameidata *nd);
+
extern struct dentry * lookup_one_len_nd(const char *, struct dentry *,
int, struct nameidata *);
extern struct dentry *lookup_one_len_kern(const char *, struct dentry *, int);
--- End Message ---
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/