Skip to contentSkip to conversation

xfs module insert fails with "xfs: Unknown symbol exportfs_decode_fh (err 0)"

DISCUSSION Chandra Seetharaman 4 participants 5 messages Apr 26, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

When I tried to insert xfs module in my test machine it failed with

xfs: Unknown symbol exportfs_decode_fh (err 0).

Found out that I did not have CONFIG_EXPORTFS enabled in my kernel config.

All .*by_handle code in XFS is open coded. Wondering if they should be under #ifdef CONFIG_EXPORTFS ?

I can create a patch, but wanted to find out if it is indeed needed :)

Regards,

Chandra

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw
Quoted 5 lines · Chandra Seetharaman

Hello,

When I tried to insert xfs module in my test machine it failed with

xfs: Unknown symbol exportfs_decode_fh (err 0).

so don't use insmod, use modprobe :)

Quoted 2 lines

Found out that I did not have CONFIG_EXPORTFS enabled in my kernel config.

Oh, hum. But fs/xfs/Kconfig:

config XFS_FS
tristate "XFS filesystem support"
depends on BLOCK
select EXPORTFS

it should be turned on automatically. That seems to be the problem, why wasn't it for your case?

Quoted 2 lines

All .*by_handle code in XFS is open coded. Wondering if they should be under #ifdef CONFIG_EXPORTFS ?

CONFIG_EXPORTFS is supposed to be on if xfs is selected, unless something changed recently.

-Eric

Quoted 9 lines

I can create a patch, but wanted to find out if it is indeed needed :)

Regards,

Chandra

Quoted 5 lines

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
Quoted 9 lines · Eric Sandeen
Quoted 5 lines · Chandra Seetharaman

Hello,

When I tried to insert xfs module in my test machine it failed with

xfs: Unknown symbol exportfs_decode_fh (err 0).

so don't use insmod, use modprobe :)

yup. It is the problem. Config seems to be fine.

false alarm.

Quoted 36 lines
Quoted 2 lines

Found out that I did not have CONFIG_EXPORTFS enabled in my kernel config.

Oh, hum. But fs/xfs/Kconfig:

config XFS_FS
tristate "XFS filesystem support"
depends on BLOCK
select EXPORTFS

it should be turned on automatically. That seems to be the problem, why wasn't it for your case?

Quoted 2 lines

All .*by_handle code in XFS is open coded. Wondering if they should be under #ifdef CONFIG_EXPORTFS ?

CONFIG_EXPORTFS is supposed to be on if xfs is selected, unless something changed recently.

-Eric

Quoted 9 lines

I can create a patch, but wanted to find out if it is indeed needed :)

Regards,

Chandra

Quoted 5 lines

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Quoted 5 lines

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw
In reply to Chandra Seetharaman

Hey Chandra,

Quoted 6 lines · Chandra Seetharaman

When I tried to insert xfs module in my test machine it failed with

xfs: Unknown symbol exportfs_decode_fh (err 0).

Found out that I did not have CONFIG_EXPORTFS enabled in my kernel config.

Most people are running with NFS enabled in their kernel config, I think.

Quoted 4 lines

All .*by_handle code in XFS is open coded. Wondering if they should be under #ifdef CONFIG_EXPORTFS ?

I can create a patch, but wanted to find out if it is indeed needed :)

foo_by_handle
xfs_handlereq_to_dentry
xfs_handle_to_dentry
exportfs_decode_fh

xfsdump does open by handle, so making that conditional on CONFIG_EXPORTFS will break things. I think would be better to just make CONFIG_XFS depend upon CONFIG_EXPORTFS in fs/xfs/Kconfig. Looks like we'll have the same problem with libcrc32c.

Regards,
Ben

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#4 lore raw
Quoted 22 lines · Ben Myers

Hey Chandra,

Quoted 6 lines · Chandra Seetharaman

When I tried to insert xfs module in my test machine it failed with

xfs: Unknown symbol exportfs_decode_fh (err 0).

Found out that I did not have CONFIG_EXPORTFS enabled in my kernel config.

Most people are running with NFS enabled in their kernel config, I think.

Quoted 4 lines

All .*by_handle code in XFS is open coded. Wondering if they should be under #ifdef CONFIG_EXPORTFS ?

I can create a patch, but wanted to find out if it is indeed needed :)

foo_by_handle
xfs_handlereq_to_dentry
xfs_handle_to_dentry
exportfs_decode_fh

Quoted 4 lines

xfsdump does open by handle, so making that conditional on CONFIG_EXPORTFS will break things. I think would be better to just make CONFIG_XFS depend upon CONFIG_EXPORTFS in fs/xfs/Kconfig. Looks like we'll have the same problem with libcrc32c.

AFAIK, "select" isthe right keyword for these dependencies. They are like saying "depends on", but instead of having the XFS config options only appear in the menus if CONFIG_EXPORTFS is selected, it will select CONFIG_EXPORTFS=y when CONFIG_XFS_FS=y....

So I don't think there are any problems here...

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs