search for: open_ext2f

Displaying 3 results from an estimated 3 matches for "open_ext2f".

Did you mean: open_ext2fs
2009 Jan 21
0
[PATCH] Progs: update convert for uninitialized block groups
...es. Thank you, Signed-off-by: Yan Zheng <zheng.yan@oracle.com> --- diff -urp btrfs-progs-unstable/convert.c btrfs-progs/convert.c --- btrfs-progs-unstable/convert.c 2009-01-13 18:55:53.214449273 +0800 +++ btrfs-progs/convert.c 2009-01-21 16:54:37.000000000 +0800 @@ -54,6 +54,7 @@ static int open_ext2fs(const char *name, { errcode_t ret; ext2_filsys ext2_fs; + ext2_ino_t ino; ret = ext2fs_open(name, 0, 0, 0, unix_io_manager, &ext2_fs); if (ret) { fprintf(stderr, "ext2fs_open: %s\n", error_message(ret)); @@ -71,6 +72,17 @@ static int open_ext2fs(const char *name, erro...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...ude "transaction.h" +#include "crc32c.h" #include "utils.h" #include "ext2fs/ext2_fs.h" #include "ext2fs/ext2fs.h" @@ -43,7 +44,7 @@ * Open Ext2fs in readonly mode, read block allocation bitmap and * inode bitmap into memory. */ -static int open_ext2fs(char *name, ext2_filsys *ret_fs) +static int open_ext2fs(const char *name, ext2_filsys *ret_fs) { int mnt_flags; errcode_t ret; @@ -88,9 +89,6 @@ static int close_ext2fs(ext2_filsys fs) return 0; } -/* - * Stupid algorithm, search forward starting from the first free block. - */ static i...
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...void *privdata; -}; - -#define INO_OFFSET (BTRFS_FIRST_FREE_OBJECTID - EXT2_ROOT_INO) #define STRIPE_LEN (64 * 1024) #define ORIG_IMAGE_SUBVOL_OBJECTID BTRFS_FIRST_FREE_OBJECTID -/* - * Open Ext2fs in readonly mode, read block allocation bitmap and - * inode bitmap into memory. - */ -static int open_ext2fs(const char *name, ext2_filsys *ret_fs) -{ - errcode_t ret; - ext2_filsys ext2_fs; - ext2_ino_t ino; - ret = ext2fs_open(name, 0, 0, 0, unix_io_manager, &ext2_fs); - if (ret) { - fprintf(stderr, "ext2fs_open: %s\n", error_message(ret)); - goto fail; - } - ret = ext2fs_read_inode_bit...