search for: btrfs_err_str

Displaying 3 results from an estimated 3 matches for "btrfs_err_str".

2013 Aug 20
7
[PATCH] btrfs-progs: use btrfs error code for kernel errors
...00644 --- a/cmds-balance.c +++ b/cmds-balance.c @@ -316,6 +316,12 @@ static int do_balance(const char *path, struct btrfs_ioctl_balance_args *args, if (ret == 0) goto out; e = errno; + if (ret > 0) { + fprintf(stderr, + "ERROR: Balance failed due to - %s\n", + btrfs_err_str(ret)); + goto out; + } } if (e == ECANCELED) { @@ -332,6 +338,11 @@ static int do_balance(const char *path, struct btrfs_ioctl_balance_args *args, "syslog - try dmesg | tail\n"); ret = 19; } + } else if (ret > 0) { + fprintf(stderr, + "ERROR: Balance s...
2013 Oct 25
8
[PATCH] btrfs: add framework to read fs info from btrfs-control
...t(struct btrfs_ioctl_fslist_args *fslist_arg, + struct btrfs_ioctl_fslist *fslist); #endif diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index 45e6189..6690551 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h @@ -512,6 +512,23 @@ static inline char *btrfs_err_str(enum btrfs_err_code err_code) } } +/* fs flags */ +#define BTRFS_FS_MOUNTED (1LLU << 0) + +struct btrfs_ioctl_fslist { + __u64 self_sz; /* in/out */ + __u8 fsid[BTRFS_FSID_SIZE]; /* out */ + __u64 num_devices; + __u64 missing_devices; + __u64 total_devices; + __u64 flags; +}; + +struct...
2014 Apr 23
0
[PATCH 001/001] btrfs: Mechanism to modify the permission of a subvolume
...ff -rup linux-3.13.6/include/uapi/linux/btrfs.h linux-3.13.6_btrfs/include/uapi/linux/btrfs.h --- linux-3.13.6/include/uapi/linux/btrfs.h 2014-03-07 11:37:02.000000000 +0530 +++ linux-3.13.6_btrfs/include/uapi/linux/btrfs.h 2014-03-19 15:34:30.648255239 +0530 @@ -606,5 +606,7 @@ static inline char *btrfs_err_str(enum b struct btrfs_ioctl_dev_replace_args) #define BTRFS_IOC_FILE_EXTENT_SAME _IOWR(BTRFS_IOCTL_MAGIC, 54, \ struct btrfs_ioctl_same_args) +#define BTRFS_IOC_SUBVOL_MODIFY _IOW(BTRFS_IOCTL_MAGIC, 55, \ + struct btrfs_ioctl_vol_args_v2) #endif /* _UAPI_LINUX_BTRFS_H */