From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: <linux-btrfs@vger.kernel.org>
Subject: [RFC PATCH 1/2] btrfs-progs: Follow kernel changes to add new member of btrfs_ioctl_dev_info_args.
Date: Tue, 6 May 2014 14:33:24 +0800 [thread overview]
Message-ID: <1399358005-9780-1-git-send-email-quwenruo@cn.fujitsu.com> (raw)
Follow the kernel header changes to add new member of
btrfs_ioctl_dev_info_args.
This change will use special bit to keep backward compatibility, so even
on old kernels this will not screw anything up.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
ioctl.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ioctl.h b/ioctl.h
index 9627e8d..672a3a3 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -156,12 +156,15 @@ struct btrfs_ioctl_dev_replace_args {
__u64 spare[64];
};
+#define BTRFS_IOCTL_DEV_INFO_MISSING (1ULL<<0)
+#define BTRFS_IOCTL_DEV_INFO_FLAG_SET (1ULL<<63)
struct btrfs_ioctl_dev_info_args {
__u64 devid; /* in/out */
__u8 uuid[BTRFS_UUID_SIZE]; /* in/out */
__u64 bytes_used; /* out */
__u64 total_bytes; /* out */
- __u64 unused[379]; /* pad to 4k */
+ __u64 flags; /* out */
+ __u64 unused[378]; /* pad to 4k */
__u8 path[BTRFS_DEVICE_PATH_NAME_MAX]; /* out */
};
--
1.9.2
next reply other threads:[~2014-05-06 6:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 6:33 Qu Wenruo [this message]
2014-05-06 6:33 ` [RFC PATCH 2/2] btrfs-progs: Add userspace support for kernel missing dev detection Qu Wenruo
2014-05-21 3:38 ` Anand Jain
2014-05-21 3:38 ` [RFC PATCH 1/2] btrfs-progs: Follow kernel changes to add new member of btrfs_ioctl_dev_info_args Anand Jain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1399358005-9780-1-git-send-email-quwenruo@cn.fujitsu.com \
--to=quwenruo@cn.fujitsu.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).