Whamcloud - gitweb
LU-15644 llog: don't replace llog error with -ENOTDIR
authorMikhail Pershin <mpershin@whamcloud.com>
Sat, 18 May 2024 19:43:05 +0000 (22:43 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 6 Jun 2024 08:05:22 +0000 (08:05 +0000)
commit53d946a1222985fe84300cd8d02bf8946c86fbb0
tree75b168b439cb5a8b534b818609df8a70874f8bc0
parent8b0edd6dcbf79dc91e7dada3bf165dfcbf0a59a0
LU-15644 llog: don't replace llog error with -ENOTDIR

The dt_try_as_dir() contains check for object existence
which is reported as -ENOTDIR after all. In case of llog
that goes to upper level and cause error reporting to
console. It is not relevant neither by error code nor by
debug level

Patch skips check for object existence in case of llog,
it is excessive anyway.
Debug level is reduced as well to don't spawn console
messages in case of -ENOENT, -ESTALE or -EIO errors

Lustre-change: https://review.whamcloud.com/55151
Lustre-commit: bd9839f7dbdf59751e7cdc234602eb338c518104

Fixes: 1ebc9ed460 ("LU-15902 obdclass: dt_try_as_dir() check dir exists")
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Id404204566898a6ac2e258b7824491effc5fc92e
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55152
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_osd.c
lustre/osp/osp_sync.c