]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Change timestamps to unsigned data type.
authorDeepa Dinamani <deepa.kernel@gmail.com>
Tue, 8 Dec 2015 23:10:21 +0000 (15:10 -0800)
committerNeilBrown <neilb@suse.com>
Wed, 16 Dec 2015 01:43:25 +0000 (12:43 +1100)
commit26714713cd2bad9e0bf7f4669f6cc4659ceaab6c
tree80a554e170d086802976123e14380f46b554abe3
parentdbfbca430080de55ce70ba1fcdec44173a0ddc02
mdadm: Change timestamps to unsigned data type.

32 bit signed timestamps will overflow in the year 2038.

Change the user interface mdu_array_info_s structure timestamps:
ctime and utime values used in ioctls GET_ARRAY_INFO and
SET_ARRAY_INFO to unsigned int. This will extend the field to last
until the year 2106.

Add time_after/time_before and supporting typecheck from
the kernel to take care of unsigned time wraparound.

The long term plan is to get rid of ctime and utime values in
this structure as this information can be read from the on-disk
meta data directly.

v0.90 on disk meta data uses u32 for maintaining time stamps.
So this will also last until year 2106.
Assumption is that the usage of v0.90 will be deprecated by
year 2106.

Timestamp fields in the on disk meta data for v1.0 version already
use 64 bit data types.

Signed-off-by: NeilBrown <neilb@suse.com>
Grow.c [changed mode: 0644->0755]
md_u.h
mdadm.h [changed mode: 0644->0755]