From aad504f880611fc5c91cad72c8d84777444a46dd Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 24 Jun 2004 17:43:17 +0000 Subject: [PATCH] - added init_intent() to lookup_bdev(), which fixes loop back device setting up. --- lustre/kernel_patches/patches/lookup_bdev_init_intent.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lustre/kernel_patches/patches/lookup_bdev_init_intent.patch diff --git a/lustre/kernel_patches/patches/lookup_bdev_init_intent.patch b/lustre/kernel_patches/patches/lookup_bdev_init_intent.patch new file mode 100644 index 0000000..06f7939 --- /dev/null +++ b/lustre/kernel_patches/patches/lookup_bdev_init_intent.patch @@ -0,0 +1,11 @@ +diff -rupN linux-2.6.6.old/fs/block_dev.c linux-2.6.6.new/fs/block_dev.c +--- linux-2.6.6.old/fs/block_dev.c Mon May 10 05:33:22 2004 ++++ linux-2.6.6.new/fs/block_dev.c Thu Jun 24 20:34:45 2004 +@@ -834,6 +834,7 @@ struct block_device *lookup_bdev(const c + if (!path || !*path) + return ERR_PTR(-EINVAL); + ++ intent_init(&nd.intent, IT_LOOKUP); + error = path_lookup(path, LOOKUP_FOLLOW, &nd); + if (error) + return ERR_PTR(error); -- 1.8.3.1