diff mbox series

[2/4] xfs/122: add legacy timestamps to ondisk checker

Message ID 161896459378.776452.5480197157832099240.stgit@magnolia (mailing list archive)
State New
Headers show
Series fstests: widen timestamps to deal with y2038+ | expand

Commit Message

Darrick J. Wong April 21, 2021, 12:23 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Add these new ondisk structures.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
---
 tests/xfs/122     |    1 +
 tests/xfs/122.out |    1 +
 2 files changed, 2 insertions(+)

Comments

Allison Henderson April 22, 2021, 9:16 p.m. UTC | #1
On 4/20/21 5:23 PM, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> Add these new ondisk structures.
> 
> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
> Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Looks ok
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>

> ---
>   tests/xfs/122     |    1 +
>   tests/xfs/122.out |    1 +
>   2 files changed, 2 insertions(+)
> 
> 
> diff --git a/tests/xfs/122 b/tests/xfs/122
> index 322e1d81..c8593315 100755
> --- a/tests/xfs/122
> +++ b/tests/xfs/122
> @@ -181,6 +181,7 @@ struct xfs_iext_cursor
>   struct xfs_ino_geometry
>   struct xfs_attrlist
>   struct xfs_attrlist_ent
> +struct xfs_legacy_ictimestamp
>   EOF
>   
>   echo 'int main(int argc, char *argv[]) {' >>$cprog
> diff --git a/tests/xfs/122.out b/tests/xfs/122.out
> index b0773756..f229465a 100644
> --- a/tests/xfs/122.out
> +++ b/tests/xfs/122.out
> @@ -97,6 +97,7 @@ sizeof(struct xfs_inode_log_format) = 56
>   sizeof(struct xfs_inode_log_format_32) = 52
>   sizeof(struct xfs_inumbers) = 24
>   sizeof(struct xfs_inumbers_req) = 64
> +sizeof(struct xfs_legacy_timestamp) = 8
>   sizeof(struct xfs_log_dinode) = 176
>   sizeof(struct xfs_map_extent) = 32
>   sizeof(struct xfs_phys_extent) = 16
>
diff mbox series

Patch

diff --git a/tests/xfs/122 b/tests/xfs/122
index 322e1d81..c8593315 100755
--- a/tests/xfs/122
+++ b/tests/xfs/122
@@ -181,6 +181,7 @@  struct xfs_iext_cursor
 struct xfs_ino_geometry
 struct xfs_attrlist
 struct xfs_attrlist_ent
+struct xfs_legacy_ictimestamp
 EOF
 
 echo 'int main(int argc, char *argv[]) {' >>$cprog
diff --git a/tests/xfs/122.out b/tests/xfs/122.out
index b0773756..f229465a 100644
--- a/tests/xfs/122.out
+++ b/tests/xfs/122.out
@@ -97,6 +97,7 @@  sizeof(struct xfs_inode_log_format) = 56
 sizeof(struct xfs_inode_log_format_32) = 52
 sizeof(struct xfs_inumbers) = 24
 sizeof(struct xfs_inumbers_req) = 64
+sizeof(struct xfs_legacy_timestamp) = 8
 sizeof(struct xfs_log_dinode) = 176
 sizeof(struct xfs_map_extent) = 32
 sizeof(struct xfs_phys_extent) = 16