summaryrefslogtreecommitdiffstats
path: root/scripts
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 /scripts
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 'scripts')
-rw-r--r--scripts/bareboxenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bareboxenv.c b/scripts/bareboxenv.c
index da420db578..ec6ccfeadb 100644
--- a/scripts/bareboxenv.c
+++ b/scripts/bareboxenv.c
@@ -181,7 +181,7 @@ int main(int argc, char *argv[])
if (verbose)
printf("saving contents of %s to file %s\n", dirname, filename);
- err = envfs_save(filename, dirname);
+ err = envfs_save(filename, dirname, 0);
if (verbose && err)
printf("saving env failed: %d\n", err);