From: Eduard M. <mar...@ro...> - 2004-10-20 06:10:57
|
Ciro, I'm at a loss. Just to make sure, I just rebuilt the package from scratch and tried it out. I was able to checkout '/dev/ad0' without any problem. If you want, I can email you the tar file of my source, but it is a just a clean checkout of current CVS code. Also, I don't think that patch you indicate below is necessary with the CVS version of smartmontools, as I don't need to apply it to build, but I don't think that should cause any issues. You should be able to test out the executable directly from where you built it as './smartctl -a /dev/ad0' If that works, then the only thing I can think up is something going wrong when you copied it. Ed On Tue, 2004-10-19 at 10:03, Ciro Scognamiglio wrote: > uh...I have got a strange thing here... > Yesterday I built the cvs version of smartmontools and moved the smartctl > and smartd executables over the old files (the two built from the > current FreeBSD port)... > > They seemed to work but noticed that neither the long test nor the > offline test produced any change even though they seemed to start > correctly. > > Now that I rebooted (and didn't touch anything else) I get the following > with smartctl, wathever command I use: > > moray@linc [~] jobs 0 on ttyp0> smartctl -a /dev/ad0 > smartctl version 5.34 [i386-unknown-freebsd5.3] Copyright (C) 2002-4 > Bruce Allen > Home page is http://smartmontools.sourceforge.net/ > > Smartctl open device: /dev/ad0 failed: Inappropriate ioctl for device > > what's wrong? > > the smartd still have the same behavior, i.e. it produces the: > > Oct 19 15:43:23 linc smartd[582]: Device: /dev/ad0, 2 Offline > uncorrectable sectors > > in /var/log messages (and send me an email)... > > I had a look at the freebsd port patch and noticed that it only applys > the following change (that I applyed manually to the cvs version): > > --- os_freebsd.c.orig Sat Mar 13 11:32:52 2004 > +++ os_freebsd.c Thu Jul 15 23:42:06 2004 > @@ -18,6 +18,7 @@ > #include <stdio.h> > #include <sys/types.h> > #include <dirent.h> > +#include <fcntl.h> > #include <err.h> > #include <camlib.h> > #include <cam/scsi/scsi_message.h> > > C. > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Smartmontools-support mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartmontools-support -- Eduard Martinescu <mar...@ro...> |