* include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.

* fs/nilfs.c: Support 2nd super block in case 1st one is accidently
	corrupted or not synced properly.
This commit is contained in:
Jiro SEKIBA 2010-05-31 20:49:42 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent c2ffc8e956
commit dfbfe00473
3 changed files with 65 additions and 11 deletions

View file

@ -138,6 +138,9 @@ typedef struct grub_disk_memberlist *grub_disk_memberlist_t;
#define GRUB_DISK_CACHE_SIZE 8
#define GRUB_DISK_CACHE_BITS 3
/* Return value of grub_disk_get_size() in case disk size is unknown. */
#define GRUB_DISK_SIZE_UNKNOWN 0xffffffffffffffffULL
/* This is called from the memory manager. */
void grub_disk_cache_invalidate_all (void);