mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] config: Fix CONFIG_LFS option
@ 2006-03-28 22:18 Trond Myklebust
  2006-03-28 22:34 ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Trond Myklebust @ 2006-03-28 22:18 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel, Linux Filesystem Development

The help text says that if you select CONFIG_LBD, then it will
automatically select CONFIG_LFS. Nope... That isn't currently the
case.

 - Fix CONFIG_LBD to automatically select CONFIG_LFS
 - Get rid of the cruft in the help text mentioning CONFIG_LBD
 - Tell unsure users to select CONFIG_LFS.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---

 block/Kconfig |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/block/Kconfig b/block/Kconfig
index 5536839..8b4762c 100644
--- a/block/Kconfig
+++ b/block/Kconfig
@@ -6,6 +6,7 @@ #for instance.
 config LBD
 	bool "Support for Large Block Devices"
 	depends on X86 || (MIPS && 32BIT) || PPC32 || (S390 && !64BIT) || SUPERH || UML
+	select LSF
 	help
 	  Say Y here if you want to attach large (bigger than 2TB) discs to
 	  your machine, or if you want to have a raid or loopback device
@@ -27,10 +28,10 @@ config BLK_DEV_IO_TRACE
 config LSF
 	bool "Support for Large Single Files"
 	depends on X86 || (MIPS && 32BIT) || PPC32 || ARCH_S390_31 || SUPERH || UML
-	default n
-	help
-	  When CONFIG_LBD is disabled, say Y here if you want to
-	  handle large file(bigger than 2TB), otherwise say N.
-	  When CONFIG_LBD is enabled, Y is set automatically.
+	help
+	  Say Y here if you want to be able to handle very large files (bigger
+	  than 2TB), otherwise say N.
+
+	  If unsure, say Y.
 
 source block/Kconfig.iosched

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] config: Fix CONFIG_LFS option
  2006-03-28 22:18 [PATCH] config: Fix CONFIG_LFS option Trond Myklebust
@ 2006-03-28 22:34 ` Linus Torvalds
  2006-03-28 22:44   ` Andrew Morton
  2006-03-28 22:48   ` Trond Myklebust
  0 siblings, 2 replies; 4+ messages in thread
From: Linus Torvalds @ 2006-03-28 22:34 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: Andrew Morton, linux-kernel, Linux Filesystem Development



On Tue, 28 Mar 2006, Trond Myklebust wrote:
>
> The help text says that if you select CONFIG_LBD, then it will
> automatically select CONFIG_LFS. Nope... That isn't currently the
> case.

I'm not sure your patch makes anything much better, though.

Why does CONFIG_LSF exist in the first place? Afaik, it only affects a 
totally not-very-interesting thing (blkcnt_t) for a totally not very 
interesting feature (the number of people who want single files >2TB is 
likely not very big).

Having it auto-selected by LBD sounds insane, since LBD is likely more 
interesting than LSF itsef is. It would make more sense to go the other 
way (have LSF auto-select LBD).

			Linus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] config: Fix CONFIG_LFS option
  2006-03-28 22:34 ` Linus Torvalds
@ 2006-03-28 22:44   ` Andrew Morton
  2006-03-28 22:48   ` Trond Myklebust
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2006-03-28 22:44 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Trond.Myklebust, linux-kernel, linux-fsdevel

Linus Torvalds <torvalds@osdl.org> wrote:
>
> 
> 
> On Tue, 28 Mar 2006, Trond Myklebust wrote:
> >
> > The help text says that if you select CONFIG_LBD, then it will
> > automatically select CONFIG_LFS. Nope... That isn't currently the
> > case.
> 
> I'm not sure your patch makes anything much better, though.
> 
> Why does CONFIG_LSF exist in the first place? Afaik, it only affects a 
> totally not-very-interesting thing (blkcnt_t) for a totally not very 
> interesting feature (the number of people who want single files >2TB is 
> likely not very big).

Yes, it's strictly a bugfix, but it's not a very big bug.  Perhaps we
should turn it on all the time and not have the config option, but it does
have some cost in text size, data size and instruction count.

> Having it auto-selected by LBD sounds insane, since LBD is likely more 
> interesting than LSF itsef is. It would make more sense to go the other 
> way (have LSF auto-select LBD).

Spose so.  I wonder what distributors will choose to do.

It's a bit odd to have a config option to select whether or not to have a
buggy kernel.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] config: Fix CONFIG_LFS option
  2006-03-28 22:34 ` Linus Torvalds
  2006-03-28 22:44   ` Andrew Morton
@ 2006-03-28 22:48   ` Trond Myklebust
  1 sibling, 0 replies; 4+ messages in thread
From: Trond Myklebust @ 2006-03-28 22:48 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, linux-kernel, Linux Filesystem Development

On Tue, 2006-03-28 at 14:34 -0800, Linus Torvalds wrote:
> 
> On Tue, 28 Mar 2006, Trond Myklebust wrote:
> >
> > The help text says that if you select CONFIG_LBD, then it will
> > automatically select CONFIG_LFS. Nope... That isn't currently the
> > case.
> 
> I'm not sure your patch makes anything much better, though.
> 
> Why does CONFIG_LSF exist in the first place? Afaik, it only affects a 
> totally not-very-interesting thing (blkcnt_t) for a totally not very 
> interesting feature (the number of people who want single files >2TB is 
> likely not very big).
> 
> Having it auto-selected by LBD sounds insane, since LBD is likely more 
> interesting than LSF itsef is. It would make more sense to go the other 
> way (have LSF auto-select LBD).

NFSv3 and CIFS are two examples of commonly used filesystems that don't
care a hoot for CONFIG_LBD, but that still want to be able to support
large values for inode->i_blocks.

Cheers,
  Trond

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-28 22:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-28 22:18 [PATCH] config: Fix CONFIG_LFS option Trond Myklebust
2006-03-28 22:34 ` Linus Torvalds
2006-03-28 22:44   ` Andrew Morton
2006-03-28 22:48   ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®