Add support for more expressive SD card permissions
We now run an sdcard fuse daemon on top of a physical SD card.
Add support for that.
Bug: 10330128
Change-Id: I6a291f861ccb0f2911c07cc8f659e2cec4e6d76c
diff --git a/DirectVolume.h b/DirectVolume.h
index c0139d4..337c72d 100644
--- a/DirectVolume.h
+++ b/DirectVolume.h
@@ -29,6 +29,9 @@
public:
static const int MAX_PARTITIONS = 32;
protected:
+ const char* mMountpoint;
+ const char* mFuseMountpoint;
+
PathCollection *mPaths;
int mDiskMajor;
int mDiskMinor;
@@ -42,18 +45,20 @@
int mFlags;
public:
- DirectVolume(VolumeManager *vm, const char *label, const char *mount_point, int partIdx);
+ DirectVolume(VolumeManager *vm, const fstab_rec* rec, int flags);
virtual ~DirectVolume();
int addPath(const char *path);
+ const char *getMountpoint() { return mMountpoint; }
+ const char *getFuseMountpoint() { return mFuseMountpoint; }
+
int handleBlockEvent(NetlinkEvent *evt);
dev_t getDiskDevice();
dev_t getShareDevice();
void handleVolumeShared();
void handleVolumeUnshared();
int getVolInfo(struct volume_info *v);
- void setFlags(int flags);
protected:
int getDeviceNodes(dev_t *devs, int max);