Documentation ¶
Overview ¶
Package stat contains the structures describing request and response for stat request. See xrootd protocol specification (http://xrootd.org/doc/dev45/XRdv310.pdf, p. 113) for details.
Index ¶
Constants ¶
const RequestID uint16 = 3017
RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details: http://xrootd.org/doc/dev45/XRdv310.pdf, 2.3 Client Request Format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultResponse ¶
DefaultResponse is a response for the stat request which contains stat information such as: the OS-dependent identifier, the size of the data, the entry attributes and the modification time.
func (*DefaultResponse) RespID ¶
func (resp *DefaultResponse) RespID() uint16
RespID implements xrdproto.Response.RespID.
type Options ¶
type Options uint8
Options are stat processing options.
const (
OptionsVFS Options = 1 // OptionsVFS indicates that virtual file system information is requested.
)
type Request ¶
type Request struct { Options Options FileHandle xrdfs.FileHandle Path string // contains filtered or unexported fields }
Request holds open request parameters.
func (Request) MarshalXrd ¶
MarshalXrd implements xrdproto.Marshaler.
func (*Request) ShouldSign ¶
ShouldSign implements xrdproto.Request.ShouldSign.
type VirtualFSResponse ¶
type VirtualFSResponse struct {
xrdfs.VirtualFSStat
}
VirtualFSResponse is a response for the stat request which contains virtual file system stat information such as: nrw - the number of nodes that can provide read/write access, frw - the size of the largest contiguous area of r/w free space, urw - the percent utilization of the partition represented by frw, nstg - the number of nodes that can provide staging access, fstg - the size of the largest contiguous area of staging free space, ustg - the percent utilization of the partition represebted by fstg,
func (*VirtualFSResponse) RespID ¶
func (resp *VirtualFSResponse) RespID() uint16
RespID implements xrdproto.Response.RespID.