Main Page | Data Structures | File List | Data Fields | Globals

lcg_sdel.c File Reference

secure delete API source file More...

#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <dlfcn.h>
#include <ctype.h>
#include <gfal_api.h>
#include "lcg_util.h"
#include "ss-util.h"
#include "lcg_sdel.h"
#include "keystore_client.h"

Go to the source code of this file.

Functions

int lcg_sdel (char *src_file, int aflag, char *se, char *vo, char *conf_file, int insecure, int verbose, int timeout)
 secure delete


Detailed Description

secure delete API source file

Author:
Giordano Scuderi
Date:
2007

Definition in file lcg_sdel.c.


Function Documentation

int lcg_sdel char *  src_file,
int  aflag,
char *  se,
char *  vo,
char *  conf_file,
int  insecure,
int  verbose,
int  timeout
 

secure delete

delete a grid file and associated KEY if necessary.

Author:
Giordano Scuderi
Parameters:
src_file Input LFN.
aflag If specified all replica's and KEY will be deleted.
se Specify Storage Element that contain a replica to delete; (if -a doesn't specified). if NULL it use VO_<vo>_DEFAULT_SE environment variable.
vo Virtual Organization; if NULL it use LCG_GFAL_VO environment varianble.
conf_file Actually ignored.
insecure Actually ignored.
verbose if 1 output is more verbose.
timeout 
Returns:
0 if success or < 0 if fail in this case errno is set appropriately.

Definition at line 98 of file lcg_sdel.c.

References accept_host, accept_lfn, accept_vo, errno, insecure, LCG_MAXPATHLEN, ss_check_lfn(), ss_delete_key(), SS_EINVALLFN, SS_EINVALSE, SS_EINVALVO, SS_ENOENT, SS_ESOURCENAMETOOLONG, ss_get_lfchome(), and verbose.

Referenced by main().


Generated on Wed May 30 09:56:31 2007 for Secure Storage Service by doxygen 1.3.5