search for: mount_local_readlink

Displaying 5 results from an estimated 5 matches for "mount_local_readlink".

2015 Mar 18
2
[PATCH] fuse: resolve absolute links to relative ones
First it strips /sysroot and then finds common prefix aligned on slashes. Next it produces ../ for each slash found in common prefix and concatenates them with the rest of resolved link. Fixes RHBZ#604041 Maros Zatko (1): fuse: resolve absolute links to relative ones src/fuse.c | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) -- 1.9.3
2015 Mar 18
0
[PATCH] fuse: resolve absolute links to relative ones
...and concatenates them with the rest of resolved link. Fixes RHBZ#604041 --- src/fuse.c | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/fuse.c b/src/fuse.c index 3fdb1d4..6c7eee1 100644 --- a/src/fuse.c +++ b/src/fuse.c @@ -386,7 +386,38 @@ mount_local_readlink (const char *path, char *buf, size_t size) if (len > size - 1) len = size - 1; - memcpy (buf, r, len); + buf[0] = '\0'; + size_t offset = 0; + if (STRPREFIX (r, "/sysroot")) { + offset = strlen ("/sysroot") + 1; + size_t i; + for (i = 0; (i <...
2012 Mar 28
2
[PATCH v2] New APIs: mount-local and umount-local using FUSE
This version doesn't crash or cause hung processes or stuck mountpoints, so that's an improvement. Rich.
2012 Mar 27
3
[PATCH 0/3] Enable FUSE support in the API via 'mount-local' call.
This patch is just for review. It enables FUSE support in the API via two new calls, 'guestfs_mount_local' and 'guestfs_umount_local'. FUSE turns out to be very easy to deadlock (necessitating that the machine be rebooted). Running the test from the third patch is usually an effective way to demonstrate this. However I have not yet managed to produce a simple reproducer that
2012 Mar 29
3
[PATCH v3] New APIs: mount-local, mount-local-run and umount-local using FUSE
This changes the proposed API slightly. Previously 'mount-local' generating a 'mounted' event when the filesystem was ready, and from the 'mounted' event you had to effectively do a fork. Now, 'mount-local' just initializes the mountpoint and you have to call 'mount-local-run' to enter the FUSE main loop. Between these calls you can do a fork or whatever