[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-390
Subject:    Re: Bug in cmsfs-fuse?
From:       Michael Holzheu <holzheu () linux ! vnet ! ibm ! com>
Date:       2015-09-09 14:50:50
Message-ID: 20150909165050.058a042e () holzheu
[Download RAW message or body]

Hello Mike,

Thanks for your detailed report.

The CMS file system stores time stamps in local time. The cmsfs-fuse
file system has to report time in UTC to the Linux VFS layer. Therefore
local time has to be converted to UTC for reading and UTC to local time
for writing. IMO this is currently done incorrectly.

In case you are interested, we can provide the corresponding s390-tools patch.

Regards,
Michael

On Fri, 4 Sep 2015 11:18:19 -0400
Michael MacIsaac <mike99mac@gmail.com> wrote:

> Cross-posted to IBMVM and linux-390
>
> Is this a bug in cmsfs-fuse?  It looks like the timestamp of a file created
> on Linux is an hour ahead - note 12:03:12 vs. 11:03:12 below:
>
> On VM:
> -) Link and access a CMS filesystem (THEVIRTM 1191) as F from VM
> -) Create a file with a timestamp:
> ==> pipe cp query time |> thetime fromvm f
> Ready; T=0.01/0.01 10:59:28
> ==> rel f (det
> DASD 1191 DETACHED
>
> On a Linux running on the VM with the CMS disk:
> # vmcp link thevirtm 1191 1191 mr
> # chccwdev -e 1191
> Setting device 0.0.1191 online
> Done
> # lsdasd | grep 1191
> 0.0.1191   active      dasde     94:16   ECKD  4096   70MB      18000
> # mkdir /srv/CMSdisk
> # cmsfs-fuse -a /dev/dasde /srv/CMSdisk
> # date > /srv/CMSdisk/thetime.onlinux
> # fusermount -u /srv/CMSdisk/
> # chccwdev -d 1191
> Setting device 0.0.1191 offline
> Done
> # vmcp DETACH 1191
> DASD 1191 DETACHED
>
> Back on VM:
> ==> vmlink thevirtm 1191
> ==> filel * * z
>       THETIME  ONLINUX  Z1 V         28          1          1  9/04/15
> 12:03:12
>       THETIME  FROMVM   Z1 V         54          2          1  9/04/15
> 10:59:28
> ==> type THETIME  FROMVM   Z
>
> TIME IS 10:59:28 EDT FRIDAY 09/04/15
> CONNECT= 00:06:13 VIRTCPU= 000:00.00 TOTCPU= 000:00.01
>
> ==> type THETIME  ONLINUX  Z
>
> Fri Sep  4 11:03:12 EDT 2015
>
>     -Mike M
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to LISTSERV@VM.MARIST.EDU with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to LISTSERV@VM.MARIST.EDU with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic