fs.h (b745fafaf70c0a98a2e1e7ac8cb14542889ceb0e) | fs.h (b7e7cf7a66a27e62c5f873a0068cee34094bf5d7) |
---|---|
1#ifndef _UAPI_LINUX_FS_H 2#define _UAPI_LINUX_FS_H 3 4/* 5 * This file has definitions for some important file table structures 6 * and constants and structures used by various generic file system 7 * ioctl's. Please do not make any changes in this file before 8 * sending patches for review to linux-fsdevel@vger.kernel.org and --- 258 unchanged lines hidden (view full) --- 267#define FS_POLICY_FLAGS_VALID 0x03 268 269/* Encryption algorithms */ 270#define FS_ENCRYPTION_MODE_INVALID 0 271#define FS_ENCRYPTION_MODE_AES_256_XTS 1 272#define FS_ENCRYPTION_MODE_AES_256_GCM 2 273#define FS_ENCRYPTION_MODE_AES_256_CBC 3 274#define FS_ENCRYPTION_MODE_AES_256_CTS 4 | 1#ifndef _UAPI_LINUX_FS_H 2#define _UAPI_LINUX_FS_H 3 4/* 5 * This file has definitions for some important file table structures 6 * and constants and structures used by various generic file system 7 * ioctl's. Please do not make any changes in this file before 8 * sending patches for review to linux-fsdevel@vger.kernel.org and --- 258 unchanged lines hidden (view full) --- 267#define FS_POLICY_FLAGS_VALID 0x03 268 269/* Encryption algorithms */ 270#define FS_ENCRYPTION_MODE_INVALID 0 271#define FS_ENCRYPTION_MODE_AES_256_XTS 1 272#define FS_ENCRYPTION_MODE_AES_256_GCM 2 273#define FS_ENCRYPTION_MODE_AES_256_CBC 3 274#define FS_ENCRYPTION_MODE_AES_256_CTS 4 |
275#define FS_ENCRYPTION_MODE_AES_128_CBC 5 276#define FS_ENCRYPTION_MODE_AES_128_CTS 6 |
|
275 276struct fscrypt_policy { 277 __u8 version; 278 __u8 contents_encryption_mode; 279 __u8 filenames_encryption_mode; 280 __u8 flags; 281 __u8 master_key_descriptor[FS_KEY_DESCRIPTOR_SIZE]; 282}; --- 72 unchanged lines hidden (view full) --- 355#define SYNC_FILE_RANGE_WAIT_BEFORE 1 356#define SYNC_FILE_RANGE_WRITE 2 357#define SYNC_FILE_RANGE_WAIT_AFTER 4 358 359/* flags for preadv2/pwritev2: */ 360#define RWF_HIPRI 0x00000001 /* high priority request, poll if possible */ 361#define RWF_DSYNC 0x00000002 /* per-IO O_DSYNC */ 362#define RWF_SYNC 0x00000004 /* per-IO O_SYNC */ | 277 278struct fscrypt_policy { 279 __u8 version; 280 __u8 contents_encryption_mode; 281 __u8 filenames_encryption_mode; 282 __u8 flags; 283 __u8 master_key_descriptor[FS_KEY_DESCRIPTOR_SIZE]; 284}; --- 72 unchanged lines hidden (view full) --- 357#define SYNC_FILE_RANGE_WAIT_BEFORE 1 358#define SYNC_FILE_RANGE_WRITE 2 359#define SYNC_FILE_RANGE_WAIT_AFTER 4 360 361/* flags for preadv2/pwritev2: */ 362#define RWF_HIPRI 0x00000001 /* high priority request, poll if possible */ 363#define RWF_DSYNC 0x00000002 /* per-IO O_DSYNC */ 364#define RWF_SYNC 0x00000004 /* per-IO O_SYNC */ |
363#define RWF_NOWAIT 0x00000008 /* per-IO, return -EAGAIN if operation would block */ | |
364 | 365 |
365#define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC |\ 366 RWF_NOWAIT) 367 | |
368#endif /* _UAPI_LINUX_FS_H */ | 366#endif /* _UAPI_LINUX_FS_H */ |