second commit :)
[rrq/fuse_xattrs.git] / const.h
1 /*
2   fuse_xattrs - Add xattrs support using sidecar files
3
4   Copyright (C) 2016  Felipe Barriga Richards <felipe {at} felipebarriga.cl>
5
6   This program can be distributed under the terms of the GNU GPL.
7   See the file COPYING.
8 */
9
10 #ifndef FUSE_XATTRS_CONST_H
11 #define FUSE_XATTRS_CONST_H
12
13 #define SIDECAR_EXT ".xattr"
14 // TODO: This is just arbitrary...
15 #define MAX_METADATA_SIZE 8 * 1024 * 1024 // 8 MiB
16
17 #define XATTR_NAME_MAX   255    /* # chars in an extended attribute name */
18 #define XATTR_SIZE_MAX 65536    /* size of an extended attribute value (64k) */
19 #define XATTR_LIST_MAX 65536    /* size of extended attribute namelist (64k) */
20
21 #endif //FUSE_XATTRS_CONST_H