Bug 5514 - Cannot build XFS with quota support as module
Summary: Cannot build XFS with quota support as module
Status: CLOSED CODE_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: XFS (show other bugs)
Hardware: i386 Linux
: P2 high
Assignee: XFS Guru
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-28 08:06 UTC by Puzin, Dimitri
Modified: 2006-04-10 11:22 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.14
Tree: Mainline
Regression: ---


Attachments
Fix to fs/xfs/Kconfig (386 bytes, patch)
2005-10-28 08:20 UTC, Puzin, Dimitri
Details | Diff

Description Puzin, Dimitri 2005-10-28 08:06:40 UTC
Most recent kernel where this bug did not occur: 2.6.13.4
Distribution: Debian GNU/Linux 3.1

Problem Description: Cannot build XFS filesystem support as module with quota
support. It works only when the XFS filesystem support is compiled into the
kernel. Menuconfig prevents from setting CONFIG_XFS_FS=m and CONFIG_XFS_QUOTA=y.

How to reproduce:
configure the XFS filesystem with quota support as module. The resulting kernel
won't have quota support compiled into xfs.ko.

Fix: Changing the fs/xfs/Kconfig file from tristate to bool lets you configure
the quota support to be compiled into the XFS module. The Makefile-linux-2.6
checks only for CONFIG_XFS_QUOTA=y.

Patch:
diff -BurN linux-2.6.14/fs/xfs/Kconfig linux-2.6.14-working/fs/xfs/Kconfig
--- linux-2.6.14/fs/xfs/Kconfig 2005-10-28 02:02:08.000000000 +0200
+++ linux-2.6.14-working/fs/xfs/Kconfig 2005-10-28 16:56:04.000000000 +0200
@@ -24,7 +24,7 @@
        default y

 config XFS_QUOTA
-       tristate "XFS Quota support"
+       bool "XFS Quota support"
        depends on XFS_FS
        help
          If you say Y here, you will be able to set limits for disk usage on
Comment 1 Puzin, Dimitri 2005-10-28 08:20:18 UTC
Created attachment 6413 [details]
Fix to fs/xfs/Kconfig
Comment 2 Adrian Bunk 2006-04-10 11:22:03 UTC
This issue is already fixed.

Note You need to log in before you can comment on or make changes to this bug.