Lines Matching refs:target_

1011   explicit FileSystemWrapper(std::shared_ptr<FileSystem> t) : target_(t) {}  in FileSystemWrapper()
1014 const char* Name() const override { return target_->Name(); } in Name()
1017 FileSystem* target() const { return target_.get(); } in target()
1024 return target_->NewSequentialFile(f, file_opts, r, dbg); in NewSequentialFile()
1030 return target_->NewRandomAccessFile(f, file_opts, r, dbg); in NewRandomAccessFile()
1035 return target_->NewWritableFile(f, file_opts, r, dbg); in NewWritableFile()
1041 return target_->ReopenWritableFile(fname, file_opts, result, dbg); in ReopenWritableFile()
1048 return target_->ReuseWritableFile(fname, old_fname, file_opts, r, in ReuseWritableFile()
1055 return target_->NewRandomRWFile(fname, file_opts, result, dbg); in NewRandomRWFile()
1060 return target_->NewMemoryMappedFileBuffer(fname, result); in NewMemoryMappedFileBuffer()
1065 return target_->NewDirectory(name, io_opts, result, dbg); in NewDirectory()
1069 return target_->FileExists(f, io_opts, dbg); in FileExists()
1074 return target_->GetChildren(dir, io_opts, r, dbg); in GetChildren()
1080 return target_->GetChildrenFileAttributes(dir, options, result, dbg); in GetChildrenFileAttributes()
1084 return target_->DeleteFile(f, options, dbg); in DeleteFile()
1088 return target_->Truncate(fname, size, options, dbg); in Truncate()
1092 return target_->CreateDir(d, options, dbg); in CreateDir()
1096 return target_->CreateDirIfMissing(d, options, dbg); in CreateDirIfMissing()
1100 return target_->DeleteDir(d, options, dbg); in DeleteDir()
1104 return target_->GetFileSize(f, options, s, dbg); in GetFileSize()
1111 return target_->GetFileModificationTime(fname, options, file_mtime, dbg); in GetFileModificationTime()
1117 return target_->GetAbsolutePath(db_path, options, output_path, dbg); in GetAbsolutePath()
1122 return target_->RenameFile(s, t, options, dbg); in RenameFile()
1127 return target_->LinkFile(s, t, options, dbg); in LinkFile()
1132 return target_->NumFileLinks(fname, options, count, dbg); in NumFileLinks()
1138 return target_->AreFilesSame(first, second, options, res, dbg); in AreFilesSame()
1143 return target_->LockFile(f, options, l, dbg); in LockFile()
1148 return target_->UnlockFile(l, options, dbg); in UnlockFile()
1153 return target_->GetTestDirectory(options, path, dbg); in GetTestDirectory()
1158 return target_->NewLogger(fname, options, result, dbg); in NewLogger()
1162 target_->SanitizeFileOptions(opts); in SanitizeFileOptions()
1167 return target_->OptimizeForLogRead(file_options); in OptimizeForLogRead()
1171 return target_->OptimizeForManifestRead(file_options); in OptimizeForManifestRead()
1175 return target_->OptimizeForLogWrite(file_options, db_options); in OptimizeForLogWrite()
1179 return target_->OptimizeForManifestWrite(file_options); in OptimizeForManifestWrite()
1184 return target_->OptimizeForCompactionTableWrite(file_options, in OptimizeForCompactionTableWrite()
1190 return target_->OptimizeForCompactionTableRead(file_options, db_options); in OptimizeForCompactionTableRead()
1194 return target_->GetFreeSpace(path, options, diskfree, dbg); in GetFreeSpace()
1198 std::shared_ptr<FileSystem> target_;
1204 : target_(target) {} in FSSequentialFileWrapper()
1208 return target_->Read(n, options, result, scratch, dbg); in Read()
1210 IOStatus Skip(uint64_t n) override { return target_->Skip(n); } in Skip()
1211 bool use_direct_io() const override { return target_->use_direct_io(); } in use_direct_io()
1213 return target_->GetRequiredBufferAlignment(); in GetRequiredBufferAlignment()
1216 return target_->InvalidateCache(offset, length); in InvalidateCache()
1221 return target_->PositionedRead(offset, n, options, result, scratch, dbg); in PositionedRead()
1225 FSSequentialFile* target_;
1231 : target_(target) {} in FSRandomAccessFileWrapper()
1236 return target_->Read(offset, n, options, result, scratch, dbg); in Read()
1240 return target_->MultiRead(reqs, num_reqs, options, dbg); in MultiRead()
1244 return target_->Prefetch(offset, n, options, dbg); in Prefetch()
1247 return target_->GetUniqueId(id, max_size); in GetUniqueId()
1249 void Hint(AccessPattern pattern) override { target_->Hint(pattern); } in Hint()
1250 bool use_direct_io() const override { return target_->use_direct_io(); } in use_direct_io()
1252 return target_->GetRequiredBufferAlignment(); in GetRequiredBufferAlignment()
1255 return target_->InvalidateCache(offset, length); in InvalidateCache()
1259 FSRandomAccessFile* target_;
1264 explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} in FSWritableFileWrapper()
1268 return target_->Append(data, options, dbg); in Append()
1273 return target_->PositionedAppend(data, offset, options, dbg); in PositionedAppend()
1277 return target_->Truncate(size, options, dbg); in Truncate()
1280 return target_->Close(options, dbg); in Close()
1283 return target_->Flush(options, dbg); in Flush()
1286 return target_->Sync(options, dbg); in Sync()
1289 return target_->Fsync(options, dbg); in Fsync()
1291 bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } in IsSyncThreadSafe()
1293 bool use_direct_io() const override { return target_->use_direct_io(); } in use_direct_io()
1296 return target_->GetRequiredBufferAlignment(); in GetRequiredBufferAlignment()
1300 target_->SetWriteLifeTimeHint(hint); in SetWriteLifeTimeHint()
1304 return target_->GetWriteLifeTimeHint(); in GetWriteLifeTimeHint()
1308 return target_->GetFileSize(options, dbg); in GetFileSize()
1312 target_->SetPreallocationBlockSize(size); in SetPreallocationBlockSize()
1317 target_->GetPreallocationStatus(block_size, last_allocated_block); in GetPreallocationStatus()
1321 return target_->GetUniqueId(id, max_size); in GetUniqueId()
1325 return target_->InvalidateCache(offset, length); in InvalidateCache()
1330 return target_->RangeSync(offset, nbytes, options, dbg); in RangeSync()
1335 target_->PrepareWrite(offset, len, options, dbg); in PrepareWrite()
1340 return target_->Allocate(offset, len, options, dbg); in Allocate()
1344 FSWritableFile* target_;
1349 explicit FSRandomRWFileWrapper(FSRandomRWFile* target) : target_(target) {} in FSRandomRWFileWrapper()
1351 bool use_direct_io() const override { return target_->use_direct_io(); } in use_direct_io()
1353 return target_->GetRequiredBufferAlignment(); in GetRequiredBufferAlignment()
1357 return target_->Write(offset, data, options, dbg); in Write()
1362 return target_->Read(offset, n, options, result, scratch, dbg); in Read()
1365 return target_->Flush(options, dbg); in Flush()
1368 return target_->Sync(options, dbg); in Sync()
1371 return target_->Fsync(options, dbg); in Fsync()
1374 return target_->Close(options, dbg); in Close()
1378 FSRandomRWFile* target_;
1383 explicit FSDirectoryWrapper(FSDirectory* target) : target_(target) {} in FSDirectoryWrapper()
1386 return target_->Fsync(options, dbg); in Fsync()
1389 return target_->GetUniqueId(id, max_size); in GetUniqueId()
1393 FSDirectory* target_;