summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-10-01 12:27:35 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-10-01 12:52:00 +0800
commit9fbd73a208c9465b4bf9e2c80c7290b72e62ead1 (patch)
treea0e2899a65433c23105140ab8591b10c19325c32 /discover/device-handler.h
parentb86a7a0533c4d723ea940ac2071f845f165f832c (diff)
downloadtalos-petitboot-9fbd73a208c9465b4bf9e2c80c7290b72e62ead1.tar.gz
talos-petitboot-9fbd73a208c9465b4bf9e2c80c7290b72e62ead1.zip
discover: Add device_{request,release}_write
Add a pair of functions to the parser API to allow write access to the underlying device. We'll use this in the GRUB2 parser to implement environment persistence. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r--discover/device-handler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index 5dbc349..6b36e07 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -36,6 +36,7 @@ struct discover_device {
char *mount_path;
const char *device_path;
bool mounted;
+ bool mounted_rw;
bool unmount;
bool notified;
@@ -124,4 +125,7 @@ void device_handler_boot(struct device_handler *handler,
struct boot_command *cmd);
void device_handler_cancel_default(struct device_handler *handler);
+int device_request_write(struct discover_device *dev, bool *release);
+void device_release_write(struct discover_device *dev, bool release);
+
#endif /* _DEVICE_HANDLER_H */
OpenPOWER on IntegriCloud