sbin/hammer: Remove meaningless sscanf for "@@PFS%d" format
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 21 Sep 2016 01:48:39 +0000 (10:48 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 6 Oct 2016 20:33:08 +0000 (05:33 +0900)
commit143313913f4251064142972c3a6c8b94660b4fab
tree73d62f645c21c50735810d29d78bf16a2bd963c1
parentec206eb9d5e9317a7365a123f0b28947d257e176
sbin/hammer: Remove meaningless sscanf for "@@PFS%d" format

This isn't necessary as userspace never reads "@@PFS%d" via readlink(2).
"@@%jx:%d" covers all the necessary patterns.

It also shouldn't be here because the first stat(2) call in this
function ignores the result due to possible slave PFS (before once
synced with a master PFS), so an arbitrary string that matches this
"@@PFS%d" pattern for path argument (whether it really exists or not)
makes this function return non negative fd while it should return -1.

If "@@PFS%d" is the name of an existing file or a directory, then
that's also not what this function is looking for, so it can still
be ignored.
sbin/hammer/cmd_pfs.c