mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
udf: convert inode stamps to timespec64
The VFS structures are finally converted to always use 64-bit timestamps, and this file system can represent a long range of on-disk timestamps already, so now let's fit in the missing bits for udf. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
813835028e
commit
c3b9cecd89
7 changed files with 28 additions and 41 deletions
|
@ -41,7 +41,7 @@
|
|||
#include <linux/time.h>
|
||||
|
||||
void
|
||||
udf_disk_stamp_to_time(struct timespec *dest, struct timestamp src)
|
||||
udf_disk_stamp_to_time(struct timespec64 *dest, struct timestamp src)
|
||||
{
|
||||
u16 typeAndTimezone = le16_to_cpu(src.typeAndTimezone);
|
||||
u16 year = le16_to_cpu(src.year);
|
||||
|
@ -70,9 +70,9 @@ udf_disk_stamp_to_time(struct timespec *dest, struct timestamp src)
|
|||
}
|
||||
|
||||
void
|
||||
udf_time_to_disk_stamp(struct timestamp *dest, struct timespec ts)
|
||||
udf_time_to_disk_stamp(struct timestamp *dest, struct timespec64 ts)
|
||||
{
|
||||
long seconds;
|
||||
time64_t seconds;
|
||||
int16_t offset;
|
||||
struct tm tm;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue