X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fatalk%2Fvolume.h;h=842b705d501ba7ce2bcbfcb93346aac87348b310;hb=cb8de5b604041071f3454dd8df97295544caba59;hp=993b1a746ecd9b3295d4f33074ef5a063119e1d5;hpb=0106aa74dbf137e3bffc276fc18765a76a6c7615;p=netatalk.git diff --git a/include/atalk/volume.h b/include/atalk/volume.h index 993b1a74..842b705d 100644 --- a/include/atalk/volume.h +++ b/include/atalk/volume.h @@ -1,6 +1,4 @@ /* - * $Id: volume.h,v 1.16 2010/03/31 09:47:32 franklahm Exp $ - * * Copyright (c) 1990,1994 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ @@ -8,7 +6,6 @@ #ifndef ATALK_VOLUME_H #define ATALK_VOLUME_H 1 -#include #include #include @@ -40,7 +37,7 @@ struct vol { char *v_veto; int v_adouble; /* adouble format: v1, v2, sfm ... */ int v_ad_options; /* adouble option NODEV, NOCACHE, etc.. */ - char *(*ad_path)(const char *, int); + const char *(*ad_path)(const char *, int); struct _cnid_db *v_cdb; char v_stamp[ADEDLEN_PRIVSYN]; VolSpace v_limitsize; /* Size limit, if any, in MiB */ @@ -86,10 +83,6 @@ struct vol { int v_root_preexec_close; int v_preexec_close; char *v_uuid; /* For TimeMachine zeroconf record */ -#ifdef FORCE_UIDGID - char *v_forceuid; - char *v_forcegid; -#endif #ifdef __svr4__ int v_qfd; #endif /*__svr4__*/ @@ -118,7 +111,6 @@ struct vol { #define AFPVOL_USEDOTS (1 << 11) /* use real dots */ #define AFPVOL_LIMITSIZE (1 << 12) /* limit size for older macs */ #define AFPVOL_MAPASCII (1 << 13) /* map the ascii range as well */ -#define AFPVOL_DROPBOX (1 << 14) /* dropkludge dropbox support */ #define AFPVOL_NOFILEID (1 << 15) /* don't advertise createid resolveid and deleteid calls */ #define AFPVOL_NOSTAT (1 << 16) /* advertise the volume even if we can't stat() it * maybe because it will be mounted later in preexec */ @@ -133,9 +125,13 @@ struct vol { #define AFPVOL_CACHE (1 << 21) /* Use adouble v2 CNID caching. Default: yes */ #define AFPVOL_INV_DOTS (1 << 22) /* dots files are invisible */ -#define AFPVOL_TM (1 << 24) /* Supports TimeMachine */ -#define AFPVOL_ACLS (1 << 25) /* Volume supports ACLS */ -#define AFPVOL_CDROM (1 << 25) /* Ejectable media eg CD -> in memory CNID db */ +#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 /* Extended Attributes vfs indirection */ #define AFPVOL_EA_NONE 0 /* No EAs */ @@ -193,11 +189,7 @@ int wincheck(const struct vol *vol, const char *path); #define VOLPBIT_XBTOTAL 10 #define VOLPBIT_BSIZE 11 /* block size */ -#ifdef AFP3x #define utf8_encoding() (afp_version >= 30) -#else -#define utf8_encoding() (0) -#endif #define vol_noadouble(vol) (((vol)->v_flags & AFPVOL_NOADOUBLE) ? 1 : 0) #define vol_nodev(vol) (((vol)->v_flags & AFPVOL_NODEV) ? 1 : 0)