mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-11 08:19:32 +00:00
btrfs-progs: use system attr instead of attr library
We use the attr version provided by system in other places already, now we can remove dependency on the separate attr library. Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
5bfc3fea81
commit
7560f46ea9
8
props.c
8
props.c
@ -17,7 +17,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <attr/xattr.h>
|
||||
#include <sys/xattr.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@ -29,6 +29,12 @@
|
||||
#define XATTR_BTRFS_PREFIX "btrfs."
|
||||
#define XATTR_BTRFS_PREFIX_LEN (sizeof(XATTR_BTRFS_PREFIX) - 1)
|
||||
|
||||
/*
|
||||
* Defined as synonyms in attr/xattr.h
|
||||
*/
|
||||
#ifndef ENOATTR
|
||||
#define ENOATTR ENODATA
|
||||
#endif
|
||||
|
||||
static int prop_read_only(enum prop_object_type type,
|
||||
const char *object,
|
||||
|
Loading…
Reference in New Issue
Block a user