X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=include%2Fatalk%2Fvolume.h;h=2d8019283bd0760f71fcb9ade7032b114182e4ad;hb=b0bcb8f6b0571592a50ce039882c9319e012a270;hp=da367964c389f0cc98033b26be16b966fc2299d5;hpb=313b5f94348618d65523c1d8bde1fba9988f040a;p=netatalk.git diff --git a/include/atalk/volume.h b/include/atalk/volume.h index da367964..2d801928 100644 --- a/include/atalk/volume.h +++ b/include/atalk/volume.h @@ -61,7 +61,9 @@ struct vol { char *v_gvs; void *v_nfsclient; int v_nfs; - + uintmax_t v_tm_used; /* used bytes on a TM volume */ + uintmax_t v_written; /* amount of data written in afp_write, reset every time a FCE_TM_SIZE event is sent */ + /* only when opening/closing volumes or in error */ int v_casefold; char *v_localname; /* as defined in AppleVolumes.default */ @@ -127,10 +129,7 @@ struct vol { #define AFPVOL_TM (1 << 23) /* Supports TimeMachine */ #define AFPVOL_ACLS (1 << 24) /* Volume supports ACLS */ #define AFPVOL_SEARCHDB (1 << 25) /* Use fast CNID db search instead of filesystem */ -/* Found this in branch dir-rewrite, maybe we want to use it sometimes */ -#if 0 -#define AFPVOL_CDROM (1 << XX) /* Ejectable media eg CD -> in memory CNID db */ -#endif +#define AFPVOL_NONETIDS (1 << 26) /* signal the client it shall do privelege mapping */ /* Extended Attributes vfs indirection */ #define AFPVOL_EA_NONE 0 /* No EAs */ @@ -169,7 +168,7 @@ int wincheck(const struct vol *vol, const char *path); #define VOLPBIT_ATTR_BLANKACCESS (1 << 4) #define VOLPBIT_ATTR_UNIXPRIV (1 << 5) #define VOLPBIT_ATTR_UTF8 (1 << 6) -#define VOLPBIT_ATTR_NONETUID (1 << 7) +#define VOLPBIT_ATTR_NONETIDS (1 << 7) #define VOLPBIT_ATTR_EXT_ATTRS (1 << 10) #define VOLPBIT_ATTR_ACLS (1 << 11) #define VOLPBIT_ATTR_TM (1 << 13)