summaryrefslogtreecommitdiffstats
path: root/minadbd
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-06-21 19:51:22 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-06-21 19:51:22 +0200
commita51a41101ad2d8095bf4fdde5e5a09043c494e57 (patch)
treef7c88bc3bdc2b3dc0ad6b2d2dfe7d8fe80eb11da /minadbd
parentMerge "Implement the TargetFile and BuildInfo" am: 9b76970e9a (diff)
parentMerge "Support starting fuse from a block map" (diff)
downloadandroid_bootable_recovery-a51a41101ad2d8095bf4fdde5e5a09043c494e57.tar
android_bootable_recovery-a51a41101ad2d8095bf4fdde5e5a09043c494e57.tar.gz
android_bootable_recovery-a51a41101ad2d8095bf4fdde5e5a09043c494e57.tar.bz2
android_bootable_recovery-a51a41101ad2d8095bf4fdde5e5a09043c494e57.tar.lz
android_bootable_recovery-a51a41101ad2d8095bf4fdde5e5a09043c494e57.tar.xz
android_bootable_recovery-a51a41101ad2d8095bf4fdde5e5a09043c494e57.tar.zst
android_bootable_recovery-a51a41101ad2d8095bf4fdde5e5a09043c494e57.zip
Diffstat (limited to '')
-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_;