[LU-10764] Incorrect code in ct_archive Created: 05/Mar/18 Updated: 19/Mar/18 Resolved: 15/Mar/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.11.0, Lustre 2.10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Oleg Drokin | Assignee: | Oleg Drokin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
It contains this lovely code: if (sz == 0 || strncmp(buf, dst, sz) != 0) { if (unlink(src) && errno != ENOENT) { CT_ERROR(errno, "cannot unlink symlink '%s'", src); rcf = rcf ? rcf : -errno; goto fini_minor; /* unlink old symlink done */ CT_TRACE("remove old symlink '%s' pointing" " to '%s'", src, buf); } Clearly we want the closing bracket after the goto, so the TRACE could be printed. |
| Comments |
| Comment by Oleg Drokin [ 05/Mar/18 ] |
|
proposed patch in https://review.whamcloud.com/31509 |
| Comment by Gerrit Updater [ 15/Mar/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31509/ |
| Comment by Peter Jones [ 15/Mar/18 ] |
|
Landed for 2.11 |
| Comment by Gerrit Updater [ 15/Mar/18 ] |
|
Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31667 |
| Comment by Gerrit Updater [ 19/Mar/18 ] |
|
John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/31667/ |