fix: enable long timestamps for xfs

This "fixes" the message like:

```
xfs filesystem being mounted at /var supports timestamps until 2038 (0x7fffffff)
```

We should support Talos beyond 2038, even if we switch to a different
filesystem type by 2038 :)

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Andrey Smirnov 2022-04-15 21:45:26 +03:00
parent be00d77492
commit 2b68c8b67b
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD

View File

@ -27,7 +27,8 @@ func XFS(partname string, setters ...Option) error {
opts := NewDefaultOptions(setters...)
// The ftype=1 naming option is required by overlayfs.
args := []string{"-n", "ftype=1"}
// The bigtime=1 metadata option enables timestamps beyond 2038.
args := []string{"-n", "ftype=1", "-m", "bigtime=1"}
if opts.Force {
args = append(args, "-f")