cberner / fuser

Filesystem in Userspace (FUSE) for Rust
MIT License
835 stars 114 forks source link

Wrong parameter name of `symlink` #253

Closed cannium closed 1 year ago

cannium commented 1 year ago

When I run ln -s pjdfstest_62de3fe7ed85982892794ca829c1eb8c test, I got the following debug log from fuser:

[2023-07-26T08:02:11.533894Z DEBUG fuser::request] FUSE(1034) ino 0x0000000000000001 SYMLINK target "test", link "pjdfstest_62de3fe7ed85982892794ca829c1eb8c"

But ln has the usage of ln [OPTION]... [-T] TARGET LINK_NAME, meaning in my example, the target should be pjdfstest_62de3fe7ed85982892794ca829c1eb8c and link name should be test, i.e., test -> pjdfstest_62de3fe7ed85982892794ca829c1eb8c if lsed. The fuser interface gives my program parameters in reverse order. Maybe a change of parameter name in symlink interface is fine.