From: franklahm Date: Thu, 29 Oct 2009 10:55:45 +0000 (+0000) Subject: Remove etc/afpd/afp_vfs.h. Obsolete and moved to include/atalk/vfs.h X-Git-Tag: before-ipv6~17 X-Git-Url: https://arthur.barton.de/gitweb/?p=netatalk.git;a=commitdiff_plain;h=2b6c1d765ec7c5c39e937d45fb22a7b74123fc23 Remove etc/afpd/afp_vfs.h. Obsolete and moved to include/atalk/vfs.h --- diff --git a/etc/afpd/Makefile.am b/etc/afpd/Makefile.am index 319f6283..99135ff6 100644 --- a/etc/afpd/Makefile.am +++ b/etc/afpd/Makefile.am @@ -20,8 +20,7 @@ afpd_LDFLAGS = -export-dynamic noinst_HEADERS = auth.h afp_config.h desktop.h directory.h file.h \ filedir.h fork.h globals.h icon.h mangle.h misc.h status.h switch.h \ - uam_auth.h uid.h unix.h volume.h hash.h acls.h acl_mappings.h \ - afp_vfs.h extattrs.h + uam_auth.h uid.h unix.h volume.h hash.h acls.h acl_mappings.h extattrs.h LIBS = @LIBS@ @QUOTA_LIBS@ @SLP_LIBS@ @WRAP_LIBS@ @LIBADD_DL@ diff --git a/etc/afpd/afp_vfs.h b/etc/afpd/afp_vfs.h deleted file mode 100644 index 5c5f7516..00000000 --- a/etc/afpd/afp_vfs.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - Copyright (c) 2004 Didier Gautheron - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - vfs layer for afp -*/ - -#ifndef _AFP_VFS_H -#define _AFP_VFS_H - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif /* HAVE_CONFIG_H */ - -#ifdef HAVE_NFSv4_ACLS -#include -#endif - -#include -struct vol; - -struct vfs_ops { - /* low level adouble fn */ - char *(*ad_path)(const char *, int); - - /* */ - int (*validupath)(const struct vol *, const char *); - int (*rf_chown)(const struct vol *, const char *path, uid_t owner, gid_t group); - int (*rf_renamedir)(const struct vol *, const char *oldpath, const char *newpath); - int (*rf_deletecurdir)(const struct vol *); - int (*rf_setfilmode)(const struct vol *, const char * name, mode_t mode, struct stat *st); - int (*rf_setdirmode)(const struct vol *, const char * name, mode_t mode, struct stat *st); - int (*rf_setdirunixmode)(const struct vol *, const char * name, mode_t mode, struct stat *st); - - int (*rf_setdirowner)(const struct vol *, const char *path, uid_t owner, gid_t group); - - int (*rf_deletefile)(const struct vol *, const char * ); - int (*rf_renamefile)(const struct vol *, const char *oldpath, const char *newpath); -#ifdef HAVE_NFSv4_ACLS - int (*rf_acl)(const struct vol *, const char *path, int cmd, int count, ace_t *aces); - int (*rf_remove_acl)(const struct vol *, const char *path, int dir); -#endif -}; - -void initvol_vfs(struct vol *vol); - -#endif diff --git a/etc/afpd/volume.c b/etc/afpd/volume.c index fb57115f..13f4afa5 100644 --- a/etc/afpd/volume.c +++ b/etc/afpd/volume.c @@ -1,5 +1,5 @@ /* - * $Id: volume.c,v 1.96 2009-10-27 23:35:17 didg Exp $ + * $Id: volume.c,v 1.97 2009-10-29 10:55:46 franklahm Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -44,6 +44,7 @@ char *strchr (), *strrchr (); #include #include #include +#include #ifdef CNID_DB #include #endif /* CNID_DB*/ @@ -56,7 +57,6 @@ char *strchr (), *strrchr (); #include "mangle.h" #include "fork.h" #include "hash.h" -#include "afp_vfs.h" extern int afprun(int root, char *cmd, int *outfd);