L4Re/departure

Change of libfsclient/lib/src/client.cc

171:ac9e90982166
libfsclient/lib/src/client.cc
     1.1 --- a/libfsclient/lib/src/client.cc	Sat Aug 07 23:19:20 2021 +0200
     1.2 +++ b/libfsclient/lib/src/client.cc	Sun Aug 08 23:12:34 2021 +0200
     1.3 @@ -42,7 +42,7 @@
     1.4  {
     1.5    long err;
     1.6  
     1.7 -  if (file->can_mmap)
     1.8 +  if (file->object_flags & OBJECT_SUPPORTS_MMAP)
     1.9    {
    1.10      /* Where the position is outside the current region, re-map. */
    1.11  
    1.12 @@ -147,7 +147,7 @@
    1.13  {
    1.14    if (file->memory == NULL)
    1.15    {
    1.16 -    if (file->can_mmap)
    1.17 +    if (file->object_flags & OBJECT_SUPPORTS_MMAP)
    1.18        return client_mmap(file, client_tell(file), count);
    1.19      else if (pipe_current(file))
    1.20        return NULL;
    1.21 @@ -551,7 +551,7 @@
    1.22  
    1.23    offset_t needed_size = file_data_current_position(file) + count;
    1.24  
    1.25 -  if (file->has_size)
    1.26 +  if (file->object_flags & OBJECT_HAS_SIZE)
    1.27    {
    1.28      if (file->size < needed_size)
    1.29      {