Print

Print


The Offline and BackUpExists status can be signal in the 'st_rdev' element of the 'struct stat' structure that the server fills to return information about a file. I'm not certain where to suggest you fill this, the easiest place could depend on your configuration and particularly if you're customising xrootd, e.g. with plugins.

I did just see your earlier question on the cta-dev list, so I'm making some assumptions about your configuration: I believe you may be using the standard Ofs & Oss (i.e. mostly standard xrootd server), on top of GPFS as the filesystem, and probably using a custom 'preplib'? - in that case I believe you could additionally use a 'statlib':

There is some information about configuring a "statlib" here: https://xrootd.slac.stanford.edu/doc/dev56/ofs_config.htm (section 5.9).

To signal Offline or BackUpExists one has to set st_rdev to 0 (strictly speaking XRDSFS_RDVMASK bits have to be 0), and then set XRDSFS_OFFLINE (to indicate offline) or XRDSFS_HASBKUP (to indicate BackUpExists). 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1837#issuecomment-1330944643
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1