[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mtime not restored on ntfs-3g POSIX Filesystem
From: |
Keith Refson |
Subject: |
Mtime not restored on ntfs-3g POSIX Filesystem |
Date: |
Wed, 22 Apr 2020 10:54:07 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
Summary: When unpacking a tar archive onto a NTFS filesystem mounted
using the NTFS-3g driver, file modification times are not restored from
the archive.
O/S Opensuse Linux Leap 15.1
Tar: tar (GNU tar) 1.30
Description/how to reproduce.
1. mount NTFS filesystem at $MNT and choose $SOME_DIRECTORY (Mine was
"spglib")
2. Test file permissions capability of mounted FS
$ mkdir $MNT/{gnutar,star,rsync}
$ ls -l $SOME_DIRECTORY
drwxrwxrwx 1 kr users 168 May 29 2019 spglib
$ rsync -a spglib $MNT/rsync
$ tar cpf - spglib | tar xpf - -C $MNT/gnutar
$ tar cpf - spglib | star xpf - -C $MNT/star
$ ls -l $SOME_DIRECTORY/{rsync,gnutar,star}
/run/media/kr/Keiths_Backup/gnutar:
total 4
drwxrwxrwx 1 kr users 4096 Apr 22 10:42 spglib
/run/media/kr/Keiths_Backup/rsync:
total 0
drwxrwxrwx 1 kr users 168 May 29 2019 spglib
/run/media/kr/Keiths_Backup/star:
total 4
drwxrwxrwx 1 kr users 4096 May 29 2019 spglib
The mtime of all files and subdirectories is also set to the extraction
time, and not the archive time. N.B. the "star" implementation
correctly extracts the mtime.
Keith Refson
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Mtime not restored on ntfs-3g POSIX Filesystem,
Keith Refson <=