- Nov 09, 2018
-
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Marc Vef authored
bugfix: rmdir must not remove regular file See merge request zdvresearch_bsc/adafs!99
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
- Nov 08, 2018
- Nov 07, 2018
-
-
Tommaso Tocci authored
the functionality wasn't used at all and it will be implemented later with a different approach
-
Tommaso Tocci authored
- Added adafs_pwrite and adafs_pread functions: they accept an OpenFile pointer instead of a fd so that can be called by function that already accessed the OpenFileMap. - Moved the writev function into internal adafs functions. - Added internal adafs_write function: instead messing up with the file position at the interception layer, we can use this internal function that hides the update of the file position two.
-
Tommaso Tocci authored
various metadata related improvements See merge request zdvresearch_bsc/adafs!96
-
Tommaso Tocci authored
Instead of passing only the mode as paramenter, we now pass an entire Metadata object in such a way that the parameter can be configured at compile time. For instace if we support symlinks we would like also to pass the target path
-
Tommaso Tocci authored
-
Tommaso Tocci authored
Can be used to retrieve the Metadata object for a named path In several places the adafs_stat function have been replaced with this new adafs_metadata. This allowed to avoid the construnction of the additional `struct stat`.
-
Tommaso Tocci authored
pos is already set to zero in the OpenFile constructor, thus there is no need to do that also in the OpenDir constructor
-
- Nov 05, 2018
-
-
Tommaso Tocci authored
fix buffer overflow: readlink write See merge request zdvresearch_bsc/adafs!94
-
Tommaso Tocci authored
readlink write at most PATH_MAX, thus we need to support also the worst case scenario in which all the bytes are written.
-
Marc Vef authored
Bugfix: links to pipe raise exception See merge request zdvresearch_bsc/adafs!95
-
Tommaso Tocci authored
In the kernel VFS some file descriptors under /proc/<PID>/fd/ could be links to a pipe, this is a special case in which the `readlink` function would not work. So when we detect this case we forward to kernel
-
Tommaso Tocci authored
Path resolution Closes #56 See merge request zdvresearch_bsc/adafs!91
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
During resolution of `..` component the last slash position won't be updated.
-
Tommaso Tocci authored
number of matched component should be decremented only when component that was counted as matched gets removed. for instance when `/tmp/ext/..` gets resolved to `/tmp` we should not decrement the matched counter cause we didn't match ext before.
-
Tommaso Tocci authored
when resolving path we don't want always to resolve also the last components if it is a link. Cause in some cases we want exactly the path of that link and not the one it points to. lstat and readlink are some example of functions that don't want to resolve the last link.
-
Tommaso Tocci authored
-
- Nov 04, 2018
-
-
Tommaso Tocci authored
relativize path now accepts a file descriptor. If fd is AT_FDCWD relative path need to be considered with respect to the current working directory. Otherwise the path is relative to the directory with the given file descriptor
-
Tommaso Tocci authored
when the resolved path is the root dir we were returning an empty string
-
Tommaso Tocci authored
when only PSP are given as input path '//////', we got segfault
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-