summaryrefslogtreecommitdiffstats
path: root/sysfs.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-07-24 17:26:24 -0700
committerDan Williams <dan.j.williams@intel.com>2008-07-24 17:26:24 -0700
commit755c99faf2d51c133c49ada9700acd4b8cc961c0 (patch)
treea71dfa94044621e097091da24ad2625b4123000c /sysfs.c
parenteb7ea4630f2df057f4df36eed7a1ec03150f0e76 (diff)
downloadmdadm-755c99faf2d51c133c49ada9700acd4b8cc961c0.tar.gz
mdadm-755c99faf2d51c133c49ada9700acd4b8cc961c0.tar.xz
mdadm-755c99faf2d51c133c49ada9700acd4b8cc961c0.zip
sysfs: deprecate sysfs_disk_to_sg
The cmd_filter patch merged for 2.6.27 broke retrieving the serial number via an ioctl to /dev/sgN. In debugging this I found that other utilities like sdparm simply run the ioctl on /dev/sdX. So just convert to that for protection in numbers, but scream on the mailing list for the inconvenience grr... Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'sysfs.c')
-rw-r--r--sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysfs.c b/sysfs.c
index 8979ec4..0ea17eb 100644
--- a/sysfs.c
+++ b/sysfs.c
@@ -398,6 +398,7 @@ int sysfs_add_disk(struct mdinfo *sra, struct mdinfo *sd)
return rv;
}
+#if 0
int sysfs_disk_to_sg(int fd)
{
/* from an open block device, try find and open its corresponding
@@ -461,6 +462,7 @@ int sysfs_disk_to_sg(int fd)
return -1;
}
+#endif
int sysfs_disk_to_scsi_id(int fd, __u32 *id)
{