Robbie Harwood
e43f3d93b2
fs/fat: Don't error when mtime is 0
In the wild, we occasionally see valid ESPs where some file modification
times are 0. For instance:
├── [Dec 31 1979] EFI
│ ├── [Dec 31 1979] BOOT
│ │ ├── [Dec 31 1979] BOOTX64.EFI
│ │ └── [Dec 31 1979] fbx64.efi
│ └── [Jun 27 02:41] fedora
│ ├── [Dec 31 1979] BOOTX64.CSV
│ ├── [Dec 31 1979] fonts
│ ├── [Mar 14 03:35] fw
│ │ ├── [Mar 14 03:35] fwupd-359c1169-abd6-4a0d-8bce-e4d4713335c1.cap
│ │ ├── [Mar 14 03:34] fwupd-9d255c4b-2d88-4861-860d-7ee52ade9463.cap
│ │ └── [Mar 14 03:34] fwupd-b36438d8-9128-49d2-b280-487be02d948b.cap
│ ├── [Dec 31 1979] fwupdx64.efi
│ ├── [May 10 10:47] grub.cfg
│ ├── [Jun 3 12:38] grub.cfg.new.new
│ ├── [May 10 10:41] grub.cfg.old
│ ├── [Jun 27 02:41] grubenv
│ ├── [Dec 31 1979] grubx64.efi
│ ├── [Dec 31 1979] mmx64.efi
│ ├── [Dec 31 1979] shim.efi
│ ├── [Dec 31 1979] shimx64.efi
│ └── [Dec 31 1979] shimx64-fedora.efi
└── [Dec 31 1979] FSCK0000.REC
5 directories, 17 files
This causes grub-probe failure, which in turn causes grub-mkconfig
failure. They are valid filesystems that appear intact, and the Linux
FAT stack is able to mount and manipulate them without complaint.
The check for mtime of 0 has been present since
20def1a3c3952982395cd7c3ea7e78638527962b (fat: support file
modification times).
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2022-07-27 19:20:53 +02:00
..
2019-04-08 15:22:10 +10:00
2022-04-20 18:27:52 +02:00
2022-07-27 19:18:56 +02:00
2022-07-04 14:43:26 +02:00
2021-04-13 17:16:04 +02:00
2022-03-14 15:45:03 +01:00
2022-07-27 19:20:53 +02:00
2021-03-02 15:54:15 +01:00
2022-03-14 15:45:59 +01:00
2022-03-14 15:46:18 +01:00
2012-03-03 13:05:08 +01:00
2011-11-11 21:03:49 +01:00
2022-03-14 15:46:38 +01:00
2022-07-27 19:20:53 +02:00
2022-07-27 19:20:53 +02:00
2022-06-07 16:39:31 +02:00
2022-04-20 18:27:52 +02:00
2022-07-04 14:43:25 +02:00
2022-06-07 16:39:32 +02:00
2022-07-04 14:43:26 +02:00
2022-03-14 15:59:07 +01:00
2021-03-10 14:50:44 +01:00
2022-03-14 15:59:45 +01:00
2022-04-20 18:27:52 +02:00
2022-03-14 16:00:27 +01:00
2022-06-07 16:39:32 +02:00
2013-10-14 03:40:20 +02:00
2014-01-18 23:15:40 +04:00
2014-01-18 23:15:40 +04:00
2022-03-07 15:05:22 +01:00
2017-08-14 16:27:10 +02:00
2017-05-03 12:49:31 +02:00
2022-03-21 18:47:16 +01:00
2013-03-01 11:15:09 +01:00
2014-09-21 18:23:23 +02:00
2021-03-02 15:54:19 +01:00
2022-04-04 22:26:31 +02:00
2017-05-03 12:49:31 +02:00