summaryrefslogtreecommitdiffstats
path: root/include/fs.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-03-18 08:48:16 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-18 08:48:16 +0100
commitec91b38f12bc2a10c54c434212f919a04fac6ef8 (patch)
tree384a258270c666e72548a945023961d69401bfd6 /include/fs.h
parent822768c99c97661ea87a50bb4931936e0608a54e (diff)
parent73290bcfd105cd72e45c4843e8625033cefcc089 (diff)
downloadbarebox-ec91b38f12bc2a10c54c434212f919a04fac6ef8.tar.gz
barebox-ec91b38f12bc2a10c54c434212f919a04fac6ef8.tar.xz
Merge branch 'for-next/block'
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 04ec1329e1..5811199c01 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -61,6 +61,8 @@ struct fs_driver_d {
loff_t offset);
int (*protect)(struct device_d *dev, FILE *f, size_t count,
loff_t offset, int prot);
+ int (*discard_range)(struct device_d *dev, FILE *f, loff_t count,
+ loff_t offset);
int (*memmap)(struct device_d *dev, FILE *f, void **map, int flags);
@@ -128,6 +130,7 @@ int umount_by_cdev(struct cdev *cdev);
#define ERASE_SIZE_ALL ((loff_t) - 1)
int erase(int fd, loff_t count, loff_t offset);
int protect(int fd, size_t count, loff_t offset, int prot);
+int discard_range(int fd, loff_t count, loff_t offset);
int protect_file(const char *file, int prot);
void *memmap(int fd, int flags);