Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fsal_status = dir_src->obj_ops.rename(lookup_src, dir_src, oldname,
- dir_dest, newname);
- LogFullDebug(COMPONENT_FSAL, "returned from FSAL rename");
- if (FSAL_IS_ERROR(fsal_status)) {
- LogFullDebug(COMPONENT_FSAL,
- "FSAL rename failed with %s",
- fsal_err_txt(fsal_status));
- goto out;
- }
- if (lookup_dst) {
- /* The issue here is this function call wipes out fsal_status...
- * declaring a new fsal_status local to this block causes crash
- * to go away.
- *
- * This whole code block is suspect...
- */
- fsal_status = fsal_refresh_attrs(lookup_dst);
- if (FSAL_IS_ERROR(fsal_status) &&
- fsal_status.major != ERR_FSAL_STALE)
- goto out;
- }
- out:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement