For Applications like xrdcp or FUSE mounts it would be very beneficial to have an API like

  XRootDStatus Read( uint64_t         offset,
                     uint32_t         size,
                     int                  output_fd, 
                     uint64_t         output_offset,
                     ResponseHandler *handler,
                     uint16_t         timeout = 0 )
                     XRD_WARN_UNUSED_RESULT;

  XRootDStatus Write( uint64_t         offset,
                      uint32_t         size,
                      int                  input_fd, 
                      uint64_t         input_offset,
                      ResponseHandler *handler,
                      uint16_t         timeout = 0 )
                      XRD_WARN_UNUSED_RESULT;

This would allow to simplify the buffer management in particular with asynchronous callsbacks and avoids memory copy operations using splicing.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1117?email_source=notifications\u0026email_token=AA7NRDUATOXTTLNPJBU3C33Q6F5KRA5CNFSM4KIFSSQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IG4LJGA", "url": "https://github.com/xrootd/xrootd/issues/1117?email_source=notifications\u0026email_token=AA7NRDUATOXTTLNPJBU3C33Q6F5KRA5CNFSM4KIFSSQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IG4LJGA", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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