Print

Print


The [specs](http://xrootd.org/doc/dev45/XRdv310.htm#_Toc464248823) for `kXR_open` say:
>cpsize   is the compression page size. The cpsize field is returned when the kXR_compress or kXR_retstat have been specified. Subsequent reads must be equal to this value and read offsets must be an integral multiple of this value. If cpsize is zero, the file is not compressed and subsequent reads may use any offset and read length.
>cptype  is the compression algorithm used to compress the file. The cptype field is returned when the kXR_compress or kXR_retstat have been specified. If the file is not compressed, the first byte of the four byte field is a null byte (\0).

However, if I specify only `kXR_compress` without `kXR_retstat`, then `cpsize` and `cptype` are not specified when the file is not compressed.

Expected response  (`streamid` = 2, `resplen` = 12, `fhandle` = 0, `cpsize` and `cptype` are specified and equals to 0 and '\0'):
```
0002 0000 0000 000C 0000 0000 0000 0000 0000 0000
```

Actual response (`streamid` = 2, `resplen` = 4, `fhandle` = 0, `cpsize` and `cptype` are not specified):
```
0002 0000 0000 0004 0000 0000
```

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

########################################################################
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