netatalk  4.6.1
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
subtests_pfd.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <atalk/cnid.h>
#include <atalk/directory.h>
#include <atalk/logger.h>
#include <atalk/util.h>
#include <atalk/volume.h>
#include "afpfunc_helpers.h"
#include "dircache.h"
#include "directory.h"
#include "pfd_cache.h"
#include "subtests_pfd.h"
#include "test.h"
#include "volume.h"

Functions

static int st_fields_equal (const struct stat *a, const struct stat *b)
 
static int equiv_check (const struct vol *vol, struct dir *entry, const char *label)
 
static struct dir * make_tree (struct vol *vol, const char *dname, const char *fname, cnid_t ddid, cnid_t fdid, struct dir **file_out)
 
static void unmake_tree (struct vol *vol, const char *dname, const char *fname)
 
int test_pfd_ostat_equivalence (struct vol *vol)
 
int test_pfd_rename_repairs_child_path (struct vol *vol)
 
int test_pfd_vol_close_purges_slots (AFPObj *obj, struct vol *vol)
 
int test_pfd_probe_rename_detection (struct vol *vol)
 

Function Documentation

◆ equiv_check()

static int equiv_check ( const struct vol *  vol,
struct dir *  entry,
const char *  label 
)
static

◆ make_tree()

static struct dir * make_tree ( struct vol *  vol,
const char *  dname,
const char *  fname,
cnid_t  ddid,
cnid_t  fdid,
struct dir **  file_out 
)
static

◆ st_fields_equal()

static int st_fields_equal ( const struct stat *  a,
const struct stat *  b 
)
static

◆ test_pfd_ostat_equivalence()

int test_pfd_ostat_equivalence ( struct vol *  vol)

◆ test_pfd_probe_rename_detection()

int test_pfd_probe_rename_detection ( struct vol *  vol)

◆ test_pfd_rename_repairs_child_path()

int test_pfd_rename_repairs_child_path ( struct vol *  vol)

◆ test_pfd_vol_close_purges_slots()

int test_pfd_vol_close_purges_slots ( AFPObj *  obj,
struct vol *  vol 
)

◆ unmake_tree()

static void unmake_tree ( struct vol *  vol,
const char *  dname,
const char *  fname 
)
static