]> arthur.barton.de Git - netatalk.git/commitdiff
Removed MTAB support.
authorsrittau <srittau>
Fri, 4 Oct 2002 15:15:05 +0000 (15:15 +0000)
committersrittau <srittau>
Fri, 4 Oct 2002 15:15:05 +0000 (15:15 +0000)
etc/afpd/catsearch.c
etc/afpd/enumerate.c
etc/afpd/file.c
etc/afpd/main.c

index c292c04057c514a87a166a4192f9335296e68c26..6b9ef02d48bda296d7d1e8dec19bf77deeb2374f 100644 (file)
@@ -50,7 +50,7 @@
 #include <atalk/adouble.h>
 #ifdef CNID_DB
 #include <atalk/cnid.h>
-#endif /* DID_MTAB */
+#endif /* CNID_DB */
 #include "desktop.h"
 #include "directory.h"
 #include "file.h"
 #include "filedir.h"
 #include "fork.h"
 
-#ifdef DID_MTAB
-#include "parse-mtab.h"
-#endif /* DID_MTAB */
-
 #ifdef WITH_CATSEARCH
 
 struct finderinfo {
index 507720bab6944d27a424bd46a48f987d478b4486..938cac73392c66a3a29f298630e355b83025100c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: enumerate.c,v 1.21 2002-08-25 13:26:20 rlewczuk Exp $
+ * $Id: enumerate.c,v 1.22 2002-10-04 15:15:05 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
 #include "file.h"
 #include "filedir.h"
 
-/* check for mtab DID code */
-#ifdef DID_MTAB
-#include "parse_mtab.h"
-#endif /* DID_MTAB */
-
 #define min(a,b)       ((a)<(b)?(a):(b))
 
 struct dir *
@@ -101,13 +96,8 @@ struct stat *st;
         cdir->d_did = htonl( vol->v_lastdid++ );
 #else /* USE_LASTDID */
         lstp = lstat(upath, &lst) < 0 ? st : &lst;
-#ifdef DID_MTAB
-        /* mtab way of doing DIDs */
-        cdir->d_did = htonl( afpd_st_cnid ( lstp ) );
-#else /* DID_MTAB */
         /* the old way of doing DIDs (default) */
         cdir->d_did = htonl( CNID(lstp, 0) );
-#endif /* DID_MTAB */
 #endif /* USE_LASTDID */
     }
 
index b22593b05890226d4a85c76fb868583cc98bf713..239dfb1f8505a6adddd8c92104ab9b5789aba0ca 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.60 2002-09-29 23:31:24 sibaz Exp $
+ * $Id: file.c,v 1.61 2002-10-04 15:15:05 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -59,11 +59,6 @@ char *strchr (), *strrchr ();
 #include "filedir.h"
 #include "globals.h"
 
-/* check for mtab DID code */
-#ifdef DID_MTAB
-#include "parse_mtab.h"
-#endif /* DID_MTAB */
-
 /* the format for the finderinfo fields (from IM: Toolbox Essentials):
  * field         bytes        subfield    bytes
  * 
@@ -263,11 +258,7 @@ int getmetadata(struct vol *vol,
                 aint = htonl(( st->st_dev << 16 ) | (st->st_ino & 0x0000ffff));
 #else /* USE_LASTDID */
                 lstp = lstat(upath, &lst) < 0 ? st : &lst;
-#ifdef DID_MTAB
-                aint = htonl( afpd_st_cnid ( lstp ) );
-#else /* DID_MTAB */
                 aint = htonl(CNID(lstp, 1));
-#endif /* DID_MTAB */
 #endif /* USE_LASTDID */
             }
 
index 93dafe8ff75363f766579d1a531c092d2e2a8502..91ad85e9909afa52a0d31b2f8b7114fb1a1151a0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: main.c,v 1.19 2002-08-31 08:09:06 jmarcus Exp $
+ * $Id: main.c,v 1.20 2002-10-04 15:15:05 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -57,17 +57,8 @@ static int argc = 0;
 static char **argv = NULL;
 #endif /* TRU64 */
 
-#ifdef DID_MTAB
-#include "parse_mtab.h"
-#endif /* DID_MTAB */
-
 unsigned char  nologin = 0;
 
-#ifdef DID_MTAB
-/* global mount table; afpd_st_cnid uses this to lookup the right entry.  */
-static struct afpd_mount_table *afpd_mount_table = NULL;
-#endif /* DID_MTAB */
-
 struct afp_options default_options;
 static AFPConfig *configs;
 static server_child *server_children;
@@ -177,11 +168,6 @@ char       **av;
         exit(0);
     }
 
-#ifdef DID_MTAB
-    /* if we are going to use afpd.mtab, load the file */
-    afpd_mount_table = afpd_mtab_parse ( AFPD_MTAB_FILE );
-#endif /* DID_MTAB */
-
     /* install child handler for asp and dsi. we do this before afp_goaway
      * as afp_goaway references stuff from here. 
      * XXX: this should really be setup after the initial connections. */