diff options
author | Mike Miller <mike.miller@hp.com> | 2005-06-27 17:36:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 18:11:48 -0400 |
commit | 60564a313a5738960064d6c555ec066d9332f278 (patch) | |
tree | c6ef665334f5c666ccb7afe490deed0e35df2b0f /drivers/block/cciss.c | |
parent | cd6fb584cf7f18ec6b221192b57d712ecc8c1859 (diff) |
[PATCH] cciss: remove partition info from CCISS_GETLUNINFO
This patch fulfills a promise I made to Christoph sometime back. I am
removing the partition info from the CCISS_GETLUNINFO ioctl as I was informed
my "driver had no damn business reading that structure." ;)
The application folks are to use /proc or /sys for partition info from now on.
I am only aware of a few apps that use this ioctl and I'm not sure they ever
used the partition info.
Signed-off-by: Mike Miller <mike.miller@hp.com>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index d5d0fa538f12..653512b77570 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -791,13 +791,6 @@ static int cciss_ioctl(struct inode *inode, struct file *filep, | |||
791 | luninfo.LunID = drv->LunID; | 791 | luninfo.LunID = drv->LunID; |
792 | luninfo.num_opens = drv->usage_count; | 792 | luninfo.num_opens = drv->usage_count; |
793 | luninfo.num_parts = 0; | 793 | luninfo.num_parts = 0; |
794 | /* count partitions 1 to 15 with sizes > 0 */ | ||
795 | for (i = 0; i < MAX_PART - 1; i++) { | ||
796 | if (!disk->part[i]) | ||
797 | continue; | ||
798 | if (disk->part[i]->nr_sects != 0) | ||
799 | luninfo.num_parts++; | ||
800 | } | ||
801 | if (copy_to_user(argp, &luninfo, | 794 | if (copy_to_user(argp, &luninfo, |
802 | sizeof(LogvolInfo_struct))) | 795 | sizeof(LogvolInfo_struct))) |
803 | return -EFAULT; | 796 | return -EFAULT; |