Commit c4ed9bb7 authored by Ramon Nou's avatar Ramon Nou
Browse files

Resolve "gkfs_do_write uses int instead of size_t"

parent 0fc872b8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
  
### Fixed
  - Dup3 is supported if O_CLOEXEC is not used (i.e. hexdump) ([!228](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/228))
  - gkfs_do_write uses int instead of ssize_t causing overflow ([!229](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/229))


## [0.9.4] - 2025-03
+1 −1
Original line number Diff line number Diff line
@@ -941,7 +941,7 @@ gkfs_do_write(gkfs::filemap::OpenFile& file, const char* buf, size_t count,
    int err;
    auto path = make_unique<string>(file.path());
    auto is_append = file.get_flag(gkfs::filemap::OpenFile_flags::append);
    auto write_size = 0;
    ssize_t write_size = 0;
    auto num_replicas = CTX->get_replicas();
    LOG(DEBUG, "{}() path: '{}', count: '{}', offset: '{}', is_append: '{}'",
        __func__, *path, count, offset, is_append);