netatalk
4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
Loading...
Searching...
No Matches
pfd_cache.h
Go to the documentation of this file.
1
/* Parent-directory fd cache — module and threading contract documented in
2
* pfd_cache.c */
3
4
#ifndef AFPD_PFD_CACHE_H
5
#define AFPD_PFD_CACHE_H 1
6
7
#include <sys/stat.h>
8
9
#include <
atalk/directory.h
>
10
11
#include "
volume.h
"
12
13
/* One absolute re-ground probe per this many uses of a slot — the
14
* ground-truth bound on rename-away staleness (unit tests assert on it) */
15
#define PFD_REGROUND_INTERVAL 256
16
17
struct
pfd_stats
{
18
unsigned
long
long
hits
;
19
unsigned
long
long
opens
;
20
unsigned
long
long
21
sync_refreshes
;
22
unsigned
long
long
probe_refreshes
;
23
unsigned
long
long
regrounds
;
24
unsigned
long
long
fallbacks
;
25
unsigned
long
long
purges
;
26
unsigned
long
long
path_repairs
;
27
};
28
29
extern
int
pfd_ostat
(
const
struct
vol
*
vol
,
struct
dir
*
entry
,
30
struct
stat *st,
int
options);
31
extern
void
pfd_purge
(uint16_t vid,
cnid_t
did
);
32
extern
void
pfd_purge_vol
(uint16_t vid);
33
extern
void
pfd_shutdown
(
void
);
34
extern
void
pfd_log_stats
(
void
);
35
extern
void
pfd_stats_get
(
struct
pfd_stats
*out);
36
37
#endif
/* AFPD_PFD_CACHE_H */
cnid_t
uint32_t cnid_t
Definition
adouble.h:157
volume.h
directory.h
did
cnid_t did
Definition
nad_cp.c:92
pfd_shutdown
void pfd_shutdown(void)
Definition
pfd_cache.c:360
pfd_purge_vol
void pfd_purge_vol(uint16_t vid)
Definition
pfd_cache.c:346
pfd_log_stats
void pfd_log_stats(void)
Definition
pfd_cache.c:376
pfd_purge
void pfd_purge(uint16_t vid, cnid_t did)
Definition
pfd_cache.c:330
pfd_stats_get
void pfd_stats_get(struct pfd_stats *out)
Definition
pfd_cache.c:371
pfd_ostat
int pfd_ostat(const struct vol *vol, struct dir *entry, struct stat *st, int options)
ostat(cfrombstr(entry->d_fullpath), st, options), accelerated.
Definition
pfd_cache.c:288
dir
Definition
include/atalk/directory.h:72
entry
Definition
ad_open.c:96
pfd_stats
Definition
pfd_cache.h:17
pfd_stats::sync_refreshes
unsigned long long sync_refreshes
Definition
pfd_cache.h:21
pfd_stats::path_repairs
unsigned long long path_repairs
Definition
pfd_cache.h:26
pfd_stats::fallbacks
unsigned long long fallbacks
Definition
pfd_cache.h:24
pfd_stats::purges
unsigned long long purges
Definition
pfd_cache.h:25
pfd_stats::hits
unsigned long long hits
Definition
pfd_cache.h:18
pfd_stats::opens
unsigned long long opens
Definition
pfd_cache.h:19
pfd_stats::regrounds
unsigned long long regrounds
Definition
pfd_cache.h:23
pfd_stats::probe_refreshes
unsigned long long probe_refreshes
Definition
pfd_cache.h:22
vol
Definition
include/atalk/volume.h:33
etc
afpd
pfd_cache.h
Generated by
1.18.0