minix mtime support
This commit is contained in:
parent
7ac6c4842d
commit
f5ff296240
1 changed files with 7 additions and 0 deletions
|
@ -480,6 +480,13 @@ grub_minix_dir (grub_device_t device, const char *path,
|
||||||
grub_minix_read_inode (data, grub_le_to_cpu16 (ino));
|
grub_minix_read_inode (data, grub_le_to_cpu16 (ino));
|
||||||
info.dir = ((GRUB_MINIX_INODE_MODE (data)
|
info.dir = ((GRUB_MINIX_INODE_MODE (data)
|
||||||
& GRUB_MINIX_IFDIR) == GRUB_MINIX_IFDIR);
|
& GRUB_MINIX_IFDIR) == GRUB_MINIX_IFDIR);
|
||||||
|
info.mtimeset = 1;
|
||||||
|
#ifndef MODE_MINIX2
|
||||||
|
info.mtime = grub_le_to_cpu32 (data->inode.ctime);
|
||||||
|
#else
|
||||||
|
info.mtime = grub_le_to_cpu32 (data->inode.mtime);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (hook (filename, &info) ? 1 : 0)
|
if (hook (filename, &info) ? 1 : 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue