Skip to content

ignore ENOTSUPP (524) for fiemap error #644

@defaziogiancarlo

Description

@defaziogiancarlo

In mfu_flist_copy.c:mfu_copy_file_fiemap()

    if (ioctl(mfu_src_file->fd, FS_IOC_FIEMAP, fiemap) < 0) {
        if (errno == ENOTSUP) {
            /* silently ignore */
        } else {
            MFU_LOG(MFU_LOG_ERR, "fiemap ioctl() failed for src '%s' (errno=%d %s)",
                    src, errno, strerror(errno));
        }
        goto fail_fiemap;
    }

When errno is ENOTSUP (95) the error message is skipped, but otherwise the behavior is the same. However lustre often returns ENOTSUPP (524) as mentioned in #545. I think that (errno == 524) should be silently ignored as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions