Hi,
i believe that tar (GNU tar) 1.27.1 in Debian GNU/Linux 8 \n \l has a bug when you extract tar archives on a cifs mounted directory. let me explain what I mean.
mounted a windows cifs share to /media/deepspace directory. there are a couple of older tar.gz archives inside.
/etc/fstab:
//deepspace/EDIStorage /media/deepspace cifs file_mode=0775,iocharset=utf8,noperm,dir_mode=0775,sec=ntlm,vers=2.1,credentials=/root/.biscredentials 0 0
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/sda1 29526092 2947996 25055204 11% /
udev 10240 0 10240 0% /dev
tmpfs 812152 9044 803108 2% /run
tmpfs 2030380 0 2030380 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 2030380 0 2030380 0% /sys/fs/cgroup
tmpfs 406076 0 406076 0% /run/user/1000
//deepspace/EDIStorage 335396860 111916744 223480116 34% /media/deepspace
/dev/sda1 29526092 2947996 25055204 11% /
udev 10240 0 10240 0% /dev
tmpfs 812152 9044 803108 2% /run
tmpfs 2030380 0 2030380 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 2030380 0 2030380 0% /sys/fs/cgroup
tmpfs 406076 0 406076 0% /run/user/1000
//deepspace/EDIStorage 335396860 111916744 223480116 34% /media/deepspace
root@debiandfu:~# ls -als /media/deepspace/Temp/KSZ_DC_060879_20170222965.tar.gz
92 -rwxrwxr-x 1 root root 92731 Feb 22 2017 /media/deepspace/Temp/KSZ_DC_060879_20170222965.tar.gz
tried to extract the KSZ_DC_060879_20170222965.tar.gz file from 22.02.2017 with files inside from 22.12.2016
root@debiandfu:/media/deepspace/Temp/test# tar tvfz ../KSZ_DC_060879_20170222965.tar.gz
-rwxr-xr-x root/root 119542 2016-12-22 20:08 000000017795
-rwxr-xr-x root/root 59264 2016-12-22 20:08 000000017796
-rwxr-xr-x root/root 568240 2016-12-22 20:09 000000017797
-rwxr-xr-x root/root 640734 2016-12-22 20:09 000000017798
-rwxr-xr-x root/root 93144 2016-12-22 20:09 000000017799
-rwxr-xr-x root/root 347313 2016-12-22 20:09 000000017800
-rwxr-xr-x root/root 189032 2016-12-22 20:09 000000017801
-rwxr-xr-x root/root 7243 2016-12-22 20:09 000000017802
-rwxr-xr-x root/root 39876 2016-12-22 20:09 000000017803
-rwxr-xr-x root/root 68277 2016-12-22 20:09 000000017804
-rwxr-xr-x root/root 321799 2016-12-22 20:11 000000017805
-rwxr-xr-x root/root 57720 2016-12-22 20:13 000000017806
-rwxr-xr-x root/root 30014 2016-12-22 20:11 000000017807
-rwxr-xr-x root/root 161049 2016-12-22 20:12 000000017808
-rwxr-xr-x root/root 34090 2016-12-22 20:12 000000017809
-rwxr-xr-x root/root 6662 2016-12-22 20:10 000000017810
-rwxr-xr-x root/root 182991 2016-12-22 20:11 000000017811
-rwxr-xr-x root/root 7005 2016-12-22 20:11 000000017812
-rwxr-xr-x root/root 21500 2016-12-22 20:10 000000017813
-rwxr-xr-x root/root 131538 2016-12-22 20:11 000000017814
-rwxr-xr-x root/root 119542 2016-12-22 20:08 000000017795
-rwxr-xr-x root/root 59264 2016-12-22 20:08 000000017796
-rwxr-xr-x root/root 568240 2016-12-22 20:09 000000017797
-rwxr-xr-x root/root 640734 2016-12-22 20:09 000000017798
-rwxr-xr-x root/root 93144 2016-12-22 20:09 000000017799
-rwxr-xr-x root/root 347313 2016-12-22 20:09 000000017800
-rwxr-xr-x root/root 189032 2016-12-22 20:09 000000017801
-rwxr-xr-x root/root 7243 2016-12-22 20:09 000000017802
-rwxr-xr-x root/root 39876 2016-12-22 20:09 000000017803
-rwxr-xr-x root/root 68277 2016-12-22 20:09 000000017804
-rwxr-xr-x root/root 321799 2016-12-22 20:11 000000017805
-rwxr-xr-x root/root 57720 2016-12-22 20:13 000000017806
-rwxr-xr-x root/root 30014 2016-12-22 20:11 000000017807
-rwxr-xr-x root/root 161049 2016-12-22 20:12 000000017808
-rwxr-xr-x root/root 34090 2016-12-22 20:12 000000017809
-rwxr-xr-x root/root 6662 2016-12-22 20:10 000000017810
-rwxr-xr-x root/root 182991 2016-12-22 20:11 000000017811
-rwxr-xr-x root/root 7005 2016-12-22 20:11 000000017812
-rwxr-xr-x root/root 21500 2016-12-22 20:10 000000017813
-rwxr-xr-x root/root 131538 2016-12-22 20:11 000000017814
root@debiandfu:/media/deepspace/Temp/test# tar xvfz ../KSZ_DC_060879_20170222965.tar.gz
000000017795
000000017796
000000017797
000000017798
000000017799
000000017800
000000017801
000000017802
000000017803
000000017804
000000017805
000000017806
000000017807
000000017808
000000017809
000000017810
000000017811
000000017812
000000017813
000000017814
000000017795
000000017796
000000017797
000000017798
000000017799
000000017800
000000017801
000000017802
000000017803
000000017804
000000017805
000000017806
000000017807
000000017808
000000017809
000000017810
000000017811
000000017812
000000017813
000000017814
If I extraxt this file to a test folder and do a ls -als, the extracted files all have the actual date and timestamp.
root@debiandfu:/media/deepspace/Temp/test# ls -als
insgesamt 3056
-rwxrwxr-x 1 root root 119542 Aug 6 10:40 000000017795
-rwxrwxr-x 1 root root 59264 Aug 6 10:40 000000017796
-rwxrwxr-x 1 root root 568240 Aug 6 10:40 000000017797
-rwxrwxr-x 1 root root 640734 Aug 6 10:40 000000017798
-rwxrwxr-x 1 root root 93144 Aug 6 10:40 000000017799
-rwxrwxr-x 1 root root 347313 Aug 6 10:40 000000017800
-rwxrwxr-x 1 root root 189032 Aug 6 10:40 000000017801
-rwxrwxr-x 1 root root 7243 Aug 6 10:40 000000017802
-rwxrwxr-x 1 root root 39876 Aug 6 10:40 000000017803
-rwxrwxr-x 1 root root 68277 Aug 6 10:40 000000017804
-rwxrwxr-x 1 root root 321799 Aug 6 10:40 000000017805
-rwxrwxr-x 1 root root 57720 Aug 6 10:40 000000017806
-rwxrwxr-x 1 root root 30014 Aug 6 10:40 000000017807
-rwxrwxr-x 1 root root 161049 Aug 6 10:40 000000017808
-rwxrwxr-x 1 root root 34090 Aug 6 10:40 000000017809
-rwxrwxr-x 1 root root 6662 Aug 6 10:40 000000017810
-rwxrwxr-x 1 root root 182991 Aug 6 10:40 000000017811
-rwxrwxr-x 1 root root 7005 Aug 6 10:40 000000017812
-rwxrwxr-x 1 root root 21500 Aug 6 10:40 000000017813
-rwxrwxr-x 1 root root 131538 Aug 6 10:40 000000017814
root@debiandfu:/media/deepspace/Temp/test#
insgesamt 3056
-rwxrwxr-x 1 root root 119542 Aug 6 10:40 000000017795
-rwxrwxr-x 1 root root 59264 Aug 6 10:40 000000017796
-rwxrwxr-x 1 root root 568240 Aug 6 10:40 000000017797
-rwxrwxr-x 1 root root 640734 Aug 6 10:40 000000017798
-rwxrwxr-x 1 root root 93144 Aug 6 10:40 000000017799
-rwxrwxr-x 1 root root 347313 Aug 6 10:40 000000017800
-rwxrwxr-x 1 root root 189032 Aug 6 10:40 000000017801
-rwxrwxr-x 1 root root 7243 Aug 6 10:40 000000017802
-rwxrwxr-x 1 root root 39876 Aug 6 10:40 000000017803
-rwxrwxr-x 1 root root 68277 Aug 6 10:40 000000017804
-rwxrwxr-x 1 root root 321799 Aug 6 10:40 000000017805
-rwxrwxr-x 1 root root 57720 Aug 6 10:40 000000017806
-rwxrwxr-x 1 root root 30014 Aug 6 10:40 000000017807
-rwxrwxr-x 1 root root 161049 Aug 6 10:40 000000017808
-rwxrwxr-x 1 root root 34090 Aug 6 10:40 000000017809
-rwxrwxr-x 1 root root 6662 Aug 6 10:40 000000017810
-rwxrwxr-x 1 root root 182991 Aug 6 10:40 000000017811
-rwxrwxr-x 1 root root 7005 Aug 6 10:40 000000017812
-rwxrwxr-x 1 root root 21500 Aug 6 10:40 000000017813
-rwxrwxr-x 1 root root 131538 Aug 6 10:40 000000017814
root@debiandfu:/media/deepspace/Temp/test#
But if I extract the same tar archive to a local filesystem folder like /tmp/test, everythings is ok. The date and timestamps are the original date and time from the tar archive.
root@debiandfu:/tmp/test# tar xvfz /media/deepspace/Temp/KSZ_DC_060879_20170222965.tar.gz
000000017795
000000017796
000000017797
000000017798
000000017799
000000017800
000000017801
000000017802
000000017803
000000017804
000000017805
000000017806
000000017807
000000017808
000000017809
000000017810
000000017811
000000017812
000000017813
000000017814
000000017795
000000017796
000000017797
000000017798
000000017799
000000017800
000000017801
000000017802
000000017803
000000017804
000000017805
000000017806
000000017807
000000017808
000000017809
000000017810
000000017811
000000017812
000000017813
000000017814
root@debiandfu:/tmp/test# l
insgesamt 3056
-rwxr-xr-x 1 root root 119542 Dez 22 2016 000000017795
-rwxr-xr-x 1 root root 59264 Dez 22 2016 000000017796
-rwxr-xr-x 1 root root 568240 Dez 22 2016 000000017797
-rwxr-xr-x 1 root root 640734 Dez 22 2016 000000017798
-rwxr-xr-x 1 root root 93144 Dez 22 2016 000000017799
-rwxr-xr-x 1 root root 347313 Dez 22 2016 000000017800
-rwxr-xr-x 1 root root 189032 Dez 22 2016 000000017801
-rwxr-xr-x 1 root root 7243 Dez 22 2016 000000017802
-rwxr-xr-x 1 root root 39876 Dez 22 2016 000000017803
-rwxr-xr-x 1 root root 68277 Dez 22 2016 000000017804
-rwxr-xr-x 1 root root 321799 Dez 22 2016 000000017805
-rwxr-xr-x 1 root root 57720 Dez 22 2016 000000017806
-rwxr-xr-x 1 root root 30014 Dez 22 2016 000000017807
-rwxr-xr-x 1 root root 161049 Dez 22 2016 000000017808
-rwxr-xr-x 1 root root 34090 Dez 22 2016 000000017809
-rwxr-xr-x 1 root root 6662 Dez 22 2016 000000017810
-rwxr-xr-x 1 root root 182991 Dez 22 2016 000000017811
-rwxr-xr-x 1 root root 7005 Dez 22 2016 000000017812
-rwxr-xr-x 1 root root 21500 Dez 22 2016 000000017813
-rwxr-xr-x 1 root root 131538 Dez 22 2016 000000017814
insgesamt 3056
-rwxr-xr-x 1 root root 119542 Dez 22 2016 000000017795
-rwxr-xr-x 1 root root 59264 Dez 22 2016 000000017796
-rwxr-xr-x 1 root root 568240 Dez 22 2016 000000017797
-rwxr-xr-x 1 root root 640734 Dez 22 2016 000000017798
-rwxr-xr-x 1 root root 93144 Dez 22 2016 000000017799
-rwxr-xr-x 1 root root 347313 Dez 22 2016 000000017800
-rwxr-xr-x 1 root root 189032 Dez 22 2016 000000017801
-rwxr-xr-x 1 root root 7243 Dez 22 2016 000000017802
-rwxr-xr-x 1 root root 39876 Dez 22 2016 000000017803
-rwxr-xr-x 1 root root 68277 Dez 22 2016 000000017804
-rwxr-xr-x 1 root root 321799 Dez 22 2016 000000017805
-rwxr-xr-x 1 root root 57720 Dez 22 2016 000000017806
-rwxr-xr-x 1 root root 30014 Dez 22 2016 000000017807
-rwxr-xr-x 1 root root 161049 Dez 22 2016 000000017808
-rwxr-xr-x 1 root root 34090 Dez 22 2016 000000017809
-rwxr-xr-x 1 root root 6662 Dez 22 2016 000000017810
-rwxr-xr-x 1 root root 182991 Dez 22 2016 000000017811
-rwxr-xr-x 1 root root 7005 Dez 22 2016 000000017812
-rwxr-xr-x 1 root root 21500 Dez 22 2016 000000017813
-rwxr-xr-x 1 root root 131538 Dez 22 2016 000000017814
What is the problem ?? I believe it has something to do with the cifs mount to /media/deepspace but I don't have a clue where exactly the problem comes from. Can you help me ?
Regards,
Frank