Fixed links for SMART and IDE param
authorJamie Cameron <jcameron@webmin.com>
Thu, 11 Oct 2007 18:31:49 +0000 (18:31 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 11 Oct 2007 18:31:49 +0000 (18:31 +0000)
fdisk/CHANGELOG
fdisk/index.cgi

index b8d7fab..9d310d1 100644 (file)
@@ -14,3 +14,5 @@ Added support for systems with more than 26 IDE or SCSI drives.
 ---- Changes since 1.300 ----
 Added support for formatting FATX filesystems.
 Added a display of each partitions UUID, and added code to support their detection.
+---- Changes since 1.360 ----
+Link to SMART module for SCSI disks too, and IDE params page for SATA disks pretending to the SCSI.
index dd90f0d..3ad6a6b 100755 (executable)
@@ -44,12 +44,13 @@ foreach $d (&list_disks_partitions()) {
 
        # Show links to other modules
        @links = ( );
-       if ($d->{'type'} eq 'ide' && $ed) {
+       if (($d->{'type'} eq 'ide' ||
+           $d->{'type'} eq 'scsi' && $d->{'model'} =~ /ATA/) && $ed) {
                # Display link to IDE params form
                push(@links, "<a href='edit_hdparm.cgi?".
                             "disk=$d->{'index'}'>$text{'index_hdparm'}</a>");
                }
-       if ($smart && $d->{'type'} eq 'ide') {
+       if ($smart) {
                # Display link to smart module
                push(@links, "<a href='../smart-status/index.cgi?".
                             "drive=$d->{'device'}'>$text{'index_smart'}</a>");