OS/2, eCS & ArcaOS - Technical > Programming

OS2AHCI interface?

<< < (2/8) > >>

Pete:
Hi All


--- Quote from: ivan on April 13, 2020, 04:31:57 pm ---Hi Dariusz,

It sounds as if you are looking at that which I was looking for way back last year - some way to get smartctl.exe from smartmontools to display the output of smartctl -a ahci1 without having to pipe it to a file and then read that file, in other words just like smartmon from Dani's IDE driver package.

No one came up with a way of doing that when I asked so maybe you could produce the necessary graphical interface needed.

--- End quote ---


It is funny you should mention that as I started playing around with something I call PMsmartctl as a result of your post.

It is a simple frontend for smartctl and displays selected information in the Text Editor (e.exe) which gives you the option of Saving and Printing - with minimal work by me  :-)

NOTE:  Only works with http://hobbes.nmsu.edu/download/pub/os2/util/disk/smartmontools-6.6-r4424.zip

If anyone feels like testing and reporting - along with suggestions for improvement - I attach PMsmartctl_Beta_0_1.zip


Regards

Pete


David Graser:
Hi Pete

Works great.

Dariusz Piatkowski:
Hey you guys!

Awesome conversation.

So let me shed a bit more light on what I had in mind. Way waaaayyy back when, I was heavily using the HPFS386 fs, I wrote some small stuff that basically allowed me to pull a bunch of cache details. I basically wanted to learn more about the fs internals and wasn't happy with the 'cache386 /stats:d' output.

Now fast fwd a bit and currently I'm using JFS, but I've moved on to the OS2AHCI driver, v2.07.

This means that any previous disk monitoring utilities that relied on DANIS506$ to be present are no longer working.

I currently use smartmontools RPM package, which works quite fine and supports both IDE and AHCI devices:


--- Code: ---Name        : smartmontools
Arch        : pentium4
Epoch       : 1
Version     : 7.0
Release     : 1.oc00
Size        : 1.0 M
Repo        : installed

--- End code ---

So from that perspective I will stick with this and won't be going back to the smartmontools-6.6-r4424.zip release.

However, to convert the PMDskMon utility to AHCI mode I need to understand what needs to be changed from the current DANIS506 interface. I wish I could find where the source for the RPM release of smartmontools is, because that clearly has a working AHCI interface. But given the lack of this information I'm taking a stab at removing all S.M.A.R.T. data collection functionality from the PMDskMon utility itself first to see if simply re-pointing it to OS2AHCI$ might work.

If this fails my next step is to look at the Netlabs project page for OS2AHCI which can be found here => http://trac.netlabs.org/ahci, I will do a SVN source pull and will take a look at the driver details (for what it's worth, as I expect much of this to be over my head lol).

Eventually I'd like to actually write a new utility that really exposes all the pertinent details a storage device has. There are numerous such non-OS/2 utilities out there, so some good interfaces to pick from. More importantly I would like this to also have some of the fs specific stuff in there, so things that pertain to JFS cache for example, etc. This is a very long-term plan though, so I'm happy to see that we already have some alternatives created by our very own!!!  ;)

Dave Yeo:
The source is here, http://rpm.netlabs.org/experimental/00/i386/SRPMS/smartmontools-7.0-1.oc00.src.rpm

Pete:
Hi All

I have just quickly tested the smartmontools-7_0-1 package (from http://rpm.netlabs.org/experimental/00/zip/smartmontools-7_0-1_oc00.zip) and, so far, it seems that PMsmartctl is happy to use that release.


Regards

Pete

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version