[PATCH hurd] libshouldbeinlibc: Use 64bit mapped time values in maptime_read when possible

2025-05-02 Thread Zhaoming Luo
Use 64bit mapped time values in maptime_read when possible. The 64bit time values in mapped time will be zero when the kernel does not support 64bit mapped time. --- libshouldbeinlibc/maptime.h | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/libsho

Re: [PATCH v2] libdiskfs: Get the time with higher resolution from kernel when possible

2025-05-02 Thread Samuel Thibault
Zhaoming Luo, le sam. 03 mai 2025 08:30:10 +0800, a ecrit: > On Sat, May 03, 2025 at 02:21:31AM +0200, Samuel Thibault wrote: > > Zhaoming Luo, le sam. 03 mai 2025 08:17:52 +0800, a ecrit: > > > On Sat, May 03, 2025 at 02:10:12AM +0200, Samuel Thibault wrote: > > > > Zhaoming Luo, le ven. 02 mai 20

Re: [PATCH v2] libdiskfs: Get the time with higher resolution from kernel when possible

2025-05-02 Thread Zhaoming Luo
On Sat, May 03, 2025 at 02:21:31AM +0200, Samuel Thibault wrote: > Zhaoming Luo, le sam. 03 mai 2025 08:17:52 +0800, a ecrit: > > On Sat, May 03, 2025 at 02:10:12AM +0200, Samuel Thibault wrote: > > > Zhaoming Luo, le ven. 02 mai 2025 22:45:44 +0800, a ecrit: > > > > Get the time with higher resolu

Re: [PATCH v2] libdiskfs: Get the time with higher resolution from kernel when possible

2025-05-02 Thread Samuel Thibault
Zhaoming Luo, le sam. 03 mai 2025 08:17:52 +0800, a ecrit: > On Sat, May 03, 2025 at 02:10:12AM +0200, Samuel Thibault wrote: > > Zhaoming Luo, le ven. 02 mai 2025 22:45:44 +0800, a ecrit: > > > Get the time with higher resolution from kernel using host_get_time64() > > > when possible. > > > > It

Re: [PATCH v2] libdiskfs: Get the time with higher resolution from kernel when possible

2025-05-02 Thread Zhaoming Luo
On Sat, May 03, 2025 at 02:10:12AM +0200, Samuel Thibault wrote: > Zhaoming Luo, le ven. 02 mai 2025 22:45:44 +0800, a ecrit: > > Get the time with higher resolution from kernel using host_get_time64() > > when possible. > > It seems there's a misunderstanding. I explained that the mapped time > d

Re: [PATCH v2] libdiskfs: Get the time with higher resolution from kernel when possible

2025-05-02 Thread Samuel Thibault
Zhaoming Luo, le ven. 02 mai 2025 22:45:44 +0800, a ecrit: > Get the time with higher resolution from kernel using host_get_time64() > when possible. It seems there's a misunderstanding. I explained that the mapped time does have 64bit precision fields, that's what I mean we want to use, rather th

[PATCH v2] libdiskfs: Get the time with higher resolution from kernel when possible

2025-05-02 Thread Zhaoming Luo
Get the time with higher resolution from kernel using host_get_time64() when possible. --- libdiskfs/node-times.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/libdiskfs/node-times.c b/libdiskfs/node-times.c index 60eabc0f..203232da 100644 --- a/li

Re: [PATCH 0/1] libdiskfs: Get the time with higher resolution from kernel

2025-05-02 Thread Samuel Thibault
Zhaoming Luo, le ven. 02 mai 2025 18:52:49 +0800, a ecrit: > I'm wondering if I should consider the case that host_get_time64() is not > supported Yes, please. I wonder how many times I will have to repeat it: backward compatibility is really important, otherwise people can't try to downgrade ker

[PATCH 0/1] libdiskfs: Get the time with higher resolution from kernel

2025-05-02 Thread Zhaoming Luo
From: zhm I'm wondering if I should consider the case that host_get_time64() is not supported and go back to use maptime_read(). zhm (1): libdiskfs: Get the time with higher resolution from kernel libdiskfs/node-times.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-

[PATCH 1/1 hurd] libdiskfs: Get the time with higher resolution from kernel

2025-05-02 Thread Zhaoming Luo
From: zhm Get the time with higher resolution from kernel. --- libdiskfs/node-times.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/libdiskfs/node-times.c b/libdiskfs/node-times.c index 60eabc0f..dab193c6 100644 --- a/libdiskfs/node-times.c +++ b/libdis