|
Lines 1098-1104
Link Here
|
| 1098 |
VOP_UNLOCK(fvp, 0, p); |
1098 |
VOP_UNLOCK(fvp, 0, p); |
| 1099 |
if (VTODE(fdvp)->de_StartCluster != VTODE(tdvp)->de_StartCluster) |
1099 |
if (VTODE(fdvp)->de_StartCluster != VTODE(tdvp)->de_StartCluster) |
| 1100 |
newparent = 1; |
1100 |
newparent = 1; |
| 1101 |
vrele(fdvp); |
|
|
| 1102 |
if (doingdirectory && newparent) { |
1101 |
if (doingdirectory && newparent) { |
| 1103 |
if (error) /* write access check above */ |
1102 |
if (error) /* write access check above */ |
| 1104 |
goto bad; |
1103 |
goto bad; |
|
Lines 1166-1172
Link Here
|
| 1166 |
panic("msdosfs_rename: lost from startdir"); |
1165 |
panic("msdosfs_rename: lost from startdir"); |
| 1167 |
if (!newparent) |
1166 |
if (!newparent) |
| 1168 |
VOP_UNLOCK(tdvp, 0, p); |
1167 |
VOP_UNLOCK(tdvp, 0, p); |
| 1169 |
(void) relookup(fdvp, &fvp, fcnp); |
1168 |
if (relookup(fdvp, &fvp, fcnp) == 0) |
|
|
1169 |
vrele(fdvp); |
| 1170 |
if (fvp == NULL) { |
1170 |
if (fvp == NULL) { |
| 1171 |
/* |
1171 |
/* |
| 1172 |
* From name has disappeared. |
1172 |
* From name has disappeared. |