Skip to content

statx() with flags AT_STATX_DONT_SYNC returns ERRNO 22 (invalid argument) #53

@planetrocky

Description

@planetrocky

statx() with flags:

int flags = AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_DONT_SYNC;

returns ERRNO 22 (EINVAL = invalid argument) on a btrfs volume on a Synology NAS on some files*; swapping the flags to use AT_STATX_SYNC_AS_STAT, scans a 100TB array without a single stat error:

int flags = AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT;
  • nothing special about the files that errored, I guess that's how AT_STATX_DONT_SYNC works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions