* PATCH - md 9 of 22 - Discard functions that have been "not yet" for a long time
@ 2002-06-19 0:51 Neil Brown
0 siblings, 0 replies; only message in thread
From: Neil Brown @ 2002-06-19 0:51 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-raid
Discard functions that have been "not yet" for a long time
It is not clear what these should do, or if they will ever be
needed, so let's clean them out. They can easily be recreated
if there is a need.
----------- Diffstat output ------------
./drivers/md/md.c | 50 --------------------------------------------------
1 files changed, 50 deletions(-)
--- ./drivers/md/md.c 2002/06/18 04:18:33 1.8
+++ ./drivers/md/md.c 2002/06/18 04:20:52 1.9
@@ -2503,36 +2503,6 @@
}
#undef SET_SB
-static int set_disk_info(mddev_t * mddev, void * arg)
-{
- printk(KERN_INFO "md: not yet");
- return -EINVAL;
-}
-
-static int clear_array(mddev_t * mddev)
-{
- printk(KERN_INFO "md: not yet");
- return -EINVAL;
-}
-
-static int write_raid_info(mddev_t * mddev)
-{
- printk(KERN_INFO "md: not yet");
- return -EINVAL;
-}
-
-static int protect_array(mddev_t * mddev)
-{
- printk(KERN_INFO "md: not yet");
- return -EINVAL;
-}
-
-static int unprotect_array(mddev_t * mddev)
-{
- printk(KERN_INFO "md: not yet");
- return -EINVAL;
-}
-
static int set_disk_faulty(mddev_t *mddev, kdev_t dev)
{
mdk_rdev_t *rdev;
@@ -2767,10 +2737,6 @@
switch (cmd)
{
- case CLEAR_ARRAY:
- err = clear_array(mddev);
- goto done_unlock;
-
case ADD_NEW_DISK:
{
mdu_disk_info_t info;
@@ -2789,22 +2755,6 @@
case HOT_ADD_DISK:
err = hot_add_disk(mddev, val_to_kdev(arg));
- goto done_unlock;
-
- case SET_DISK_INFO:
- err = set_disk_info(mddev, (void *)arg);
- goto done_unlock;
-
- case WRITE_RAID_INFO:
- err = write_raid_info(mddev);
- goto done_unlock;
-
- case UNPROTECT_ARRAY:
- err = unprotect_array(mddev);
- goto done_unlock;
-
- case PROTECT_ARRAY:
- err = protect_array(mddev);
goto done_unlock;
case SET_DISK_FAULTY:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-19 0:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-19 0:51 PATCH - md 9 of 22 - Discard functions that have been "not yet" for a long time Neil Brown
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).