[prev in list] [next in list] [prev in thread] [next in thread]
List: ext3-users
Subject: spd_readdir.c and readdir_r
From: Ross Boylan <ross () biostat ! ucsf ! edu>
Date: 2008-06-08 5:30:38
Message-ID: 1212903039.7158.31.camel () corn ! betterworld ! us
[Download RAW message or body]
I still haven't been able to pinpoint exactly where bacula hangs up when
LD_PRELOAD is set to use spd_readdir, but I have a suspect. bacula-fd
gets directory entries with readdir_r, which is a function that is not
reimplemented in spd_readdir.
So when bacula calls opendir it gets the shadow version, which calls the
original open, read, and closedir functions. It then returns its
private dir_s structure. The (unshadowed) readdir_r then tries to work
with dir_s.
It looks as if I (or one of you gurus?) need to implement a wrapper for
readdir_r. A quick looks suggests there may be a couple of subtleties
(the spd_readdir struct dir_s is allocated, and so thread safe, but it's
dir entry is not; and readdir_r is expecting some "real" system data
structures back and users may have problems with fake ones).
Ross
_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic