cifs_mount.h 1.1 KB

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