示例#1
0
        public FileSystemAccessor(FileSystemClient fsClient, U8Span name, IMultiCommitTarget multiCommitTarget,
                                  IFileSystem fileSystem, ICommonMountNameGenerator mountNameGenerator,
                                  ISaveDataAttributeGetter saveAttributeGetter)
        {
            FsClient = fsClient;

            _fileSystem      = fileSystem;
            _openFiles       = new LinkedList <FileAccessor>();
            _openDirectories = new LinkedList <DirectoryAccessor>();
            _openListLock.Initialize();
            _mountNameGenerator      = mountNameGenerator;
            _saveDataAttributeGetter = saveAttributeGetter;
            _multiCommitTarget       = multiCommitTarget;

            if (name.IsEmpty())
            {
                Abort.DoAbort(ResultFs.InvalidMountName.Log());
            }

            if (StringUtils.GetLength(name, PathTool.MountNameLengthMax + 1) > PathTool.MountNameLengthMax)
            {
                Abort.DoAbort(ResultFs.InvalidMountName.Log());
            }

            StringUtils.Copy(_mountName.Name.Slice(0, PathTool.MountNameLengthMax), name);
            _mountName.Name[PathTool.MountNameLengthMax] = 0;
        }
 public SaveDataOpenTypeSetFileStorage(FileSystemServer fsServer, SaveDataSpaceId spaceId, ulong saveDataId)
 {
     _fsServer   = fsServer;
     _spaceId    = spaceId;
     _saveDataId = saveDataId;
     _mutex.Initialize();
 }
示例#3
0
 public TimeServiceImpl(FileSystemServer fsServer)
 {
     _fsServer       = fsServer;
     _basePosixTime  = 0;
     _timeDifference = 0;
     _mutex.Initialize();
 }
示例#4
0
 public MountTable(FileSystemClient fsClient)
 {
     _fileSystemList = new LinkedList <FileSystemAccessor>();
     _mutex          = new SdkMutexType();
     _mutex.Initialize();
 }
示例#5
0
 public void Initialize(FileSystemClient _)
 {
     MutexForAccessLogInitialization.Initialize();
 }
示例#6
0
 public LocationResolverSet(FileSystemServer fsServer)
 {
     _resolvers = new LocationResolver[LocationResolverCount];
     _mutex.Initialize();
     _fsServer = fsServer;
 }
 public void Initialize(FileSystemServer fsServer)
 {
     Mutex.Initialize();
     SaveDataFileStorageHolder = new SaveDataFileStorageHolder(fsServer);
 }
示例#8
0
 public void Initialize(FileSystemClient fsClient)
 {
     SynchronizeDirectoryMutex.Initialize();
 }