2.5.66-bk12: "smbfs" module mounted as unsafe

Robert P. J. Day (rpjday@mindspring.com)
Mon, 7 Apr 2003 10:15:38 -0400 (EDT)


the (annotated) output of a "script" session, trying to use
smbmount to mount an XP share:

[beginning of session -- note no smbfs module loaded yet]

Script started on Mon 07 Apr 2003 10:07:05 AM EDT
[root@localhost root]# lsmod
Module Size Used by
autofs 15392 0
orinoco_cs 8936 1
orinoco 42752 1 orinoco_cs
hermes 8832 2 orinoco_cs,orinoco,[permanent]
ds 15936 3 orinoco_cs
yenta_socket 16128 2
pcmcia_core 64704 3 orinoco_cs,ds,yenta_socket
ohci1394 33536 0
ieee1394 69836 1 ohci1394
parport_pc 30404 0
ide_scsi 15552 0
scsi_mod 73340 1 ide_scsi
ide_cd 40672 0
cdrom 35648 1 ide_cd

[try to smbmount ...]

[root@localhost root]# smbmount //treefort/share /mnt/xpshare
Password:
ERROR: smbfs filesystem not supported by the kernel
Please refer to the smbmnt(8) manual page
smbmnt failed: 255

[where is smbfs module? not loaded yet ... why not?]

[root@localhost root]# lsmod
Module Size Used by
autofs 15392 0
orinoco_cs 8936 1
orinoco 42752 1 orinoco_cs
hermes 8832 2 orinoco_cs,orinoco,[permanent]
ds 15936 3 orinoco_cs
yenta_socket 16128 2
pcmcia_core 64704 3 orinoco_cs,ds,yenta_socket
ohci1394 33536 0
ieee1394 69836 1 ohci1394
parport_pc 30404 0
ide_scsi 15552 0
scsi_mod 73340 1 ide_scsi
ide_cd 40672 0
cdrom 35648 1 ide_cd

[ok, load it manually]

[root@localhost root]# modprobe smbfs

[and there it is ...]

[root@localhost root]# lsmod
Module Size Used by
smbfs 66320 0
autofs 15392 0
orinoco_cs 8936 1
orinoco 42752 1 orinoco_cs
hermes 8832 2 orinoco_cs,orinoco,[permanent]
ds 15936 3 orinoco_cs
yenta_socket 16128 2
pcmcia_core 64704 3 orinoco_cs,ds,yenta_socket
ohci1394 33536 0
ieee1394 69836 1 ohci1394
parport_pc 30404 0
ide_scsi 15552 0
scsi_mod 73340 1 ide_scsi
ide_cd 40672 0
cdrom 35648 1 ide_cd

[now try to smbmount again ...]

[root@localhost root]# mount //treefort/share /mnt/xpshare
Password:

[root@localhost root]# lsmod
Module Size Used by
smbfs 66320 2 [unsafe] <-- ???????
autofs 15392 0
orinoco_cs 8936 1
orinoco 42752 1 orinoco_cs
hermes 8832 2 orinoco_cs,orinoco,[permanent]
ds 15936 3 orinoco_cs
yenta_socket 16128 2
pcmcia_core 64704 3 orinoco_cs,ds,yenta_socket
ohci1394 33536 0
ieee1394 69836 1 ohci1394
parport_pc 30404 0
ide_scsi 15552 0
scsi_mod 73340 1 ide_scsi
ide_cd 40672 0
cdrom 35648 1 ide_cd

[root@localhost root]# umount /mnt/xpshare

[what happens when i try to unload smbfs module?]

[root@localhost root]# modprobe -r smbfs
FATAL: Error removing smbfs (/lib/modules/2.5.66-bk12/kernel/fs/smbfs/smbfs.ko): Device or resource busy

thoughts? i've never seen this before.

rday

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/