diff options
author | Suriyan Ramasami <suriyan.r@gmail.com> | 2014-11-17 14:39:35 -0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-23 06:49:04 -0500 |
commit | 1ad0b98a067a133c0e8a182649a76a4afd739594 (patch) | |
tree | 26f5ce4468fb8886efee020e31257f62c5feaca4 /common/env_fat.c | |
parent | 64553717bb3552f736090298ea952cb5ef07ef75 (diff) | |
download | u-boot-1ad0b98a067a133c0e8a182649a76a4afd739594.tar.gz |
fat: Prepare API change for files greater than 2GB
Change the internal FAT functions to use loff_t for offsets.
Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
[trini: Fix fs/fat/fat.c for min3 updates]
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'common/env_fat.c')
-rw-r--r-- | common/env_fat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/env_fat.c b/common/env_fat.c index 8db0160ceb..e4c848935a 100644 --- a/common/env_fat.c +++ b/common/env_fat.c @@ -41,6 +41,7 @@ int saveenv(void) disk_partition_t info; int dev, part; int err; + loff_t size; err = env_export(&env_new); if (err) @@ -59,7 +60,8 @@ int saveenv(void) return 1; } - err = file_fat_write(FAT_ENV_FILE, (void *)&env_new, sizeof(env_t)); + err = file_fat_write(FAT_ENV_FILE, (void *)&env_new, 0, sizeof(env_t), + &size); if (err == -1) { printf("\n** Unable to write \"%s\" from %s%d:%d **\n", FAT_ENV_FILE, FAT_ENV_INTERFACE, dev, part); |