Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2008 13:20:09 -0500
From:      Bob Johnson <bob89@bobj.org>
To:        questions@freebsd.org
Subject:   Wrong times written by mkisofs?
Message-ID:  <200801191320.09985.bob89@bobj.org>

Next in thread | Raw E-Mail | Index | Archive | Help
I recently built a CD of images to give to a friend. I noticed the timestamps 
displayed when I list the CD contents are five hours earlier than they should 
be. Five hours matches my GMT offset. This is a dual-boot system with Win XP, 
so the hardware clock is set to local time.

E.g. a file on my hard drive has a correct timestamp
-rw-------  1 bobo  bobo  2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG

while the same file on the resulting CD looks like
-rw-------  1 bobo  bobo  2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG

The "date" command returns the correct local time.

Did I do something incorrectly, or is this a bug in mkisofs? It appears to me 
that mkisofs decided to correct for GMT offset when it shouldn't have.

The sequence of operations I followed is below.

- Bob

# ls -l ToJoe
total 62544
-rw-------  1 bobo  bobo  2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG
-rw-------  1 bobo  bobo  3346787 Jan 19 12:22 IMG_0661_080116_0524.JPG
-rw-------  1 bobo  bobo  3623969 Jan 19 12:22 IMG_0662_080116_0525.JPG
-rw-------  1 bobo  bobo  3966310 Jan 19 12:22 IMG_0663_080116_0526.JPG
-rw-------  1 bobo  bobo  3971338 Jan 19 12:22 IMG_0664_080116_0526.JPG
-rw-------  1 bobo  bobo  3946837 Jan 19 12:22 IMG_0665_080116_0528.JPG
-rw-------  1 bobo  bobo  3873753 Jan 19 12:22 IMG_0666_080116_0528.JPG
-rw-------  1 bobo  bobo  3832501 Jan 19 12:22 IMG_0667_080116_0529.JPG
-rw-------  1 bobo  bobo  3854064 Jan 19 12:22 IMG_0668_080116_0531.JPG
-rw-------  1 bobo  bobo  3849156 Jan 19 12:22 IMG_0669_080116_0532.JPG
-rw-------  1 bobo  bobo  3868314 Jan 19 12:23 IMG_0670_080116_0533.JPG
-rw-------  1 bobo  bobo  3901654 Jan 19 12:23 IMG_0671_080116_0534.JPG
-rw-------  1 bobo  bobo  3851665 Jan 19 12:23 IMG_0672_080116_0537.JPG
-rw-------  1 bobo  bobo  3850832 Jan 19 12:23 IMG_0673_080116_0538.JPG
-rw-------  1 bobo  bobo  3876448 Jan 19 12:23 IMG_0674_080116_0542.JPG
-rw-------  1 bobo  bobo  3866105 Jan 19 12:23 IMG_0675_080116_0543.JPG
-rw-------  1 bobo  bobo  3881576 Jan 19 12:23 IMG_0676_080116_0543.JPG
[bobo@sniffles ~/images]$ mkisofs -J -R -o FMband.iso ToJoe/*
 16.05% done, estimate finish Sat Jan 19 12:24:16 2008
 32.04% done, estimate finish Sat Jan 19 12:24:16 2008
 48.00% done, estimate finish Sat Jan 19 12:24:18 2008
 64.04% done, estimate finish Sat Jan 19 12:24:17 2008
 80.04% done, estimate finish Sat Jan 19 12:24:17 2008
 96.01% done, estimate finish Sat Jan 19 12:24:18 2008
Total translation table size: 0
Total rockridge attributes bytes: 1801
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used d064
31250 extents written (61 MB)
[bobo@sniffles ~/images]$ su 
Password:
[root@sniffles /home/bobo/images]# burncd -f /dev/acd0 -s 8 data FMband.iso 
fixate
next writeable LBA 0
writing from file FMband.iso size 62500 KB
written this track 62500 KB (100%) total 62500 KB
fixating CD, please wait..
[root@sniffles /home/bobo/images]# mount_cd9660 /dev/acd0 /mnt
[root@sniffles /home/bobo/images]# ls -l /mnt
total 62113
-rw-------  1 bobo  bobo  2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG
-rw-------  1 bobo  bobo  3346787 Jan 19 07:22 IMG_0661_080116_0524.JPG
-rw-------  1 bobo  bobo  3623969 Jan 19 07:22 IMG_0662_080116_0525.JPG
-rw-------  1 bobo  bobo  3966310 Jan 19 07:22 IMG_0663_080116_0526.JPG
-rw-------  1 bobo  bobo  3971338 Jan 19 07:22 IMG_0664_080116_0526.JPG
-rw-------  1 bobo  bobo  3946837 Jan 19 07:22 IMG_0665_080116_0528.JPG
-rw-------  1 bobo  bobo  3873753 Jan 19 07:22 IMG_0666_080116_0528.JPG
-rw-------  1 bobo  bobo  3832501 Jan 19 07:22 IMG_0667_080116_0529.JPG
-rw-------  1 bobo  bobo  3854064 Jan 19 07:22 IMG_0668_080116_0531.JPG
-rw-------  1 bobo  bobo  3849156 Jan 19 07:22 IMG_0669_080116_0532.JPG
-rw-------  1 bobo  bobo  3868314 Jan 19 07:23 IMG_0670_080116_0533.JPG
-rw-------  1 bobo  bobo  3901654 Jan 19 07:23 IMG_0671_080116_0534.JPG
-rw-------  1 bobo  bobo  3851665 Jan 19 07:23 IMG_0672_080116_0537.JPG
-rw-------  1 bobo  bobo  3850832 Jan 19 07:23 IMG_0673_080116_0538.JPG
-rw-------  1 bobo  bobo  3876448 Jan 19 07:23 IMG_0674_080116_0542.JPG
-rw-------  1 bobo  bobo  3866105 Jan 19 07:23 IMG_0675_080116_0543.JPG
-rw-------  1 bobo  bobo  3881576 Jan 19 07:23 IMG_0676_080116_0543.JPG
[root@sniffles /home/bobo/images]# date
Sat Jan 19 12:27:25 EST 2008



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200801191320.09985.bob89>