VirtualBox

Changeset 78134 in vbox


Ignore:
Timestamp:
Apr 16, 2019 12:31:43 AM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Better logging in vbsf_inode_lookup(). bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r77961 r78134  
    692692            pReq->CreateParms.CreateFlags = SHFL_CF_LOOKUP | SHFL_CF_ACT_FAIL_IF_NEW;
    693693
    694             LogFunc(("Calling VbglR0SfHostReqCreate on %s\n", path->String.utf8));
     694            SFLOG2(("vbsf_inode_lookup: Calling VbglR0SfHostReqCreate on %s\n", path->String.utf8));
    695695            rc = VbglR0SfHostReqCreate(pSuperInfo->map.root, pReq);
    696696            if (RT_SUCCESS(rc)) {
     
    715715                }
    716716            } else if (rc == VERR_INVALID_NAME) {
     717                SFLOGFLOW(("vbsf_inode_lookup: VERR_INVALID_NAME\n"));
    717718                dret = dentry; /* this can happen for names like 'foo*' on a Windows host */
     719            } else if (rc == VERR_FILENAME_TOO_LONG) {
     720                SFLOG(("vbsf_inode_lookup: VbglR0SfHostReqCreate failed on %s: VERR_FILENAME_TOO_LONG\n", path->String.utf8));
     721                dret = (struct dentry *)ERR_PTR(-ENAMETOOLONG);
    718722            } else {
    719                 LogFunc(("VbglR0SfHostReqCreate failed on %s: %Rrc\n", path->String.utf8, rc));
     723                SFLOG(("vbsf_inode_lookup: VbglR0SfHostReqCreate failed on %s: %Rrc\n", path->String.utf8, rc));
    720724                dret = (struct dentry *)ERR_PTR(-EPROTO);
    721725            }
     
    731735                dret = NULL;
    732736            }
    733         } else
     737        } else {
     738            SFLOGFLOW(("vbsf_inode_lookup: -ENOMEM (phys heap)\n"));
    734739            dret = (struct dentry *)ERR_PTR(-ENOMEM);
     740        }
    735741        if (path)
    736742            kfree(path);
    737     } else
     743    } else {
     744        SFLOG(("vbsf_inode_lookup: vbsf_path_from_dentry failed: %d\n", rc));
    738745        dret = (struct dentry *)ERR_PTR(rc);
     746    }
    739747    return dret;
    740748}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette