#include <arpa/inet.h>#include <signal.h>#include <sys/stat.h>#include <sys/types.h>#include <atalk/globals.h>#include <atalk/cnid.h>#include <atalk/compat.h>#include <atalk/volume.h>Go to the source code of this file.
Data Structures | |
| struct | afpvol_t |
| struct | PATH_T |
Macros | |
| #define | DIR_DOT_OR_DOTDOT(a) |
| #define | TIMESPEC_TO_TIMEVAL(tv, ts) |
| #define | ADVOL_V2_OR_EA(ad) |
| #define | SLOG(...) |
| #define | ERROR(...) |
Enumerations | |
| enum | logtype { STD , DBG } |
Functions | |
| void | _log (enum logtype lt, char *fmt,...) |
| int | ad_ls (int argc, char **argv, AFPObj *obj) |
| int | ad_cp (int argc, char **argv, AFPObj *obj) |
| int | ad_rm (int argc, char **argv, AFPObj *obj) |
| int | ad_mv (int argc, char **argv, AFPObj *obj) |
| int | ad_set (int argc, char **argv, AFPObj *obj) |
| int | ad_find (int argc, char **argv, AFPObj *obj) |
| int | openvol (AFPObj *obj, const char *path, afpvol_t *vol) |
| Load volinfo and initialize struct vol. | |
| void | closevol (afpvol_t *vol) |
| cnid_t | cnid_for_paths_parent (const afpvol_t *vol, const char *path, cnid_t *did) |
| Resolves CNID of a given paths parent directory. | |
| char * | utompath (const struct vol *, const char *) |
| int | convert_dots_encoding (const afpvol_t *svol, const afpvol_t *dvol, char *path) |
| Convert dot encoding of basename in place. | |
Variables | |
| int | log_verbose |
| int | fflag |
| int | iflag |
| int | lflag |
| int | nflag |
| int | pflag |
| int | vflag |
| #define ADVOL_V2_OR_EA | ( | ad | ) |
| #define DIR_DOT_OR_DOTDOT | ( | a | ) |
| #define ERROR | ( | ... | ) |
| #define SLOG | ( | ... | ) |
| #define TIMESPEC_TO_TIMEVAL | ( | tv, | |
| ts ) |
| enum logtype |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Resolves CNID of a given paths parent directory.
path might be: (a) relative: "dir/subdir" with cwd: "/afp_volume/topdir" (b) absolute: "/afp_volume/dir/subdir"
path MUST be pointing inside vol, this is usually the case as vol has been build from path using loadvolinfo and friends.
| [in] | vol | pointer to afpvol_t |
| [in] | path | path, see above |
| [in,out] | did | parent CNID of returned CNID |
Convert dot encoding of basename in place.
path arg can be "[/][dir/ | ...]filename". It will be converted in place possible encoding ".file" as ":2efile" which means the result will be longer then the original which means provide a big enough buffer.
| [in] | svol | source volume |
| [in] | dvol | destination volume |
| [in,out] | path | path to convert in place |
Load volinfo and initialize struct vol.
| [in] | obj | AFPObj of the current connection |
| [in] | path | path to evaluate |
| [in,out] | vol | structure to initialize |
|
extern |
|
extern |
| int iflag |
| int lflag |
|
extern |
Logging flag
| int nflag |
| int pflag |
| int vflag |