History log of /openbmc/phosphor-ipmi-flash/bmc/file_handler.cpp (Results 1 – 7 of 7)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 3d73712f 01-Feb-2025 Patrick Williams <patrick@stwcx.xyz>

clang-format: update latest spec and reformat

Copy the latest format file from the docs repository and apply.

Change-Id: If81a5a0bc8458a6feb94ba5c52adbe7294d43475
Signed-off-by: Patrick Williams <p

clang-format: update latest spec and reformat

Copy the latest format file from the docs repository and apply.

Change-Id: If81a5a0bc8458a6feb94ba5c52adbe7294d43475
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 42a44c28 16-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

Change-Id: I09e19a126d456dc184fd70e82d4e4e4217fa8ee7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# df82a46f 25-Oct-2021 Willy Tu <wltu@google.com>

bmc: remove redundant ‘std::move’ call

```
../bmc/file_handler.cpp:70:21: error: redundant move in return statement [-Werror=redundant-move]
70 | return std::move(ret);
| ~~~

bmc: remove redundant ‘std::move’ call

```
../bmc/file_handler.cpp:70:21: error: redundant move in return statement [-Werror=redundant-move]
70 | return std::move(ret);
| ~~~~~~~~~^~~~~
../bmc/file_handler.cpp:70:21: note: remove ‘std::move’ call
cc1plus: all warnings being treated as errors
```

Change-Id: I07b7ac5c715a53fc5d78cba5dba4aa5b7407304c
Signed-off-by: Willy Tu <wltu@google.com>

show more ...


# ba90fd7a 22-Oct-2021 William A. Kennington III <wak@google.com>

bmc: Simplify file handler

This greatly reduces the number of checks made against file operations
and fixes an issue with reading 0 length files.

Change-Id: I3d63ad0a3a49d6efbd047baadff3c0fe363b417

bmc: Simplify file handler

This greatly reduces the number of checks made against file operations
and fixes an issue with reading 0 length files.

Change-Id: I3d63ad0a3a49d6efbd047baadff3c0fe363b4174
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


# 56a2273f 23-Oct-2020 Jason Ling <jasonling@google.com>

extend file_handler to support reads

Problem: the upcomming version handler will need to read from files.
Currently file hander (image handler) does not support reads.

Solution: Add read support by

extend file_handler to support reads

Problem: the upcomming version handler will need to read from files.
Currently file hander (image handler) does not support reads.

Solution: Add read support by providing an optional mode parameter.

Tests added:
FileHanderTest added to
- Test out open for reads
- Test out reading out bytes and verifying size and content
- Test out trying to read beyond EOF
- Test out offset reads that go beyond EOF

Tested:
Existing unit tests pass
New unit tests for reading all pass

Signed-off-by: Jason Ling <jasonling@google.com>
Change-Id: Ie416a6b4b452d8d04fa158bd55989d07a891896f

show more ...


# 9b37b095 28-May-2020 Patrick Venture <venture@google.com>

update gcc10 and clang-format10

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I72239b884615d26b2c4311c49a26e2eced0a1fb0


Revision tags: v1.0
# f0c71df2 26-Jun-2019 Patrick Venture <venture@google.com>

move bmc code into bmc folder

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I2407359461a1a2f0e733ff8cd0cb1744b6304c32