containers/composefs

Issues with struct timespec

alexlarsson opened this issue · 1 comments

We're using struct timespec for the mtime and ctime. However this has format:

struct timespec64 {
	time64_t tv_sec;			/* seconds */
	long	tv_nsec;		/* nanoseconds */
};

Long is 32bit on 32bit, so there is a hole in this struct there.
We should probably use out own struct here which is packed with fixed sizes.