[BACK]Return to LocalFileSystem.c++ CVS log [TXT][DIR] Up to [Development] / fam / fam

Annotation of fam/fam/LocalFileSystem.c++, 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: #include "LocalFileSystem.h"
        !            24:
        !            25: #include <string.h>
        !            26:
        !            27: #include "Log.h"
        !            28: #include "Pollster.h"
        !            29:
        !            30: LocalFileSystem::LocalFileSystem(const mntent& mnt)
        !            31:     : FileSystem(mnt)
        !            32: { }
        !            33:
        !            34: bool
        !            35: LocalFileSystem::dir_entries_scanned() const
        !            36: {
        !            37:     return true;
        !            38: }
        !            39:
        !            40: int
        !            41: LocalFileSystem::get_attr_cache_timeout() const
        !            42: {
        !            43:     int filesystem_is_NFS = 0; assert(filesystem_is_NFS);
        !            44:     return 0;
        !            45: }
        !            46:
        !            47: //////////////////////////////////////////////////////////////////////////////
        !            48: //  High level interface
        !            49:
        !            50: Request
        !            51: LocalFileSystem::hl_monitor(ClientInterest *, ClientInterest::Type)
        !            52: {
        !            53:     return 0;
        !            54: }
        !            55:
        !            56: void
        !            57: LocalFileSystem::hl_cancel(Request)
        !            58: { }
        !            59:
        !            60: void
        !            61: LocalFileSystem::hl_suspend(Request)
        !            62: { }
        !            63:
        !            64: void
        !            65: LocalFileSystem::hl_resume(Request)
        !            66: { }
        !            67:
        !            68: void
        !            69: LocalFileSystem::hl_map_path(char *remote_path, const char *local_path,
        !            70: 			     const Cred&)
        !            71: {
        !            72:     (void) strcpy(remote_path, local_path);
        !            73: }
        !            74:
        !            75: //////////////////////////////////////////////////////////////////////////////
        !            76: //  Low level interface
        !            77:
        !            78: void
        !            79: LocalFileSystem::ll_monitor(Interest *ip, bool imonitored)
        !            80: {
        !            81:     if (!imonitored)
        !            82:     {
        !            83: 	Log::debug("will poll %s", ip->name());
        !            84: 	Pollster::watch(ip);
        !            85:     }
        !            86: }
        !            87:
        !            88: void
        !            89: LocalFileSystem::ll_notify_created(Interest *ip)
        !            90: {
        !            91:     Pollster::forget(ip);
        !            92: }
        !            93:
        !            94:
        !            95: void
        !            96: LocalFileSystem::ll_notify_deleted(Interest *ip)
        !            97: {
        !            98:     Pollster::watch(ip);
        !            99: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>