diff --git a/qtfs/qtfs_server/fsops.c b/qtfs/qtfs_server/fsops.c index 9a665c56616e808bb595b3859a47e6b123a59da0..5062451ee1377f601dac3e8aa7d8d49813630eb2 100644 --- a/qtfs/qtfs_server/fsops.c +++ b/qtfs/qtfs_server/fsops.c @@ -639,6 +639,7 @@ retry: dent = kern_path_create(AT_FDCWD, req->path, &path, flags); if (err_ptr(dent)) { rsp->ret = QTFS_ERR; + rsp->errno = PTR_ERR(dent); qtfs_info("handle mknod path:<%s>, mode:%o in kern_path_create with ret:%ld\n", req->path, req->mode, PTR_ERR(dent)); return sizeof(struct qtrsp_mknod); }