support file mtime

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-12-09 21:17:27 +01:00
parent 627a62fc70
commit e330e4f383

View file

@ -351,11 +351,13 @@ grub_squash_dir (grub_device_t device, const char *path,
int NESTED_FUNC_ATTR iterate (const char *filename,
enum grub_fshelp_filetype filetype,
grub_fshelp_node_t node __attribute__ ((unused)))
grub_fshelp_node_t node)
{
struct grub_dirhook_info info;
grub_memset (&info, 0, sizeof (info));
info.dir = ((filetype & GRUB_FSHELP_TYPE_MASK) == GRUB_FSHELP_DIR);
info.mtimeset = 1;
info.mtime = grub_le_to_cpu32 (node->ino.mtime);
return hook (filename, &info);
}