1 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */ 2 /* 3 * include/uapi/linux/cifs/cifs_mount.h 4 * 5 * Author(s): Scott Lovenberg (scott.lovenberg@gmail.com) 6 * 7 * This library is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU Lesser General Public License as published 9 * by the Free Software Foundation; either version 2.1 of the License, or 10 * (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 15 * the GNU Lesser General Public License for more details. 16 */ 17 #ifndef _CIFS_MOUNT_H 18 #define _CIFS_MOUNT_H 19 20 /* Max string lengths for cifs mounting options. */ 21 #define CIFS_MAX_DOMAINNAME_LEN 256 /* max fully qualified domain name */ 22 #define CIFS_MAX_USERNAME_LEN 256 /* reasonable max for current servers */ 23 #define CIFS_MAX_PASSWORD_LEN 512 /* Windows max seems to be 256 wide chars */ 24 #define CIFS_MAX_SHARE_LEN 256 /* reasonable max share name length */ 25 #define CIFS_NI_MAXHOST 1024 /* max host name length (256 * 4 bytes) */ 26 27 28 #endif /* _CIFS_MOUNT_H */ 29