mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 03:43:05 +07:00
6f52b16c5b
Many user space API headers are missing licensing information, which makes it hard for compliance tools to determine the correct license. By default are files without license information under the default license of the kernel, which is GPLV2. Marking them GPLV2 would exclude them from being included in non GPLV2 code, which is obviously not intended. The user space API headers fall under the syscall exception which is in the kernels COPYING file: NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work". otherwise syscall usage would not be possible. Update the files which contain no license information with an SPDX license identifier. The chosen identifier is 'GPL-2.0 WITH Linux-syscall-note' which is the officially assigned identifier for the Linux syscall exception. SPDX license identifiers are a legally binding shorthand, which can be used instead of the full boiler plate text. This patch is based on work done by Thomas Gleixner and Kate Stewart and Philippe Ombredanne. See the previous patch in this series for the methodology of how this patch was researched. Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
69 lines
1.4 KiB
C
69 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
* NFS protocol definitions
|
|
*
|
|
* This file contains constants for Version 2 of the protocol.
|
|
*/
|
|
#ifndef _LINUX_NFS2_H
|
|
#define _LINUX_NFS2_H
|
|
|
|
#define NFS2_PORT 2049
|
|
#define NFS2_MAXDATA 8192
|
|
#define NFS2_MAXPATHLEN 1024
|
|
#define NFS2_MAXNAMLEN 255
|
|
#define NFS2_MAXGROUPS 16
|
|
#define NFS2_FHSIZE 32
|
|
#define NFS2_COOKIESIZE 4
|
|
#define NFS2_FIFO_DEV (-1)
|
|
#define NFS2MODE_FMT 0170000
|
|
#define NFS2MODE_DIR 0040000
|
|
#define NFS2MODE_CHR 0020000
|
|
#define NFS2MODE_BLK 0060000
|
|
#define NFS2MODE_REG 0100000
|
|
#define NFS2MODE_LNK 0120000
|
|
#define NFS2MODE_SOCK 0140000
|
|
#define NFS2MODE_FIFO 0010000
|
|
|
|
|
|
/* NFSv2 file types - beware, these are not the same in NFSv3 */
|
|
enum nfs2_ftype {
|
|
NF2NON = 0,
|
|
NF2REG = 1,
|
|
NF2DIR = 2,
|
|
NF2BLK = 3,
|
|
NF2CHR = 4,
|
|
NF2LNK = 5,
|
|
NF2SOCK = 6,
|
|
NF2BAD = 7,
|
|
NF2FIFO = 8
|
|
};
|
|
|
|
struct nfs2_fh {
|
|
char data[NFS2_FHSIZE];
|
|
};
|
|
|
|
/*
|
|
* Procedure numbers for NFSv2
|
|
*/
|
|
#define NFS2_VERSION 2
|
|
#define NFSPROC_NULL 0
|
|
#define NFSPROC_GETATTR 1
|
|
#define NFSPROC_SETATTR 2
|
|
#define NFSPROC_ROOT 3
|
|
#define NFSPROC_LOOKUP 4
|
|
#define NFSPROC_READLINK 5
|
|
#define NFSPROC_READ 6
|
|
#define NFSPROC_WRITECACHE 7
|
|
#define NFSPROC_WRITE 8
|
|
#define NFSPROC_CREATE 9
|
|
#define NFSPROC_REMOVE 10
|
|
#define NFSPROC_RENAME 11
|
|
#define NFSPROC_LINK 12
|
|
#define NFSPROC_SYMLINK 13
|
|
#define NFSPROC_MKDIR 14
|
|
#define NFSPROC_RMDIR 15
|
|
#define NFSPROC_READDIR 16
|
|
#define NFSPROC_STATFS 17
|
|
|
|
#endif /* _LINUX_NFS2_H */
|