diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-05-15 12:20:51 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2012-05-16 20:13:34 -0500 |
commit | 23db65f511e6ee98ad767833f2ec58b0568ba32b (patch) | |
tree | 3e883154e734542aed2ec6e9e77dc22d24e8a54c /fs/cifs/smb1ops.c | |
parent | 5249af32da5330c0bcaf0412a32aa30c5e93e908 (diff) | |
download | linux-stable-23db65f511e6ee98ad767833f2ec58b0568ba32b.tar.gz linux-stable-23db65f511e6ee98ad767833f2ec58b0568ba32b.tar.bz2 linux-stable-23db65f511e6ee98ad767833f2ec58b0568ba32b.zip |
cifs: add a smb_version_operations/values structures and a smb_version enum
We need a way to dispatch different operations for different versions.
Behold the smb_version_operations/values structures. For now, those
structures just hold the version enum value and nothing uses them.
Eventually, we'll expand them to cover other operations/values as we
change the callers to dispatch from here.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/smb1ops.c')
-rw-r--r-- | fs/cifs/smb1ops.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c new file mode 100644 index 000000000000..d2850d194eb5 --- /dev/null +++ b/fs/cifs/smb1ops.c @@ -0,0 +1,27 @@ +/* + * SMB1 (CIFS) version specific operations + * + * Copyright (c) 2012, Jeff Layton <jlayton@redhat.com> + * + * This library is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License v2 as published + * by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "cifsglob.h" + +struct smb_version_operations smb1_operations = { +}; + +struct smb_version_values smb1_values = { + .version_string = SMB1_VERSION_STRING, +}; |