func (f file) StatVirtualFS(ctx context.Context) (xrdfs.VirtualFSStat, error) {
	var resp stat.VirtualFSResponse
	newSessionID, err := f.fs.c.sendSession(ctx, f.sessionID, &resp, &stat.Request{FileHandle: f.handle, Options: stat.OptionsVFS})
	if err != nil {
		return xrdfs.VirtualFSStat{}, err
	}
	f.sessionID = newSessionID
	return resp.VirtualFSStat, nil
}
// StatVirtualFS fetches the virtual fs stat info from the XRootD server.
// TODO: note that calling stat with vfs and handle may be invalid.
// See https://github.com/xrootd/xrootd/issues/728 for the details.
StatVirtualFS fetches the virtual fs stat info from the XRootD server.
TODO: note that calling stat with vfs and handle may be invalid.
// StatVirtualFS fetches the virtual fs stat info from the XRootD server . // TODO : note that calling stat with vfs and handle may be invalid . // See https : // github . com / xrootd / xrootd / issues / 728 for the details .
func (f file) StatVirtualFS(ctx context.Context) (xrdfs.VirtualFSStat, error) {
	var resp stat.VirtualFSResponse
	newSessionID, err := f.fs.c.sendSession(ctx, f.sessionID, &resp, &stat.Request{FileHandle: f.handle, Options: stat.OptionsVFS})
	if err != nil {
		return xrdfs.VirtualFSStat{}, err
	}
	f.sessionID = newSessionID
	return resp.VirtualFSStat, nil
}
func ( f file ) StatVirtualFS ( ctx context . Context ) ( xrdfs . VirtualFSStat , error ) { var resp stat . VirtualFSResponse newSessionID , err := f . fs . c . sendSession ( ctx , f . sessionID , & resp , & stat . Request { FileHandle : f . handle , Options : stat . OptionsVFS } ) if err != nil { return xrdfs . VirtualFSStat { } , err } f . sessionID = newSessionID return resp . VirtualFSStat , nil }
StatVirtualFS fetches the virtual fs stat info from the XRootD server.
StatVirtualFS fetches the virtual fs stat info from the XRootD server .