Commit bccecc15 authored by Claes Sjofors's avatar Claes Sjofors

vol_OidToObject, return status corrected for nonexisting objects

parent 912a5614
...@@ -848,7 +848,8 @@ vol_OidToObject ( ...@@ -848,7 +848,8 @@ vol_OidToObject (
if (op == NULL) { if (op == NULL) {
if (lo_flags & gdb_mLo_remote) { if (lo_flags & gdb_mLo_remote) {
vp = hash_Search(sts, gdbroot->vid_ht, &oid.vid); vp = hash_Search(sts, gdbroot->vid_ht, &oid.vid);
if (vp == NULL) pwr_Return(NULL, sts, GDH__NOSUCHVOL); if (vp == NULL) pwr_Return(NULL, sts, GDH__NOSUCHOBJ);
if (vp->l.flags.b.isNative) pwr_Return(NULL, sts, GDH__NOTMOUNTED);
if (!vp->l.flags.b.isMounted) pwr_Return(NULL, sts, GDH__NOTMOUNTED); if (!vp->l.flags.b.isMounted) pwr_Return(NULL, sts, GDH__NOTMOUNTED);
if (vp->l.flags.m & lo_flags) { if (vp->l.flags.m & lo_flags) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment