Annotation of fam/fam/NFSFileSystem.h, Revision 1.1
1.1 ! trev 1: // Copyright (C) 1999 Silicon Graphics, Inc. All Rights Reserved.
! 2: //
! 3: // This program is free software; you can redistribute it and/or modify it
! 4: // under the terms of version 2 of the GNU General Public License as
! 5: // published by the Free Software Foundation.
! 6: //
! 7: // This program is distributed in the hope that it would be useful, but
! 8: // WITHOUT ANY WARRANTY; without even the implied warranty of
! 9: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Further, any
! 10: // license provided herein, whether implied or otherwise, is limited to
! 11: // this program in accordance with the express provisions of the GNU
! 12: // General Public License. Patent licenses, if any, provided herein do not
! 13: // apply to combinations of this program with other product or programs, or
! 14: // any other product whatsoever. This program is distributed without any
! 15: // warranty that the program is delivered free of the rightful claim of any
! 16: // third person by way of infringement or the like. See the GNU General
! 17: // Public License for more details.
! 18: //
! 19: // You should have received a copy of the GNU General Public License along
! 20: // with this program; if not, write the Free Software Foundation, Inc., 59
! 21: // Temple Place - Suite 330, Boston MA 02111-1307, USA.
! 22:
! 23: #ifndef NFSFileSystem_included
! 24: #define NFSFileSystem_included
! 25:
! 26: #include "FileSystem.h"
! 27: #include "ServerHostRef.h"
! 28:
! 29: // NFSFileSystem represents an NFS file system.
! 30: //
! 31: // NFSFileSystem implements the high level FileSystem interface. It
! 32: // has a null implementation of the low level interface. (See
! 33: // FileSystem.h for the high and low level interfaces.)
! 34: //
! 35: // Perhaps the most significant thing NFSFileSystem does is mapping
! 36: // local paths to remote paths (hl_map_path()).
! 37:
! 38: class NFSFileSystem : public FileSystem {
! 39:
! 40: public:
! 41:
! 42: NFSFileSystem(const mntent&);
! 43: ~NFSFileSystem();
! 44:
! 45: virtual bool dir_entries_scanned() const;
! 46: virtual int get_attr_cache_timeout() const;
! 47:
! 48: // High level monitoring interface
! 49:
! 50: virtual Request hl_monitor(ClientInterest *, ClientInterest::Type);
! 51: virtual void hl_cancel(Request);
! 52: virtual void hl_suspend(Request);
! 53: virtual void hl_resume(Request);
! 54: virtual void hl_map_path(char *remote_path, const char *local_path,
! 55: const Cred&);
! 56:
! 57: // Low level monitoring interface
! 58:
! 59: virtual void ll_monitor(Interest *, bool);
! 60: virtual void ll_notify_created(Interest *);
! 61: virtual void ll_notify_deleted(Interest *);
! 62:
! 63: private:
! 64:
! 65: ServerHostRef host;
! 66: char *remote_dir;
! 67: unsigned remote_dir_len;
! 68: unsigned local_dir_len;
! 69: int attr_cache_timeout;
! 70:
! 71: };
! 72:
! 73: #endif /* !NFSFileSystem_included */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>