]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
retire the APIs that driver no longer supports
authorZhilong Liu <zlliu@suse.com>
Thu, 11 May 2017 08:52:41 +0000 (16:52 +0800)
committerJes Sorensen <jsorensen@fb.com>
Thu, 11 May 2017 15:45:44 +0000 (11:45 -0400)
refer to commit: e6e5f8f1267d ("Build: Stop
bothering about supporting md driver ...")
continue to retire the APIs that md driver
wasn't supported for very long period of time.

Signed-off-by: Zhilong Liu <zlliu@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Build.c
Manage.c

diff --git a/Build.c b/Build.c
index ad59867b53da0d956806e020a0429c3c9695f4f5..70ba068437961aece4fc248611a4c9a4969e1bd1 100644 (file)
--- a/Build.c
+++ b/Build.c
 
 #include "mdadm.h"
 
-#define REGISTER_DEV           _IO (MD_MAJOR, 1)
-#define START_MD               _IO (MD_MAJOR, 2)
-#define STOP_MD                        _IO (MD_MAJOR, 3)
-
 int Build(char *mddev, struct mddev_dev *devlist,
          struct shape *s, struct context *c)
 {
index 14276b709d1cfbfedd1c852da4a29eef060647e1..467efb73e367e330de1594ad03c9d116eee0b856 100644 (file)
--- a/Manage.c
+++ b/Manage.c
 #include "md_p.h"
 #include <ctype.h>
 
-#define REGISTER_DEV           _IO (MD_MAJOR, 1)
-#define START_MD               _IO (MD_MAJOR, 2)
-#define STOP_MD                        _IO (MD_MAJOR, 3)
-
 int Manage_ro(char *devname, int fd, int readonly)
 {
        /* switch to readonly or rw