I was trying to set the change date on a file to well into the future so it always showed up at the top of a sorted list.
The results I get from executing: touch -d '30 jan 38' aaa.txt
indicates that the file system is incapable of storing dates beyond 18 Jan 2938.
Setting to any date beyond that maximum shows as 19 Jan 2038.
That is somewhat better than a CentOS VM I tried it on which comes up with what look like random dates, and it shows that someone has done some damage limitation but it really needs fixing.
According to Wikipedia (XFS) the supported date range is December 13, 1901 – July 2, 2486. See xfs: widen timestamps to deal with y2038 which describes a patch put in place in 2020.
Someone develops, for example XFS. Red Hat has forked a version of XFS for RHEL 8. Red Hat backports patches to their RHEL 8 branch of XFS. Alma 8 has what RHEL 8 has.
RHEL 8 was released in 2019, so the XFS in it was forked from upstream before that. It is up to Red Hat to incorporate patches. The RHEL 8 will EOL before 2038; support for distant future might not have high priority in it.
In addition to ‘df -T’, there are also lsblk -o name,size,type,fstype,mountpoints and findmnt that can show FSTYPE.
i’ve got a centos 5.11 vm with ext3 that fails but that’s because its a 32-bit install.
i can’t get any other installs of anything else to fail and that includes jfs and ext4 partitions that probably started life on fedora13.
i’ve also got an almalinux 8.7 box that used to run centos with xfs and that works fine too.
are you sure you’re not running a 32-bit install or something (not that there ever was one iirc)? not a raspberry pi or anything odd? what does “uname -a” return? what cpu is it?
if you installed 8.6 then you can “dnf upgrade” to 8.7 but i don’t see that making any difference.
you sure you’re not trying to write to /boot/uefi which will be fat32?
As an aside, having upgraded to V9.1, anytime I run dnf (or yum) I get these two SHA1 warnings - even if there is nothing being done.
dnf upgrade
warning: Signature not supported. Hash algorithm SHA1 not available.
warning: Signature not supported. Hash algorithm SHA1 not available.
Last metadata expiration check: 0:42:59 ago on Mon 13 Feb 2023 05:13:55 GMT.
Dependencies resolved.
Nothing to do.
Complete!