@@ -848,6 +848,21 @@ version_f(
}
v5features.ro_compat |= XFS_SB_FEAT_RO_COMPAT_INOBTCNT;
+ } else if (!strcasecmp(argv[1], "bigtime")) {
+ if (xfs_sb_version_hasbigtime(&mp->m_sb)) {
+ dbprintf(
+ _("bigtime feature is already enabled\n"));
+ exitcode = 1;
+ return 1;
+ }
+ if (!xfs_sb_version_hascrc(&mp->m_sb)) {
+ dbprintf(
+ _("bigtime feature cannot be enabled on pre-V5 filesystems\n"));
+ exitcode = 1;
+ return 1;
+ }
+
+ v5features.incompat |= XFS_SB_FEAT_INCOMPAT_BIGTIME;
} else if (!strcasecmp(argv[1], "extflg")) {
switch (XFS_SB_VERSION_NUM(&mp->m_sb)) {
case XFS_SB_VERSION_1:
@@ -117,6 +117,11 @@ This reduces mount time by caching the size of the inode btrees in the
allocation group metadata.
Once enabled, the filesystem will not be writable by older kernels.
The filesystem cannot be downgraded after this feature is enabled.
+.TP
+.B bigtime
+Upgrade the filesystem to support larger timestamps up to the year 2486.
+Once enabled, the filesystem will not be readable by older kernels.
+The filesystem cannot be downgraded.
.RE
.TP
.BI \-U " uuid"