[U-Boot] [PATCH v7 0/6] fs: fat/ext4/sandbox - Deal with files greater than 2GB

Suriyan Ramasami suriyan.r at gmail.com
Mon Nov 10 21:17:49 CET 2014


The commands fatls/ext4ls give negative values when dealing with files
greater than 2GB.
The commands fatsize/ext4size do not update the variable filesize for
these files.

To deal with this, the fs functions have been modified to take an additional
parameter of type "* loff_t" which is then populated. The return value of th
fs functions are used only for error conditions.

Changes in v7:
* No changes
* Split it so that its bisectable.
* Split it so that its bisectable.
* Split it so that its bisectable.
* Simon - API change in separate patch
* Simon
 - take care of fat/vfat in mkfs
 - fs/nonfs test code repeats, put it in function

Suriyan Ramasami (6):
  sandbox: Use md5sum and fatwrite to enable testing of fs commands
  fat: prepare for API change for files greater than 2GB
  ext4: prepare for API change for files greater than 2GB
  sandbox: prepare for API change for files greater than 2GB
  fs: API changes to enable extra parameter to return size of type
    loff_t
  sandbox: script for testing sandbox/ext4/fat/fs commands

 arch/sandbox/cpu/os.c     |  13 +-
 arch/sandbox/cpu/state.c  |   8 +-
 common/board_f.c          |   8 +-
 common/cmd_ext4.c         |  61 +----
 common/cmd_fat.c          |   9 +-
 common/cmd_fs.c           |  17 ++
 common/cmd_md5sum.c       |  12 +-
 common/env_fat.c          |   4 +-
 fs/ext4/ext4_common.c     |  24 +-
 fs/ext4/ext4_common.h     |   4 +-
 fs/ext4/ext4_write.c      |  32 +++
 fs/ext4/ext4fs.c          |  37 +--
 fs/fat/fat.c              | 129 ++++++-----
 fs/fat/fat_write.c        |  61 ++---
 fs/fat/file.c             |   4 +-
 fs/fs.c                   |  77 ++++---
 fs/sandbox/sandboxfs.c    |  75 ++++---
 include/configs/sandbox.h |   2 +
 include/ext4fs.h          |  13 +-
 include/fat.h             |  18 +-
 include/fs.h              |  41 ++--
 include/os.h              |   5 +-
 include/sandboxfs.h       |  14 +-
 test/fs/fs-test.sh        | 561 ++++++++++++++++++++++++++++++++++++++++++++++
 24 files changed, 945 insertions(+), 284 deletions(-)
 create mode 100755 test/fs/fs-test.sh

-- 
1.9.1



More information about the U-Boot mailing list