Small problem with configfile dirs on XFS on Linux

Ethan Galstad nagios at nagios.org
Fri May 21 00:01:40 CEST 2004


Thanks - this will be in CVS tonight.


On 11 May 2004 at 21:15, Marco van Wieringen wrote:

> Hi,
> 
> I was having some interesting problems today with one
> of the latest CVS snapshot running on a Linux system with
> XFS filesystems. The code in xodtemplate.c find out that
> Linux supports Linux has _DIRENT_HAVE_D_TYPE but on XFS
> the d_type is set to DT_UNKNOWN which means one should use
> stat to figure out what type of file it really is. After
> finding out this frustrating bug I went out and did a
> quick and dirty patch. Attached is the patch which works
> around the DT_UNKNOWN value and fixed my problems on XFS
> filesystems with configfile directories.
> 
> Marco van Wieringen
> ELM Consultancy B.V.
> 
> 
> 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click




More information about the Developers mailing list