summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-01-11 19:00:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-11 19:00:04 +0100
commit08c62ae2fa9378732588ef7b9a9120b377d26d1e (patch)
tree6c4b687f9ec73397be1f3be08f7df191ab2d6542 /include
parent917225203ff8047ae91e03ac4fc6fc320f37f1ce (diff)
parentfa9cc22e29faf24a70a4771a71f93e8a17045524 (diff)
downloadbarebox-08c62ae2fa9378732588ef7b9a9120b377d26d1e.tar.gz
barebox-08c62ae2fa9378732588ef7b9a9120b377d26d1e.tar.xz
Merge branch 'for-next/truncate'
Diffstat (limited to 'include')
-rw-r--r--include/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index 80aa8d821c..6abaaad8b4 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -434,6 +434,7 @@ struct file_operations {
int (*erase)(struct cdev*, loff_t count, loff_t offset);
int (*protect)(struct cdev*, size_t count, loff_t offset, int prot);
int (*memmap)(struct cdev*, void **map, int flags);
+ int (*truncate)(struct cdev*, size_t size);
};
#define MAX_PARTUUID_STR sizeof("00112233-4455-6677-8899-AABBCCDDEEFF")