diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-07-24 17:26:24 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-07-24 17:26:24 -0700 |
commit | 755c99faf2d51c133c49ada9700acd4b8cc961c0 (patch) | |
tree | a71dfa94044621e097091da24ad2625b4123000c /sysfs.c | |
parent | eb7ea4630f2df057f4df36eed7a1ec03150f0e76 (diff) | |
download | mdadm-755c99faf2d51c133c49ada9700acd4b8cc961c0.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |