summaryrefslogtreecommitdiffstats
path: root/minadbd
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-06-21 19:14:10 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-06-21 19:14:10 +0200
commit090b62832f1e4507a864373b3e393aaa021a1f12 (patch)
tree79e1d688513da13dcb08a551fa689b17a1b7f2e3 /minadbd
parentMerge "Implement the TargetFile and BuildInfo" (diff)
parentSupport starting fuse from a block map (diff)
downloadandroid_bootable_recovery-090b62832f1e4507a864373b3e393aaa021a1f12.tar
android_bootable_recovery-090b62832f1e4507a864373b3e393aaa021a1f12.tar.gz
android_bootable_recovery-090b62832f1e4507a864373b3e393aaa021a1f12.tar.bz2
android_bootable_recovery-090b62832f1e4507a864373b3e393aaa021a1f12.tar.lz
android_bootable_recovery-090b62832f1e4507a864373b3e393aaa021a1f12.tar.xz
android_bootable_recovery-090b62832f1e4507a864373b3e393aaa021a1f12.tar.zst
android_bootable_recovery-090b62832f1e4507a864373b3e393aaa021a1f12.zip
Diffstat (limited to 'minadbd')
-rw-r--r--minadbd/fuse_adb_provider.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/minadbd/fuse_adb_provider.h b/minadbd/fuse_adb_provider.h
index c5561e57d..43c07d28e 100644
--- a/minadbd/fuse_adb_provider.h
+++ b/minadbd/fuse_adb_provider.h
@@ -29,6 +29,10 @@ class FuseAdbDataProvider : public FuseDataProvider {
bool ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size,
uint32_t start_block) const override;
+ bool Valid() const override {
+ return fd_ != -1;
+ }
+
private:
// The underlying source to read data from (i.e. the one that talks to the host).
int fd_;