* Arno Lehmann schrieb am 17.09.07 um 01:03 Uhr:
> Hi,
>
> 16.09.2007 23:46,, Marc Schiffbauer wrote::
> ...
> > Bingo!
> >
> > I just commented out the "#define HAV_POSIX_FADVISE" line, recompiled...
> > No more crashes.
> >
> > May this behavior depend on the kernel? The server running bacula is
> > a debian sarge system, but it is running an older kernel (2.4.20)
> > than what is in sarge because of a special kernel-module.
> >
> > So my question is: is posix_fadvise() in sarge bad or is it my
> > combination of sarge supporting it and that kernel 2.4.20 maybe not
> > supporting it?
>
> I think your kernel is too old: The following is from the
> posix_fadvise(2) on my linux system:
>
> Linux 2.5.60 14 Feb 2003
>
> So, to me this seems to indicate that posix_fadvise was introduced
> into the linux kernel 2.5. Older kernels won't support it, which you
> seem to experience.
Thanks Arno. So the question is if it is possible to detect the
availability of that call at runtime and only use it if thats the
case instead of crashing...
Or it should be clarified that bacula does not run on 2.4 kernels
anymore?
But I guess there are many 2.4 kernels still out there, so that
would not be a good solution IMO...
-Marc
--
BUGS My programs never have bugs. They just develop random
features. If you discover such a feature and you want it to
be removed: please send an email
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel