2008-06-16 Bean <bean123ch@gmail.com>
* fs/ext2.c (grub_ext2_blockgroup): Revert to pre journal state. (grub_ext2_read_block): Likewise. (grub_ext2_read_inode): Likewise. (grub_ext2_mount): Likewise. (grub_ext2_close): Likewise. (grub_ext3_get_journal): Removed. * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre journal state. (grub_reiserfs_read_symlink): Likewise. (grub_reiserfs_mount): Likewise. (grub_reiserfs_open): Likewise. (grub_reiserfs_read): Likewise. (grub_reiserfs_close): Likewise. (grub_reiserfs_get_journal): Removed. * fs/fshelp.c (grub_fshelp_read): Removed. (grub_fshelp_map_block): Likewise. * include/grub/fshelp.h (grub_fshelp_journal_type): Removed. (grub_fshelp_journal): Likewise. (grub_fshelp_read): Likewise. (grub_fshelp_map_block): Likewise.
This commit is contained in:
parent
3540a760ea
commit
d31a32a14c
5 changed files with 67 additions and 443 deletions
|
@ -34,34 +34,6 @@ enum grub_fshelp_filetype
|
|||
GRUB_FSHELP_SYMLINK
|
||||
};
|
||||
|
||||
enum grub_fshelp_journal_type
|
||||
{
|
||||
GRUB_FSHELP_JOURNAL_TYPE_BLOCK,
|
||||
GRUB_FSHELP_JOURNAL_TYPE_FILE
|
||||
};
|
||||
|
||||
#define GRUB_FSHELP_JOURNAL_UNUSED_MAPPING (grub_disk_addr_t) -1
|
||||
|
||||
struct grub_fshelp_journal
|
||||
{
|
||||
int type;
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
grub_fshelp_node_t node;
|
||||
grub_disk_addr_t (*get_block) (grub_fshelp_node_t node, grub_disk_addr_t block);
|
||||
};
|
||||
grub_disk_addr_t blkno;
|
||||
};
|
||||
int first_block;
|
||||
int last_block;
|
||||
int start_block;
|
||||
int num_mappings;
|
||||
grub_disk_addr_t mapping[0];
|
||||
};
|
||||
typedef struct grub_fshelp_journal *grub_fshelp_journal_t;
|
||||
|
||||
/* Lookup the node PATH. The node ROOTNODE describes the root of the
|
||||
directory tree. The node found is returned in FOUNDNODE, which is
|
||||
either a ROOTNODE or a new malloc'ed node. ITERATE_DIR is used to
|
||||
|
@ -84,15 +56,6 @@ EXPORT_FUNC(grub_fshelp_find_file) (const char *path,
|
|||
enum grub_fshelp_filetype expect);
|
||||
|
||||
|
||||
/* Read LEN bytes from the block BLOCK on disk DISK into the buffer BUF,
|
||||
beginning with the block POS. Apply mappings from LOG. The blocks
|
||||
have a size of LOG2BLOCKSIZE (in log2). */
|
||||
grub_err_t
|
||||
EXPORT_FUNC(grub_fshelp_read) (grub_disk_t disk, grub_fshelp_journal_t log,
|
||||
grub_disk_addr_t block, grub_off_t pos,
|
||||
grub_size_t len, char *buf, int log2blocksize);
|
||||
|
||||
|
||||
/* Read LEN bytes from the file NODE on disk DISK into the buffer BUF,
|
||||
beginning with the block POS. READ_HOOK should be set before
|
||||
reading a block from the file. GET_BLOCK is used to translate file
|
||||
|
@ -112,7 +75,4 @@ unsigned int
|
|||
EXPORT_FUNC(grub_fshelp_log2blksize) (unsigned int blksize,
|
||||
unsigned int *pow);
|
||||
|
||||
grub_disk_addr_t
|
||||
EXPORT_FUNC(grub_fshelp_map_block) (grub_fshelp_journal_t log, grub_disk_addr_t block);
|
||||
|
||||
#endif /* ! GRUB_FSHELP_HEADER */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue