Re: smartctl: Unrecognized command 13

2009-07-27 Thread Andriy Gapon
on 25/07/2009 11:48 Andriy Gapon said the following:
 This is stable/7 i386:
 
 $ smartctl -t select,568157535-568159000 /dev/ad10
 ...
 Unrecognized command 13 in ata_command_interface()
 Please contact smartmontools-supp...@lists.sourceforge.net
 Error Write Selective Self-Test Log failed: Function not implemented
 
 In smartmontools sources this is command WRITE_LOG.
 Is this something that can be patched in smartmontools or does it require
 additional support from ata driver?

I think the patch like the following could do the trick:
--- os_freebsd.cpp.orig 2008-03-05 00:09:47.0 +0200
+++ os_freebsd.cpp  2009-07-27 14:02:38.948144118 +0300
@@ -341,6 +340,15 @@
 request.count=512;
 copydata=1;
 break;
+  case WRITE_LOG:
+memcpy(buff, data, 512);
+request.u.ata.feature=ATA_SMART_WRITE_LOG_SECTOR;
+request.u.ata.lba=select|(0xc24f8);
+request.u.ata.count=1;
+request.flags=ATA_CMD_WRITE;
+request.data=(char *)buff;
+request.count=512;
+break;
   case IDENTIFY:
 request.u.ata.command=ATA_IDENTIFY_DEVICE;
 request.flags=ATA_CMD_READ;

-- 
Andriy Gapon
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: smartctl: Unrecognized command 13

2009-07-27 Thread Dmitry Morozovsky
On Mon, 27 Jul 2009, Andriy Gapon wrote:

AG  $ smartctl -t select,568157535-568159000 /dev/ad10
AG  ...
AG  Unrecognized command 13 in ata_command_interface()
AG  Please contact smartmontools-supp...@lists.sourceforge.net
AG  Error Write Selective Self-Test Log failed: Function not implemented
AG  
AG  In smartmontools sources this is command WRITE_LOG.
AG  Is this something that can be patched in smartmontools or does it require
AG  additional support from ata driver?
AG 
AG I think the patch like the following could do the trick:
AG --- os_freebsd.cpp.orig 2008-03-05 00:09:47.0 +0200
AG +++ os_freebsd.cpp  2009-07-27 14:02:38.948144118 +0300
AG @@ -341,6 +340,15 @@
AG  request.count=512;
AG  copydata=1;
AG  break;
AG +  case WRITE_LOG:
AG +memcpy(buff, data, 512);
AG +request.u.ata.feature=ATA_SMART_WRITE_LOG_SECTOR;
AG +request.u.ata.lba=select|(0xc24f8);
AG +request.u.ata.count=1;
AG +request.flags=ATA_CMD_WRITE;
AG +request.data=(char *)buff;
AG +request.count=512;
AG +break;
AGcase IDENTIFY:
AG  request.u.ata.command=ATA_IDENTIFY_DEVICE;
AG  request.flags=ATA_CMD_READ;

Thank you, PR 137177 created.

-- 
Sincerely,
D.Marck[DM5020, MCK-RIPE, DM3-RIPN]
---
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@freebsd.org ***
---
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


smartctl: Unrecognized command 13

2009-07-25 Thread Andriy Gapon

This is stable/7 i386:

$ smartctl -t select,568157535-568159000 /dev/ad10
...
Unrecognized command 13 in ata_command_interface()
Please contact smartmontools-supp...@lists.sourceforge.net
Error Write Selective Self-Test Log failed: Function not implemented

In smartmontools sources this is command WRITE_LOG.
Is this something that can be patched in smartmontools or does it require
additional support from ata driver?

-- 
Andriy Gapon
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org