summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorPawel Baldysiak <pawel.baldysiak@intel.com>2016-11-17 14:58:35 +0100
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-11-17 09:24:18 -0500
commit329715091c5d308bdf155fe75ec03c432ff21999 (patch)
tree85eb59e1fbb893c69a56053767e8b29fcd3f8c50 /mdadm.h
parent1b7eb672f7792313cc1517feaae8267575fc496b (diff)
downloadmdadm-329715091c5d308bdf155fe75ec03c432ff21999.tar.gz
Add function for getting member drive sector size
This patch introduces the function for getting sector size of given device (fd). Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'mdadm.h')
-rwxr-xr-xmdadm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 41a4494..240ab7f 100755
--- a/mdadm.h
+++ b/mdadm.h
@@ -1112,6 +1112,7 @@ static inline struct supertype *guess_super(int fd) {
}
extern struct supertype *dup_super(struct supertype *st);
extern int get_dev_size(int fd, char *dname, unsigned long long *sizep);
+extern int get_dev_sector_size(int fd, char *dname, unsigned int *sectsizep);
extern int must_be_container(int fd);
extern int dev_size_from_id(dev_t id, unsigned long long *size);
void wait_for(char *dev, int fd);