summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2018-02-01 11:37:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-05 08:26:22 +0100
commit87aa4832f7f3587a65ee92ffa24f528652684c1b (patch)
tree164be1aaaf4c24e45aa6b78605c9b4f69ee96800 /include/driver.h
parent119147ebfd2827558b6d27e525c2d8da6bf2865a (diff)
downloadbarebox-87aa4832f7f3587a65ee92ffa24f528652684c1b.tar.gz
barebox-87aa4832f7f3587a65ee92ffa24f528652684c1b.tar.xz
fs: add support loop mount offset
When loop mounting, allow to specify an offset into the file, similarly to the losetup offset option. Multiplicative suffixes are supported. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h
index e571fbbec5..f37805db17 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -475,7 +475,7 @@ struct cdev *cdev_readlink(struct cdev *cdev);
struct cdev *cdev_by_device_node(struct device_node *node);
struct cdev *cdev_by_partuuid(const char *partuuid);
struct cdev *cdev_open(const char *name, unsigned long flags);
-struct cdev *cdev_create_loop(const char *path, ulong flags);
+struct cdev *cdev_create_loop(const char *path, ulong flags, loff_t offset);
void cdev_remove_loop(struct cdev *cdev);
int cdev_do_open(struct cdev *, unsigned long flags);
void cdev_close(struct cdev *cdev);