Ejemplo n.º 1
0
        public Result Mount(FileSystemAccessor fileSystem)
        {
            using ScopedLock <SdkMutexType> lk = ScopedLock.Lock(ref _mutex);

            if (!CanAcceptMountName(fileSystem.GetName()))
            {
                return(ResultFs.MountNameAlreadyExists.Log());
            }

            _fileSystemList.AddLast(fileSystem);
            return(Result.Success);
        }
Ejemplo n.º 2
0
 private static bool Matches(FileSystemAccessor accessor, U8Span name)
 {
     return(StringUtils.Compare(accessor.GetName(), name, Unsafe.SizeOf <MountName>()) == 0);
 }