summaryrefslogtreecommitdiffstats
path: root/include/envfs.h
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2014-07-31 12:39:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-08-01 08:24:00 +0200
commit72ce27f8e02524170a922d2f6a6c73c5e4b5b5cd (patch)
tree51f5a8b71d1f24eac2bb38f18cdbf4f0be435384 /include/envfs.h
parentc4c7b16588d22d99b7b9047fa0d0e1d8cb530774 (diff)
downloadbarebox-72ce27f8e02524170a922d2f6a6c73c5e4b5b5cd.tar.gz
barebox-72ce27f8e02524170a922d2f6a6c73c5e4b5b5cd.tar.xz
envfs: change API to be able to forward special flags into the envfs superblock
In order to be able to mark an stored envfs image with special features (intentional ignore for example), we now can feed forward these flags. By forwarding a '0' for the flags nothing changes because the envfs superblock was already allocated with xzalloc. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/envfs.h')
-rw-r--r--include/envfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/envfs.h b/include/envfs.h
index beae38acf5..fdcb8a8d97 100644
--- a/include/envfs.h
+++ b/include/envfs.h
@@ -93,7 +93,7 @@ struct envfs_super {
#define ENV_FLAG_NO_OVERWRITE (1 << 0)
int envfs_load(const char *filename, const char *dirname, unsigned flags);
-int envfs_save(const char *filename, const char *dirname);
+int envfs_save(const char *filename, const char *dirname, unsigned flags);
int envfs_load_from_buf(void *buf, int len, const char *dir, unsigned flags);
/* defaults to /dev/env0 */