Skip to content
Snippets Groups Projects
  1. Oct 17, 2019
  2. Aug 11, 2019
  3. Jun 20, 2019
  4. Apr 10, 2019
  5. Feb 09, 2019
    • Marek Vasut's avatar
      fs: ext4: Unmount FS in do_fs_type() · e531c673
      Marek Vasut authored
      
      Unlike other generic FS accessors, fs_get_info() does not call fs_close()
      at the end of it's operation. Thus, using fs_get_info() in do_fs_type()
      without calling fs_close() causes potential memory leak by creating new
      filesystem structures on each call of do_fs_type().
      
      The test case to trigger this problem is as follows. It is required to
      have ext4 filesystem on the first partition of the SDMMC device, since
      ext4 requires stateful mount and causes memory allocation.
      => while true ; do mmc rescan ; fstype mmc 1 ; done
      Eventually, the mounting of ext4 will fail due to malloc failures
      and the filesystem will not be correctly detected.
      
      This patch fixes the problem by adding the missing fs_close().
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@konsulko.com>
      e531c673
  6. Feb 02, 2019
  7. Feb 01, 2019
  8. Jan 16, 2019
  9. Dec 02, 2018
  10. Sep 23, 2018
  11. Aug 13, 2018
  12. May 30, 2018
  13. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  14. Jan 19, 2018
  15. Oct 16, 2017
  16. Oct 03, 2017
  17. Sep 15, 2017
  18. Aug 16, 2017
  19. Mar 14, 2016
  20. Jan 19, 2016
  21. Jan 08, 2016
  22. Oct 24, 2015
  23. Aug 13, 2015
  24. Apr 18, 2015
  25. Jan 29, 2015
  26. Dec 01, 2014
  27. Nov 23, 2014
    • Suriyan Ramasami's avatar
      fs: API changes enabling extra parameter to return size of type loff_t · d455d878
      Suriyan Ramasami authored
      
      The sandbox/ext4/fat/generic fs commands do not gracefully deal with files
      greater than 2GB. Negative values are returned in such cases.
      
      To handle this, the fs functions have been modified to take an additional
      parameter of type "* loff_t" which is then populated. The return value
      of the fs functions are used only for error conditions.
      
      Signed-off-by: default avatarSuriyan Ramasami <suriyan.r@gmail.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      [trini: Update board/gdsys/p1022/controlcenterd-id.c,
      drivers/fpga/zynqpl.c for changes]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      d455d878
    • Christian Gmeiner's avatar
      fs: make it possible to read the filesystem UUID · 59e890ef
      Christian Gmeiner authored
      
      Some filesystems have a UUID stored in its superblock. To
      allow using root=UUID=... for the kernel command line we
      need a way to read-out the filesystem UUID.
      
      changes rfc -> v1:
       - make the environment variable an option parameter. If not
         given, the UUID is printed out. If given, it is stored in the env
         variable.
       - corrected typos
       - return error codes
      
      changes v1 -> v2:
       - fix return code of do_fs_uuid(..)
       - document do_fs_uuid(..)
       - implement fs_uuid_unsuported(..) be more consistent with the
         way other optional functionality works
      
      changes v2 -> v3:
       - change ext4fs_uuid(..) to make use of #if .. #else .. #endif
         construct to get rid of unreachable code
      
      Hit any key to stop autoboot:  0
      => fsuuid
      fsuuid - Look up a filesystem UUID
      
      Usage:
      fsuuid <interface> <dev>:<part>
          - print filesystem UUID
      fsuuid <interface> <dev>:<part> <varname>
          - set environment variable to filesystem UUID
      
      => fsuuid mmc 0:1
      d9f9fc05-45ae-4a36-a616-fccce0e4f887
      => fsuuid mmc 0:2
      eb3db83c-7b28-499f-95ce-9e0bb21cda81
      => fsuuid mmc 0:1 uuid1
      => fsuuid mmc 0:2 uuid2
      => printenv uuid1
      uuid1=d9f9fc05-45ae-4a36-a616-fccce0e4f887
      => printenv uuid2
      uuid2=eb3db83c-7b28-499f-95ce-9e0bb21cda81
      =>
      
      Signed-off-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
      Acked-by: default avatarStephen Warren <swarren@nvidia.com>
      59e890ef
  28. Aug 09, 2014
    • Stephen Warren's avatar
      fs: implement size/fatsize/ext4size · cf659819
      Stephen Warren authored
      
      These commands may be used to determine the size of a file without
      actually reading the whole file content into memory. This may be used
      to determine if the file will fit into the memory buffer that will
      contain it. In particular, the DFU code will use it for this purpose
      in the next commit.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      cf659819
  29. Jul 22, 2014
Loading