Changeset 77864 in vbox for trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
- Timestamp:
- Mar 24, 2019 2:50:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r77863 r77864 1096 1096 static int vbsf_unlink_worker(struct inode *parent, struct dentry *dentry, int fDirectory) 1097 1097 { 1098 int rc, err;1099 1098 struct vbsf_super_info *sf_g = VBSF_GET_SUPER_INFO(parent->i_sb); 1100 1099 struct vbsf_inode_info *sf_parent_i = VBSF_GET_INODE_INFO(parent); 1101 1100 SHFLSTRING *path; 1101 int rc; 1102 1102 1103 1103 TRACE(); 1104 BUG_ON(!sf_g); 1105 1106 err = vbsf_path_from_dentry(sf_g, sf_parent_i, dentry, &path, __func__); 1107 if (!err) { 1104 1105 rc = vbsf_path_from_dentry(sf_g, sf_parent_i, dentry, &path, __func__); 1106 if (!rc) { 1108 1107 VBOXSFREMOVEREQ *pReq = (VBOXSFREMOVEREQ *)VbglR0PhysHeapAlloc(RT_UOFFSETOF(VBOXSFREMOVEREQ, StrPath.String) 1109 1108 + path->u16Size); … … 1123 1122 if (RT_SUCCESS(rc)) { 1124 1123 sf_parent_i->force_restat = true; /* directory access/change time changed */ 1125 err= 0;1124 rc = 0; 1126 1125 } else if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND) { 1127 1126 LogFunc(("(%d): VbglR0SfRemove(%s) failed rc=%Rrc; calling d_drop on %p\n", 1128 1127 fDirectory, path->String.ach, rc, dentry)); 1129 1128 d_drop(dentry); 1129 rc = 0; /** @todo ??? */ 1130 1130 } else { 1131 1131 LogFunc(("(%d): VbglR0SfRemove(%s) failed rc=%Rrc\n", fDirectory, path->String.ach, rc)); 1132 err= -RTErrConvertToErrno(rc);1132 rc = -RTErrConvertToErrno(rc); 1133 1133 } 1134 1134 VbglR0PhysHeapFree(pReq); 1135 1135 } else 1136 err= -ENOMEM;1136 rc = -ENOMEM; 1137 1137 kfree(path); 1138 1138 } 1139 return err;1139 return rc; 1140 1140 } 1141 1141
Note:
See TracChangeset
for help on using the changeset viewer.