Whamcloud - gitweb
- added init_intent() to lookup_bdev(), which fixes loop back device setting up.
authoryury <yury>
Thu, 24 Jun 2004 17:43:17 +0000 (17:43 +0000)
committeryury <yury>
Thu, 24 Jun 2004 17:43:17 +0000 (17:43 +0000)
lustre/kernel_patches/patches/lookup_bdev_init_intent.patch [new file with mode: 0644]

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 (file)
index 0000000..06f7939
--- /dev/null
@@ -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);