DPM_ACCESSR(3) | DPM Library Functions | DPM_ACCESSR(3) |
dpm_accessr - check existence/accessibility of a file replica in the pools
#include <sys/types.h>
#include <unistd.h>
#include "dpm_api.h"
int dpm_accessr (const char *pfn, int amode);
dpm_accessr checks the existence or the accessibility of the file replica according to the dpm. The name server entry for the replica is taken into account and that of the associated pool and, if relevant, the status of an ongoing put request. The physical file name pfn is checked according to the bit pattern in amode
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
$Date: 2013/06/12 14:00:00 $ | WLCG |