* Fix return values to int
* Add support to mg to read files in chunks
* Add support fs_io plugin when read files in chunks
* Change return value to in in read and write of r_fs_plugin_t
* Refactor code of mg command to support streaming
* Truncate destination file if exists
* Removing warnings due to incompatible pointer
* Add offset and size optional parameters to mg cmd
* Fix mg arguments management
* Fix some return values in fs
* Fix and refactor code to read files by chunks using mg
* add format changes
* Using r_num_math to parse the args
* Fixing fs_r2 to remove some warnings
* Remove some debug messages
* Update libr/core/cmd_mount.c
- add `r_fs_file_copy_abs_path` to get the absolute path of a RFSFile, centralizing edge case handling
- use that in `fs_io_read`
- add missing `free (file->path)` in RFSFile destructor
- fix `handlePipes` for fs shell `cat` use case
Specifically, avoid building all plugins as non-static objects,
as well as some supplementary libraries. In fact, a large amount
of plugins was already gated to build as shared objects only with
WITHPIC=1, but this was not done consistently.
This gating has been moved to */p/Makefile.
Building these shared objects is a waste of time and breaks
the --without-pic build unless CFLAGS is forced in the make
invocation.
- fs_io_open: expects the io plugin to return the file size as an usigned int string
- fs_io_read: use name instead of path (because fs_io_open sets the name as absolute path) and require the io plugin to provide file contents as hex encoded string
- fs_io_dir: honor the type provided by the io plugin as a single char followed by a space in each line of the output