.\" @(#)$RCSfile: lfc_setrtype.man,v $ $Revision: 1.1 $ $Date: 2006/07/14 14:10:08 $ CERN IT-GD/ITR Jean-Philippe Baud .\" Copyright (C) 2006 by CERN/IT/GD/ITR .\" All rights reserved .\" .TH LFC_SETRTYPE 3 "$Date: 2006/07/14 14:10:08 $" LFC "LFC Library Functions" .SH NAME lfc_setrtype \- set replica type .SH SYNOPSIS .B #include .br \fB#include "lfc_api.h"\fR .sp .BI "int lfc_setrtype (const char *" sfn , .BI "const char " type ) .SH DESCRIPTION .B lfc_setrtype sets the replica type. .TP .I sfn is the Physical File Name for the replica. .TP .I type specifies the new type. Valid types are: .RS .TP .B V replica is volatile. .TP .B D replica is durable. .TP .B P replica is permanent. .RE .SH RETURN VALUE This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, .B serrno is set appropriately. .SH ERRORS .TP 1.3i .B ENOENT The named replica does not exist. .TP .B EACCES Search permission is denied on a component of the file prefix or the caller effective user ID does not match the owner ID of the file or write permission on the file itself is denied. .TP .B EFAULT .I sfn is a NULL pointer. .TP .B ENAMETOOLONG The length of .I sfn exceeds .BR CA_MAXSFNLEN . .TP .B SENOSHOST Host unknown. .TP .B SENOSSERV Service unknown. .TP .B SECOMERR Communication error. .TP .B ENSNACT Name server is not running or is being shutdown. .SH SEE ALSO .BR Castor_limits(4) , .B lfc_listreplica(3)