Bug 221251 - rsync fails to set times with invalid argument (22) error on zfs version 1 filesystems
Summary: rsync fails to set times with invalid argument (22) error on zfs version 1 fi...
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-05 18:55 UTC by Jim Phillips
Modified: 2019-02-20 19:53 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Phillips 2017-08-05 18:55:03 UTC
Following server upgrade from 10.3 to 11.1, rsync scripts copying from ancient Solaris servers (Sparc with UFS filesystems) started giving the following errors while failing to set times and permissions on the affected files:

rsync: failed to set times on "/homes/webserver/counter.date/symp09/.": Invalid argument (22)
rsync: failed to set times on "/homes/webserver/counter.date/symp09/.index.html.MXwwtr": Invalid argument (22)

The problem went away after running "zfs upgrade" on the affected destination filesystems, which were version 1 due to having been transferred via zfs send/recv from an old Solaris server.
Comment 1 Joseph Gleason 2018-01-02 17:40:11 UTC
Me too.

Also, easy to reproduce when doing for example:

# touch -t 199901010111 a
touch: a: Invalid argument
Comment 2 Joseph Gleason 2018-01-02 17:43:17 UTC
The "zfs update" fixed it for me as well.  My filesystem was from a recv of an older version as well.  Probably FreeBSD zfs in 2008.
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2019-02-20 19:53:41 UTC
Closing because 11.2 is out and zfs upgrade fixes it.