Hi,
thanks to fusecompress-dbg I was able to get the following debug
information:
Breakpoint 1, FuseCompress::symlink (from=0x7f7cadfb9046 "b", to=0xf9d701
"a/mnt1299276009") at FuseCompress.cpp:315
(gdb) p from
$1 = 0x7f7cadfb9046 "b"
(gdb) p to
$2 = 0xf9d701 "a/mnt1299276009"
(gdb) n
(gdb)
(gdb) p g_dirMount
$3 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>>
= {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xf9ad08 "/mnt"}}
(gdb) p g_dirLower
$4 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>>
= {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xf9aca8 "/tmpfs"}}
(gdb) n
(gdb)
(gdb) p fromPath
$5 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>>
= {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xf9aff8 "b"}}
(gdb) p toPath
$6 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>>
= {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xfa3c38 "a/tmpfs1299276009"}}
int FuseCompress::symlink(const char *from, const char *to)
{
to = getpath(to);
// Search for a mount point path and replace it with
// lower storage path.
std::string fromPath(from);
std::string toPath(to);
replace(fromPath, g_dirMount, g_dirLower);
replace(toPath, g_dirMount, g_dirLower);
=> if (::symlink(fromPath.c_str(), toPath.c_str()) == -1)
return -errno;
return 0;
}
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]