#include <arpa/inet.h>#include <errno.h>#include <fcntl.h>#include <libgen.h>#include <limits.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/param.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>#include <bstrlib.h>#include <atalk/cnid.h>#include <atalk/errchk.h>#include <atalk/logger.h>#include <atalk/unicode.h>#include <atalk/util.h>Functions | |
| bstring | rel_path_in_vol (const char *path, const char *volpath) |
| Build path relative to volume root. | |
| cnid_t | cnid_for_path (struct _cnid_db *cdb, const char *volpath, const char *path, cnid_t *did) |
| Resolves CNID of a given path. | |
| char * | uuid_strip_dashes (const char *uuid) |
| cnid_t cnid_for_path | ( | struct _cnid_db * | cdb, |
| const char * | volpath, | ||
| const char * | path, | ||
| cnid_t * | did ) |
Resolves CNID of a given path.
path might be:
path MUST be pointing inside vol, this is usually the case as vol has been build from path using loadvolinfo and friends.
| [in] | cdb | CNID db handle |
| [in] | volpath | UNIX path of volume |
| [in] | path | path, see above |
| [out] | did | parent CNID of returned CNID |
| bstring rel_path_in_vol | ( | const char * | path, |
| const char * | volpath ) |
Build path relative to volume root.
path might be:
| [in] | path | path relative to cwd() or absolute |
| [in] | volpath | volume path that path is a subdir of (has been computed in volinfo funcs) |
| char * uuid_strip_dashes | ( | const char * | uuid | ) |
Return allocated UUID string with dashes stripped