On 05/27/2011 08:28 AM, John Doe wrote:
From: Steve Clark <sclark@netwolves.com>
On 05/27/2011 05:29 AM, John Doe wrote: 
Test = https://sites.google.com/site/lightrush/random-1/checkiftrimonext4isenabledandworking Tested on Fedora (15) and it worked.
Hmmm.... How do you determine whether TRIM worked or not? 

    
Thanks,

Unfortunately when I try it on SL 6.0 hdparm gets a segment violation on the --read-sector command.
hdparm-9.16-3.4.el6.i686
[root@Z764041 ~]# hdparm --fibmap tempfile

tempfile: underlying filesystem: blocksize 4096, begins at LBA 1600008; assuming 512 byte sectors
 byte_offset  begin_LBA    end_LBA    sectors
           0    4495880    4496903       1024
      524288    4554248    4557319       3072
     2097152    4524552    4536839      12288
     8388608    4565512    4651527      86016
[root@Z764041 ~]# hdparm --read-sector 4495880 /dev/sda

/dev/sda:
Segmentation fault


--
Stephen Clark
NetWolves
Sr. Software Engineer III
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark@netwolves.com
http://www.netwolves.com