/* * fs/cifs/cifsglob.h * * Copyright (C) International Business Machines Corp., 2002,2008 * Author(s): Steve French (sfrench@us.ibm.com) * Jeremy Allison (jra@samba.org) * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * 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. * */#ifndef _CIFS_GLOB_H#define _CIFS_GLOB_H#include<linux/in.h>#include<linux/in6.h>#include<linux/slab.h>#include<linux/mempool.h>#include<linux/workqueue.h>#include"cifs_fs_sb.h"#include"cifsacl.h"#include<crypto/internal/hash.h>#include<linux/scatterlist.h>#ifdef CONFIG_CIFS_SMB2#include"smb2pdu.h"#endif#define CIFS_MAGIC_NUMBER 0xFF534D42 /* the first four bytes of SMB PDUs *//* * The sizes of various internal tables and strings */#define MAX_UID_INFO 16#define MAX_SES_INFO 2#define MAX_TCON_INFO 4#define MAX_TREE_SIZE (2 + MAX_SERVER_SIZE + 1 + MAX_SHARE_SIZE + 1)#define MAX_SERVER_SIZE 15#define MAX_SHARE_SIZE 80#define MAX_USERNAME_SIZE 256 /* reasonable maximum for current servers */#define MAX_PASSWORD_SIZE 512 /* max for windows seems to be 256 wide chars */#define CIFS_MIN_RCV_POOL 4#define MAX_REOPEN_ATT 5 /* these many maximum attempts to reopen a file *//* * default attribute cache timeout (jiffies) */#define CIFS_DEF_ACTIMEO (1 * HZ)/* * max attribute cache timeout (jiffies) - 2^30 */#define CIFS_MAX_ACTIMEO (1 << 30)/* * MAX_REQ is the maximum number of requests that WE will send * on one socket concurrently. */#define CIFS_MAX_REQ 32767#define RFC1001_NAME_LEN 15#define RFC1001_NAME_LEN_WITH_NULL (RFC1001_NAME_LEN + 1)/* currently length of NIP6_FMT */#define SERVER_NAME_LENGTH 40#define SERVER_NAME_LEN_WITH_NULL (SERVER_NAME_LENGTH + 1)/* used to define string lengths for reversing unicode strings *//* (256+1)*2 = 514 *//* (max path length + 1 for null) * 2 for unicode */#define MAX_NAME 514/* SMB echo "timeout" -- FIXME: tunable? */#define SMB_ECHO_INTERVAL (60 * HZ)#include"ci