mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
ksmbd: change stream type macro to enumeration
Change stream type macro to enumeration and move it to vfs.h. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
67d1c43299
commit
ee2033e9c6
@ -16,9 +16,6 @@
|
||||
|
||||
extern int ksmbd_debug_types;
|
||||
|
||||
#define DATA_STREAM 1
|
||||
#define DIR_STREAM 2
|
||||
|
||||
#define KSMBD_DEBUG_SMB BIT(0)
|
||||
#define KSMBD_DEBUG_AUTH BIT(1)
|
||||
#define KSMBD_DEBUG_VFS BIT(2)
|
||||
|
@ -101,6 +101,14 @@ struct xattr_ntacl {
|
||||
#define XATTR_NAME_SD_LEN \
|
||||
(sizeof(XATTR_SECURITY_PREFIX SD_PREFIX) - 1)
|
||||
|
||||
/*
|
||||
* Enumeration for stream type.
|
||||
*/
|
||||
enum {
|
||||
DATA_STREAM = 1, /* type $DATA */
|
||||
DIR_STREAM /* type $INDEX_ALLOCATION */
|
||||
};
|
||||
|
||||
/* CreateOptions */
|
||||
/* Flag is set, it must not be a file , valid for directory only */
|
||||
#define FILE_DIRECTORY_FILE_LE cpu_to_le32(0x00000001)
|
||||
|
Loading…
Reference in New Issue
Block a user