* [2.6.29.x+ FIX] CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCK
@ 2009-06-11 2:46 Tomáš Szépe
2009-06-15 21:45 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Tomáš Szépe @ 2009-06-11 2:46 UTC (permalink / raw)
To: gregkh, akpm, linux-kernel
Hello,
Fix: CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCK.
Patch against 2.6.29.*, 2.6.30, current.
inlined please find a trivial fix that makes it possible to run
complete systems out of an initramfs on current kernels again
(this last worked on 2.6.27.*).
--
Tomáš Szépe <szepe@pinerecords.com>
diff -urN a/fs/Kconfig b/fs/Kconfig
--- a/fs/Kconfig 2009-06-10 05:05:27 +0200
+++ b/fs/Kconfig 2009-06-11 03:50:50 +0200
@@ -39,6 +39,13 @@
bool
default n
+source "fs/xfs/Kconfig"
+source "fs/gfs2/Kconfig"
+source "fs/ocfs2/Kconfig"
+source "fs/btrfs/Kconfig"
+
+endif # BLOCK
+
config FILE_LOCKING
bool "Enable POSIX file locking API" if EMBEDDED
default y
@@ -47,13 +54,6 @@
for filesystems like NFS and for the flock() system
call. Disabling this option saves about 11k.
-source "fs/xfs/Kconfig"
-source "fs/gfs2/Kconfig"
-source "fs/ocfs2/Kconfig"
-source "fs/btrfs/Kconfig"
-
-endif # BLOCK
-
source "fs/notify/Kconfig"
source "fs/quota/Kconfig"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6.29.x+ FIX] CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCK
2009-06-11 2:46 [2.6.29.x+ FIX] CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCK Tomáš Szépe
@ 2009-06-15 21:45 ` Andrew Morton
2009-06-15 21:57 ` Tomáš Szépe
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2009-06-15 21:45 UTC (permalink / raw)
To: Tomá__ Szépe; +Cc: gregkh, linux-kernel
On Thu, 11 Jun 2009 04:46:30 +0200
Tom____ Sz__pe <szepe@pinerecords.com> wrote:
> Hello,
>
> Fix: CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCK.
> Patch against 2.6.29.*, 2.6.30, current.
>
> inlined please find a trivial fix that makes it possible to run
> complete systems out of an initramfs on current kernels again
> (this last worked on 2.6.27.*).
>
Please describe the problem more completely. Why is it not possible?
What goes wrong? Your initramfs kernel has CONFIG_BLOCK=n?
Also, please do include a Signed-off-by: with each patch - see
Documentation/SubmittingPatches for a description.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6.29.x+ FIX] CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCK
2009-06-15 21:45 ` Andrew Morton
@ 2009-06-15 21:57 ` Tomáš Szépe
0 siblings, 0 replies; 3+ messages in thread
From: Tomáš Szépe @ 2009-06-15 21:57 UTC (permalink / raw)
To: Andrew Morton; +Cc: gregkh, linux-kernel
> > Fix: CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCK.
> > Patch against 2.6.29.*, 2.6.30, current.
> >
> > inlined please find a trivial fix that makes it possible to run
> > complete systems out of an initramfs on current kernels again
> > (this last worked on 2.6.27.*).
>
> Please describe the problem more completely. Why is it not possible?
> What goes wrong? Your initramfs kernel has CONFIG_BLOCK=n?
Precisely. Without this patch and with CONFIG_BLOCK unset, CONFIG_FILE_LOCKING
is forced to "n", which makes it impossible to run things as elementary as "mount",
they'll all fail with "flock(): not implemented" and similar.
I believe this is an apparent inconsistency between real code dependencies
(locks.o does not need the block layer compiled to successfully link) and
config symbol dependencies.
> Also, please do include a Signed-off-by: with each patch - see
> Documentation/SubmittingPatches for a description.
Ah, sorry, I haven't submitted a patch in years.
--
Tomáš Szépe <szepe@pinerecords.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-15 21:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-11 2:46 [2.6.29.x+ FIX] CONFIG_FILE_LOCKING should not depend on CONFIG_BLOCK Tomáš Szépe
2009-06-15 21:45 ` Andrew Morton
2009-06-15 21:57 ` Tomáš Szépe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.