Daniel J Walsh
b92a6544cf
Merge pull request #97 from giuseppe/fix-type
...
main: fix type for flistxattr return
2019-08-01 05:21:37 -04:00
Giuseppe Scrivano
5e325f7d9c
main: fix type for flistxattr return
...
the return type is ssize_t, not size_t.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-31 16:26:01 +02:00
Daniel J Walsh
2393f6c48d
Merge pull request #96 from giuseppe/release-0.5
...
configure.ac: tag new version 0.5
v0.5
2019-07-30 10:33:03 -04:00
Giuseppe Scrivano
cf60f30b86
configure.ac: tag new version 0.5
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-30 12:19:31 +02:00
Daniel J Walsh
95120c05a0
Merge pull request #94 from giuseppe/free-wd
...
main: make sure the work directory is empty
2019-07-29 10:18:59 -04:00
Giuseppe Scrivano
56cc4d3d61
main: fix warnings reported by lgtm.com
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-29 13:36:07 +02:00
Giuseppe Scrivano
cf86b89adc
main: open the fd correctly for reading xattrs
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-29 13:35:23 +02:00
Giuseppe Scrivano
cecbcbb7ad
main: make sure the work directory is empty
...
make sure the work directory is empty when fuse-overlayfs starts.
Closes: https://github.com/containers/fuse-overlayfs/issues/93
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-29 13:35:22 +02:00
Giuseppe Scrivano
f0d76efda5
Merge pull request #95 from giuseppe/lgtm.yml
...
.lgtm.yml: new file
2019-07-29 13:23:38 +02:00
Giuseppe Scrivano
c5218a2a72
.lgtm.yml: new file
...
add instructions for building on lgtm.com.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-29 01:04:41 +02:00
Daniel J Walsh
9a2ef041aa
Merge pull request #92 from giuseppe/fix-file-leak
...
fuse-overlayfs: fix a fd leak when creating new files
2019-07-26 05:49:35 -04:00
Giuseppe Scrivano
4e32e8907d
main: fix fd validity check
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 17:56:30 +02:00
Giuseppe Scrivano
45b8bb85d4
main, rename: use cleanup_close
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 17:50:58 +02:00
Daniel J Walsh
9c77da7d73
Merge pull request #91 from giuseppe/perf-improvements-3
...
perf: improve performance for mkdir and open(O_CREAT)
2019-07-25 11:42:34 -04:00
Giuseppe Scrivano
74f047933b
main: mark dir loaded only if timeout>0
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 16:10:07 +02:00
Giuseppe Scrivano
49c88306d7
main, open: avoid a stat when creating a file
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 15:46:55 +02:00
Giuseppe Scrivano
1a3ae79283
main: fix memory leak
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 15:46:54 +02:00
Giuseppe Scrivano
22246f29f3
main, xattr: fix memory leak
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 15:46:54 +02:00
Giuseppe Scrivano
7e54c97400
main: fix read after free
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 15:46:53 +02:00
Giuseppe Scrivano
79c802f61e
main, open: avoid a lookup if the node is known
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 10:12:11 +02:00
Giuseppe Scrivano
80a0260043
file, open: do not double close fd
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 10:12:10 +02:00
Giuseppe Scrivano
dd744c7fc2
file, open: avoid deleting the whiteout if possible
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 10:12:09 +02:00
Giuseppe Scrivano
6dbc45b821
file, open: create directly the file if possible
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-25 10:12:08 +02:00
Giuseppe Scrivano
348f60a277
file, open: move code to create a file to its function
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-24 17:05:51 +02:00
Giuseppe Scrivano
2404d5f9b1
main, mkdir: create directly the directory if possible
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-24 16:38:01 +02:00
Giuseppe Scrivano
3286532636
main, symlink: avoid a chown if it is not needed
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-24 16:10:14 +02:00
Giuseppe Scrivano
a77edee351
main, open: avoid a chown if it is not needed
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-24 16:09:08 +02:00
Giuseppe Scrivano
0749dd7fb8
main, copyup: avoid a chown if it is not needed
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-24 16:04:38 +02:00
Giuseppe Scrivano
74fa25112a
main, mkdir: avoid a chown if it is not needed
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-24 16:03:58 +02:00
Daniel J Walsh
bd9eb8d5cd
Merge pull request #89 from giuseppe/perf-improvements-2
...
fuse-overlayfs: different performance tweaks continuation of #88
2019-07-24 06:56:29 -04:00
Giuseppe Scrivano
1395753e1a
main, fsync: if fsync is disabled return ENOSYS
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:40 +02:00
Giuseppe Scrivano
99206771b5
main, symlink: skip delete whiteout if not needed
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:39 +02:00
Giuseppe Scrivano
c174cef9f3
main, mkdir: delete whiteout only if necessary
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:38 +02:00
Giuseppe Scrivano
1651770837
main: accept atime/noatime
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:37 +02:00
Giuseppe Scrivano
fcfd937a3d
main, unlink: do not create a whiteout if not necessary
...
if the parent dir is on the upper layer only, there is no need to
create a whiteout file.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:37 +02:00
Giuseppe Scrivano
87deb1d458
main: assume workdir is empty on startup
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:36 +02:00
Giuseppe Scrivano
c99226b70b
main: skip RENAME_WHITEOUT if we cannot use mknod
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:35 +02:00
Giuseppe Scrivano
a4ebbc8361
main: give hint on debugging being disabled
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:34 +02:00
Giuseppe Scrivano
c2d45f7843
main, access: use the cached mode
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:34 +02:00
Giuseppe Scrivano
1237d05c1a
main, readdir: use only st_mode and st_ino
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:33 +02:00
Giuseppe Scrivano
551638090f
main: cache inode st_mode
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:32 +02:00
Giuseppe Scrivano
1545d4bf84
main, mkdir: reuse stat when possible
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:31 +02:00
Giuseppe Scrivano
c5bfc0ba87
main: use malloc instead of calloc
...
the memory will be overwritten.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:31 +02:00
Giuseppe Scrivano
605e17fbf7
main: rpl_stat can reuse existing struct stat
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:30 +02:00
Giuseppe Scrivano
98aeb52ac2
main, mkdir: do not lookup lower layers if not needed
...
if the parent directory is only on the upper layer, there is no need
to look for the ino in the lower layers.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:29 +02:00
Giuseppe Scrivano
f3d66013b3
main: drop present_lowerdir attribute
...
use last_layer instead.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:28 +02:00
Giuseppe Scrivano
64e493e7e4
main: create_directory does unlink only on ENOTDIR
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:28 +02:00
Giuseppe Scrivano
cbf7881f01
main: load_dir updates the node last layer
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:27 +02:00
Giuseppe Scrivano
d99d8684c0
Merge pull request #90 from giuseppe/fix-ubuntu-build
...
build: fix build with older versions of libfuse
2019-07-23 16:14:12 +02:00
Giuseppe Scrivano
4f3862db82
build: fix build with older versions of libfuse
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:02:14 +02:00