07 May, 2018

1 commit

  • 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: Tom Rini

    Tom Rini
     

03 Dec, 2016

1 commit

  • Now that we free resources in sandbox_fs_ls Coverity is letting us know
    that in some cases we might leak. So in case of error we should still
    let os_dirent_free free anything that was allocated.

    Fixes: 86167089b71c ("sandbox/fs: Free memory allocated by os_dirent_ls")
    Reported-by: Coverity (CID: 153450)
    Cc: Stefan Brüns
    Cc: Simon Glass
    Signed-off-by: Tom Rini
    Reviewed-by: Simon Glass

    Tom Rini
     

12 Oct, 2016

1 commit


15 Mar, 2016

1 commit


20 Apr, 2015

1 commit

  • Only do sandbox filesystem access when using the hostfs device
    interface, rather then falling back to it in all cases. This prevents
    confusion situations due to the fallback being taken rather then an
    unsupported error being raised.

    Signed-off-by: Sjoerd Simons
    Reviewed-by: Simon Glass
    Acked-by: Simon Glass

    Sjoerd Simons
     

23 Nov, 2014

2 commits


09 Aug, 2014

1 commit

  • 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: Stephen Warren

    Stephen Warren
     

19 Feb, 2014

1 commit


18 Nov, 2013

1 commit


01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


01 May, 2013

1 commit

  • This allows write of files from the host filesystem in sandbox. There is
    currently no concept of overwriting the file and removing its existing
    contents - all writing is done on top of what is there. This means that
    writing 10 bytes to the start of a 1KB file will only update those 10
    bytes, not truncate the file to 10 byte slong.

    If the file does not exist it is created.

    Signed-off-by: Simon Glass

    Simon Glass
     

05 Mar, 2013

1 commit