Searched refs:fileStore (Results 1 – 3 of 3) sorted by relevance
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/ |
D | JimfsFileSystem.java | 172 private final JimfsFileStore fileStore; field in JimfsFileSystem 184 JimfsFileStore fileStore, in JimfsFileSystem() argument 190 this.fileStore = checkNotNull(fileStore); in JimfsFileSystem() 220 for (Name name : fileStore.getRootDirectoryNames()) { in getRootDirectories() 239 return fileStore; in getFileStore() 244 fileStore.state().checkOpen(); in getFileStores() 245 return ImmutableSet.<FileStore>of(fileStore); in getFileStores() 250 return fileStore.supportedFileAttributeViews(); in supportedFileAttributeViews() 255 fileStore.state().checkOpen(); in getPath() 261 fileStore.state().checkOpen(); in toUri() [all …]
|
D | JimfsFileSystems.java | 73 JimfsFileStore fileStore = createFileStore(config, pathService, state); in newFileSystem() local 74 FileSystemView defaultView = createDefaultView(config, fileStore, pathService); in newFileSystem() 78 new JimfsFileSystem(provider, uri, fileStore, pathService, defaultView, watchServiceConfig); in newFileSystem() 114 Configuration config, JimfsFileStore fileStore, PathService pathService) throws IOException { in createDefaultView() argument 117 Directory dir = fileStore.getRoot(workingDirPath.root()); in createDefaultView() 123 Directory newDir = fileStore.directoryCreator().get(); in createDefaultView() 124 fileStore.setInitialAttributes(newDir); in createDefaultView() 130 return new FileSystemView(fileStore, dir, workingDirPath); in createDefaultView()
|
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/ |
D | JimfsUnixLikeFileSystemTest.java | 137 FileStore fileStore = Iterables.getOnlyElement(fs.getFileStores()); in testFileStore() local 138 assertThat(fileStore.name()).isEqualTo("jimfs"); in testFileStore() 139 assertThat(fileStore.type()).isEqualTo("jimfs"); in testFileStore() 140 assertThat(fileStore.isReadOnly()).isFalse(); in testFileStore() 143 assertThat(fileStore.getTotalSpace()).isEqualTo(totalSpace); in testFileStore() 144 assertThat(fileStore.getUnallocatedSpace()).isEqualTo(totalSpace); in testFileStore() 145 assertThat(fileStore.getUsableSpace()).isEqualTo(totalSpace); in testFileStore() 149 assertThat(fileStore.getTotalSpace()).isEqualTo(totalSpace); in testFileStore() 154 assertThat(fileStore.getUnallocatedSpace() <= totalSpace - 10000).isTrue(); in testFileStore() 158 assertThat(fileStore.getUsableSpace() <= fileStore.getUnallocatedSpace()).isTrue(); in testFileStore() [all …]
|