]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/volinfo.c
New utility to maintain dbd databases: dbd. Also replaces cnid_index. Still incomplete.
[netatalk.git] / libatalk / util / volinfo.c
index 9a1a657e80388bbebc19888f9d15c56e8c524d13..262c240b8eaa826fcfe082448554684951f38869 100644 (file)
@@ -85,13 +85,19 @@ static const _vol_opt_name vol_opt_names[] = {
     {AFPVOL_NOHEX,      "NOHEX"},       /* don't do :hex translation */
     {AFPVOL_USEDOTS,    "USEDOTS"},     /* use real dots */
     {AFPVOL_LIMITSIZE,  "LIMITSIZE"},   /* limit size for older macs */
-    {AFPVOL_MAPASCII,  "MAPASCII"},    /* map the ascii range as well */
-    {AFPVOL_DROPBOX,   "DROPBOX"},     /* dropkludge dropbox support */
-    {AFPVOL_NOFILEID,  "NOFILEID"},    /* don't advertise createid resolveid and deleteid calls */
-    {AFPVOL_NOSTAT,    "NOSTAT"},      /* advertise the volume even if we can't stat() it
-                                        * maybe because it will be mounted later in preexec */
+    {AFPVOL_MAPASCII,   "MAPASCII"},    /* map the ascii range as well */
+    {AFPVOL_DROPBOX,    "DROPBOX"},     /* dropkludge dropbox support */
+    {AFPVOL_NOFILEID,   "NOFILEID"},    /* don't advertise createid resolveid and deleteid calls */
+    {AFPVOL_NOSTAT,     "NOSTAT"},      /* advertise the volume even if we can't stat() it
+                                         * maybe because it will be mounted later in preexec */
     {AFPVOL_UNIX_PRIV,  "UNIXPRIV"},    /* support unix privileges */
     {AFPVOL_NODEV,      "NODEV"},       /* always use 0 for device number in cnid calls */
+    {AFPVOL_CASEINSEN,  "CASEINSENSITIVE"}, /* volume is case insensitive */
+    {AFPVOL_EILSEQ,     "ILLEGALSEQ"},  /* encode illegal sequence */
+    {AFPVOL_CACHE,      "CACHEID"},     /* Use adouble v2 CNID caching, default don't use it */
+    {AFPVOL_INV_DOTS,   "INVISIBLEDOTS"}, 
+    {AFPVOL_EXT_ATTRS,  "EXT_ATTRS"},   /* Vol supports Extened Attributes */
+    {AFPVOL_ACLS,       "ACLS"},        /* Vol supports ACLs */
     {0, NULL}
 };
 
@@ -112,9 +118,6 @@ static char* find_in_path( char *path, char *subdir, size_t maxlen)
     pos = strrchr(path, '/');
 
     while ( stat(path, &st) != 0) {
-#ifdef DEBUG
-        fprintf(stderr, "searching in path %s\n", path);
-#endif
         path[pos-path]=0;
         if ((pos = strrchr(path, '/'))) {
             path[pos-path]=0;
@@ -127,9 +130,7 @@ static char* find_in_path( char *path, char *subdir, size_t maxlen)
 
     path[pos-path] = '/';
     path[pos-path+1] = 0;
-#ifdef DEBUG
-    fprintf(stderr, "%s path %s\n", subdir, path);
-#endif
+
     return path;
 }
 
@@ -313,9 +314,6 @@ static int parseline ( char *buf, struct volinfo *vol)
        return (-1);
         break;
     }
-#ifdef DEBUG
-    printf ("volume information: %s, %s", buf, value);
-#endif
         
     return 0;
 }