//名称:远程文件系统
//
module Filesystem
{
//-------------------数据类型--------------------------------------------------------
sequence<byte> RFSStream;//文件读写系列
struct RFSNode
{
string Name;//文件或者目录的名称
bool type;//1=文件 0= 目录
};
sequence<RFSNode> RFSNodeList;//文件目录列表
//------------------异常处理----------------------------------------------------------
exception RFSError
{
string reason;
};
//------------------接口实现----------------------------------------------------------
interface RFSFileSystem
{ //_________用户标识______文件名称_______要读写的块 ______读写的内容_________异常处理
void FileRead (string UserID,string FileName,int BlockNO,out RFSStream FStream) throws RFSError;
void FileWrite (string UserID,string FileName,int BlockNO, RFSStream FStream) throws RFSError;
void FileDel (string UserID,string FileName) throws RFSError;
void FileRename(string UserID,string FileName,string NewName ) throws RFSError;
void FileCopy (string UserID,string FileName,string NewName ) throws RFSError;
void FileMove (string UserID,string FileName,string NewName ) throws RFSError;
void DirCreate (string UserID,string DirName ) throws RFSError;
void DirDel (string UserID,string DirName ) throws RFSError;
void DirRename (string UserID,string DirName ,string NewName) throws RFSError;
void DirMove (string UserID,string DirName ,string NewName) throws RFSError;
void DirList (string UserID,string DirName ,out RFSNodeList DFList) throws RFSError;
string login (string username,string password);
};
//----------------------------------------------------------------------------
};