#include <signal.h>#include <stdarg.h>#include "afpclient.h"#include "afphelper.h"#include "afpcmd.h"#include "testhelper.h"Functions | |
| void | illegal_fork (DSI *dsi, char cmd, char *name) |
| int | get_did (CONN *conn, uint16_t vol, int dir, char *name) |
| int | get_fid (CONN *conn, uint16_t vol, int dir, char *name) |
| uint32_t | get_forklen (DSI *dsi, int type) |
| void | write_fork (CONN *conn, uint16_t vol, int dir, char *name, char *txt) |
| void | read_fork (CONN *conn, uint16_t vol, int dir, char *name, int len) |
| int | no_access_folder (uint16_t vol, int did, char *name) |
| Use the second user for creating a folder with no access right. | |
| int | group_folder (uint16_t vol, int did, char *name) |
| int | read_only_folder (uint16_t vol, int did, char *name) |
| Use the second user for creating a folder with read only access right. | |
| int | read_only_folder_with_file (uint16_t vol, int did, char *name, char *file) |
| Use the second user for creating a folder with read only access right. | |
| int | delete_folder (uint16_t vol, int did, char *name) |
| int | delete_folder_with_file (uint16_t vol, int did, char *name, char *file) |
| int | get_vol_attrib (uint16_t vol) |
| unsigned int | get_vol_free (uint16_t vol) |
| int | not_valid (unsigned int ret, int mac_error, int netatalk_error) |
| static int | error_in_list (unsigned int bitmap, unsigned int error) |
| static char * | bitmap2text (unsigned int bitmap) |
| int | not_valid_bitmap (unsigned int ret, unsigned int bitmap, int netatalk_error) |
| static void | afp_print_prefix (int level, int color) |
| static void | afp_print_postfix (int level, int color) |
| void | afp_printf (int level, int loglevel, int color, const char *fmt,...) |
| int32_t | is_there (CONN *conn, uint16_t volume, int32_t did, char *name) |
| int | delete_directory_tree (CONN *conn, uint16_t volume, uint32_t parent_did, char *dirname) |
| depth-first recursively delete a directory tree | |
| void | clear_volume (uint16_t vol, CONN *conn) |
Variables | |
| int | Loglevel = AFP_LOG_INFO |
|
static |
|
static |
| void afp_printf | ( | int | level, |
| int | loglevel, | ||
| int | color, | ||
| const char * | fmt, | ||
| ... ) |
|
static |
| void clear_volume | ( | uint16_t | vol, |
| CONN * | conn ) |
| int delete_directory_tree | ( | CONN * | conn, |
| uint16_t | volume, | ||
| uint32_t | parent_did, | ||
| char * | dirname ) |
depth-first recursively delete a directory tree
Algorithm:
| conn | AFP connection |
| volume | Volume ID |
| parent_did | Parent directory ID |
| dirname | Directory name to delete |
| int delete_folder | ( | uint16_t | vol, |
| int | did, | ||
| char * | name ) |
| int delete_folder_with_file | ( | uint16_t | vol, |
| int | did, | ||
| char * | name, | ||
| char * | file ) |
|
static |
| int get_did | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | dir, | ||
| char * | name ) |
| int get_fid | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | dir, | ||
| char * | name ) |
| uint32_t get_forklen | ( | DSI * | dsi, |
| int | type ) |
| int get_vol_attrib | ( | uint16_t | vol | ) |
| unsigned int get_vol_free | ( | uint16_t | vol | ) |
| int group_folder | ( | uint16_t | vol, |
| int | did, | ||
| char * | name ) |
| void illegal_fork | ( | DSI * | dsi, |
| char | cmd, | ||
| char * | name ) |
| int32_t is_there | ( | CONN * | conn, |
| uint16_t | volume, | ||
| int32_t | did, | ||
| char * | name ) |
| int no_access_folder | ( | uint16_t | vol, |
| int | did, | ||
| char * | name ) |
Use the second user for creating a folder with no access right.
| int not_valid | ( | unsigned int | ret, |
| int | mac_error, | ||
| int | netatalk_error ) |
| int not_valid_bitmap | ( | unsigned int | ret, |
| unsigned int | bitmap, | ||
| int | netatalk_error ) |
| void read_fork | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | dir, | ||
| char * | name, | ||
| int | len ) |
| int read_only_folder | ( | uint16_t | vol, |
| int | did, | ||
| char * | name ) |
Use the second user for creating a folder with read only access right.
| int read_only_folder_with_file | ( | uint16_t | vol, |
| int | did, | ||
| char * | name, | ||
| char * | file ) |
Use the second user for creating a folder with read only access right.
| void write_fork | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | dir, | ||
| char * | name, | ||
| char * | txt ) |
| int Loglevel = AFP_LOG_INFO |