]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_fsr: convert fsrallfs to use time_t instead of int
authorAndrey Albershteyn <aalbersh@redhat.com>
Tue, 23 Apr 2024 12:36:17 +0000 (14:36 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 23 Apr 2024 13:02:58 +0000 (15:02 +0200)
commit9c6e9d8de2d236f630efdd6fddb6277e8664989b
treee650b4a258bf78dc50c03c1d11757fbf2388d41f
parentc4dd920b8a8900046e0785e55a43c7190b82c59a
xfs_fsr: convert fsrallfs to use time_t instead of int

Convert howlong argument to a time_t as it's truncated to int, but in
practice this is not an issue as duration will never be this big.

Add check for howlong to fit into int (printf can use int format
specifier). Even longer interval doesn't make much sense.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
fsr/xfs_fsr.c