Commit Graph

13 Commits

Author SHA1 Message Date
Edward Tomasz Napierala
afe21afeba Make mount_smbfs(8) preserve the "automounted" mount flag.
The issue here is that we have to pass this flag as a string,
in iov, because it doesn't fit in mntflags, which is an int.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
2014-09-08 10:57:43 +00:00
Davide Italiano
92a4d9bcc8 Completely rewrite the interface to smbdev switching from dev_clone
to cdevpriv(9). This commit changes the semantic of mount_smbfs
in userland as well, which now passes file descriptor in order to
to mount a specific filesystem istance.

Reviewed by:	attilio, ed
Tested by:	martymac
2013-05-04 14:03:18 +00:00
Tom Rhodes
377e63ad8f Document the "-U" option. While it is not part of the
getopt(), it is accepted through smb_ctx_init() in
lib/smb/ctx.c.

PR:		117013
Submitted by:	Tom Evans <tevans.uk@googlemail.com> (original version)
2009-01-22 08:29:39 +00:00
Ruslan Ermilov
1a6c5d9fac Unbreak on amd64. 2005-11-16 12:33:04 +00:00
Craig Rodrigues
c76b3c840a Convert mount_smbfs to use nmount().
Reviewed by:	bp (smbfs maintainer)
2005-11-16 02:47:12 +00:00
Tim J. Robbins
95269a8951 Correctly check the return value of kldload() to determine whether an
error occurred.
2004-09-05 06:42:51 +00:00
Maxime Henrion
56cb1e8cca Re-add the code to automatically load the smbfs.ko module if necessary.
We can't realy on the mount(2) system call to do it for us here because
smb_lib_init() needs the module and we call it before mount().  The old
code has been slightly modified to not use the getvfsent(3) API which
is now retired.

Noticed by:     many
2004-06-20 14:30:33 +00:00
Maxime Henrion
24449958e4 Sync with other mount_*fs(8) utilities; we don't need to try to
load the smbfs module because the mount(2) syscall will do it
if it's needed.
2004-04-11 21:07:26 +00:00
Tim J. Robbins
b97916da44 Pass getvfsbyname() the address of a struct xvfsconf instead of
struct vfsconf. This silences a warning, but could also prevent
stack corruption problems if xvfsconf ever became larger than vfsconf.

PR:		53863
Submitted by:	Lukas Ertl
2003-07-20 11:27:54 +00:00
Sheldon Hearn
34ffbc80d6 Import smbfs-1.4.4. 2002-04-22 16:15:20 +00:00
Sheldon Hearn
8d4076f081 Import smbfs-1.4.3. 2001-12-26 15:35:10 +00:00
Sheldon Hearn
df3342d686 Import smbfs-1.4.2. 2001-12-20 16:16:25 +00:00
Sheldon Hearn
f1b9d12761 Import smbfs-1.4.1.
This is Boris Popov's SMB/CIFS file system implementation for FreeBSD.

Obtained from:	Boris Popov via ftp://ftp.butya.kz/pub/smbfs/
2001-12-14 11:06:03 +00:00