提交 2f9618ce 编写于 作者: A Andre Noll 提交者: Neil Brown

md: md_getgeo(): Move comment to proper position.

Signed-off-by: NAndre Noll <maan@systemlinux.org>
Signed-off-by: NNeil Brown <neilb@suse.de>
上级 bb57fc64
...@@ -4807,6 +4807,12 @@ static int set_disk_faulty(mddev_t *mddev, dev_t dev) ...@@ -4807,6 +4807,12 @@ static int set_disk_faulty(mddev_t *mddev, dev_t dev)
return 0; return 0;
} }
/*
* We have a problem here : there is no easy way to give a CHS
* virtual geometry. We currently pretend that we have a 2 heads
* 4 sectors (with a BIG number of cylinders...). This drives
* dosfs just mad... ;-)
*/
static int md_getgeo(struct block_device *bdev, struct hd_geometry *geo) static int md_getgeo(struct block_device *bdev, struct hd_geometry *geo)
{ {
mddev_t *mddev = bdev->bd_disk->private_data; mddev_t *mddev = bdev->bd_disk->private_data;
...@@ -4958,12 +4964,6 @@ static int md_ioctl(struct inode *inode, struct file *file, ...@@ -4958,12 +4964,6 @@ static int md_ioctl(struct inode *inode, struct file *file,
err = do_md_stop (mddev, 1); err = do_md_stop (mddev, 1);
goto done_unlock; goto done_unlock;
/*
* We have a problem here : there is no easy way to give a CHS
* virtual geometry. We currently pretend that we have a 2 heads
* 4 sectors (with a BIG number of cylinders...). This drives
* dosfs just mad... ;-)
*/
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册