Re: [RAPIDLY GOING OFFTOPIC] Re: SMBFS: Question...

Brion Vibber (brion@pobox.com)
Wed, 05 Aug 1998 04:36:00 -0700


Okay, quick closure on this. I found that mount has hooks for using
helper programs of the form /sbin/mount.[fstype]; I adapted my script to
become mount.smbfs and made a small patch to mount to recognize 'smbfs'
as a type to do this for (it does 'smb' and 'ncp' by default, but
'smbfs' is the type that the kernel knows so for consistency...) and to
automatically go to smbfs for a device name that starts with two
slashes.

So in short, this provides the functionality of my previous script,
fixes a couple bugs in it, and allows mounting of things in /etc/fstab
by name or mount point alone. _And_ it shouldn't interfere with running
the main mount program; if perl or smbmount are not available, only
attempts to mount SMB shares should fail.

Big caveats: mount -a doesn't work right with smbfs mounts, and shares
with passwords may not work.

See http://pobox.com/~brion/linux/smbfs.html if you want the script &
patch.

If you want to reply to this message, please remove the kernel list from
the recipients as this is off topic.

-- brion vibber (brion@pobox.com)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html