1.1 --- a/libfsclient/lib/src/client.cc Sat May 11 01:47:53 2024 +0200
1.2 +++ b/libfsclient/lib/src/client.cc Sat May 11 19:17:09 2024 +0200
1.3 @@ -209,7 +209,7 @@
1.4 if (file->object_flags & OBJECT_SUPPORTS_MMAP)
1.5 return client_mmap(file, client_tell(file), count, 0, 0,
1.6 file_region_flags(file->flags));
1.7 - else if (pipe_current(file, 0))
1.8 + else if (pipe_current(file))
1.9 return NULL;
1.10 }
1.11
1.12 @@ -278,8 +278,7 @@
1.13 stream->flags = flags;
1.14 stream->ref = ref;
1.15
1.16 - /* Synchronise the state of the stream, testing for pipe-based access and
1.17 - switching to memory mapped access if not supported. */
1.18 + /* Restore the state of the stream. */
1.19
1.20 client_sync_stream(stream);
1.21
1.22 @@ -311,12 +310,6 @@
1.23 if (!client_opened(file))
1.24 return -L4_EINVAL;
1.25
1.26 - long err = pipe_current(file, 1);
1.27 -
1.28 - if (err != -L4_EBADPROTO)
1.29 - return err;
1.30 -
1.31 - file->object_flags |= OBJECT_SUPPORTS_MMAP;
1.32 return file_refresh(file);
1.33 }
1.34
1.35 @@ -568,7 +561,7 @@
1.36 if (!client_opened(file))
1.37 return -L4_EINVAL;
1.38
1.39 - return pipe_current(file, 0);
1.40 + return pipe_current(file);
1.41 }
1.42
1.43