Displaying 20 results from an estimated 27 matches for "ext2_inod".
Did you mean:
ext2_inode
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...sage(ret));
- goto fail;
- }
- /*
- * search each block group for a free inode. this set up
- * uninit block/inode bitmaps appropriately.
- */
- ino = 1;
- while (ino <= ext2_fs->super->s_inodes_count) {
- ext2_ino_t foo;
- ext2fs_new_inode(ext2_fs, ino, 0, NULL, &foo);
- ino += EXT2_INODES_PER_GROUP(ext2_fs->super);
- }
-
- *ret_fs = ext2_fs;
- return 0;
-fail:
- return -1;
-}
-
-static int ext2_close(struct convert_fs *fs)
-{
- ext2fs_close((ext2_filsys)fs->privdata);
- return 0;
-}
-
-static int ext2_cache_free_extents(struct convert_fs *fs,
- struct extent_io_tree *f...
2002 Jul 17
3
Maximum File Size on Ext2/3
I need to find out what the maximum file size in an ext2/3 file system.
It appears from the definition of the ext2_inode structure that since
the i_size field is a 32 bit integer that the file would be limited by
that.
Thanks, Jason
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...d,
@@ -446,8 +450,7 @@ static int create_file_extents(struct bt
static int create_file_extents(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 objectid,
struct btrfs_inode_item *btrfs_inode,
- ext2_filsys ext2_fs, ext2_ino_t ext2_ino,
- struct ext2_inode *ext2_inode)
+ ext2_filsys ext2_fs, ext2_ino_t ext2_ino)
{
int ret;
char *buffer = NULL;
@@ -455,6 +458,7 @@ static int create_file_extents(struct bt
u32 last_block;
u32 sectorsize = root->sectorsize;
u64 inode_size = btrfs_stack_inode_size(btrfs_inode);
+ u32 inode_flags =...
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
..._t len,
return !memcmp(name, de->d_name, len);
}
-
/*
* p is at least 6 bytes before the end of page
*/
@@ -144,7 +144,7 @@ ext2_get_inode(struct fs_info *fs, int inr)
(data + block_off * EXT2_SB(fs)->s_inode_size);
}
-static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode)
+static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode, uint32_t inr)
{
inode->mode = IFTODT(e_inode->i_mode);
inode->size = e_inode->i_size;
@@ -156,6 +156,7 @@ static void fill_inode(struct inode *inode, const struct ext2_inode *e_ino...
2012 Aug 02
2
[PATCH] add additional checks to ext2 loader
...2.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c
index bddde8d..8f0f2a4 100644
--- a/core/fs/ext2/ext2.c
+++ b/core/fs/ext2/ext2.c
@@ -139,6 +139,8 @@ ext2_get_inode(struct fs_info *fs, int inr)
block_off = inode_offset % EXT2_INODES_PER_BLOCK(fs);
data = get_cache(fs->fs_dev, block_num);
+ if (!data)
+ return NULL;
return (const struct ext2_inode *)
(data + block_off * EXT2_SB(fs)->s_inode_size);
@@ -164,7 +166,7 @@ static struct inode *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr)
struct i...
2010 Feb 27
1
e2fsprogs Help.
...of e2fsprogs.
My two questions are:
1. Is it correct to use "dumpe2fs" program and modify for timestamp ?
2. I could not understand the main purpose of e2fsprogs. Am I correct to
assume that this program extract information
from the existing ext2/ext3 filesystem. Why there are ext2_inode
datastructure defined in these programs ? Why couldn't
these programs read existing datastructures of inode ?
3. Are these user level or kernel level programs ?
4. I want to have my own policies of allocatiing datablocks in some
cylinder group instead of using ext2 default policy ? What...
2020 Jul 22
1
Re: [PATCH nbdkit] server: Pass the export name through filter .open calls.
...estfs) but I
see that we don't. I think we should use Unicode characters more
where they are appropriate, but I'll break up this long line. I also
added a comment.
> >@@ -148,7 +166,7 @@ ext2_prepare (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle,
> > struct ext2_inode inode;
> > int64_t r;
> > CLEANUP_FREE char *name = NULL;
> >- const char *fname = file ?: nbdkit_export_name ();
> >+ const char *fname = file ?: h->exportname;
>
> Hmm - we already pass the same 'readonly' state to filter's
> .prepare, but...
2011 Apr 27
2
btrfs-convert crashes
...0}}
#10 copy_inodes (devname=0x7fffffffe897 "/dev/sdc1", datacsum=1, packing=1, noxattr=0) at convert.c:1154
ret =<value optimized out>
err =<value optimized out>
ext2_scan = 0xce2300
ext2_ino = 37359452
objectid = 37359706
ext2_inode = {i_mode = 16877, i_uid = 1000, i_size = 16384, i_atime = 1303466526, i_ctime = 1296464377, i_mtime = 1296464377, i_dtime = 0, i_gid = 1000,
i_links_count = 2, i_blocks = 32, i_flags = 528384, osd1 = {linux1 = {l_i_version = 1981}, hurd1 = {h_i_translator = 1981}}, i_block = {193290, 4...
2020 Jul 22
1
Re: [PATCH nbdkit] server: Pass the export name through filter .open calls.
On 7/21/20 7:41 PM, Eric Blake wrote:
>> @@ -148,7 +166,7 @@ ext2_prepare (struct nbdkit_next_ops *next_ops,
>> void *nxdata, void *handle,
>> struct ext2_inode inode;
>> int64_t r;
>> CLEANUP_FREE char *name = NULL;
>> - const char *fname = file ?: nbdkit_export_name ();
>> + const char *fname = file ?: h->exportname;
>
> Hmm - we already pass the same 'readonly' state to filter's .prepare,
> bu...
2015 Dec 02
4
[PATCH 0/3] supermin: add --include-packagelist
Hi,
to ease debugging issues with appliances (e.g. when used in libguestfs),
using --include-packagelist will add a file containing the list of all
the packages used.
Thanks,
Pino Toscano (3):
ext2: add ext2fs_chmod and ext2fs_chown
chroot: factor out file copy code
Add --include-packagelist
src/build.ml | 42 +++++++++++++++++++++++++------
src/chroot.ml | 29
2020 Feb 12
0
[nbdkit PATCH 3/3] ext2: Add mode for letting client exportname choose file from image
...bsolute name of file to serve inside the\n" \
+ " disk image, or 'exportname' for client choice."
/* The per-connection handle. */
struct handle {
@@ -143,6 +148,8 @@ ext2_prepare (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle,
struct ext2_inode inode;
int64_t r;
CLEANUP_FREE char *name = NULL;
+ const char *fname = file ?: nbdkit_export_name ();
+ CLEANUP_FREE char *absname = NULL;
fs_flags = 0;
#ifdef EXT2_FLAG_64BITS
@@ -168,34 +175,42 @@ ext2_prepare (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle,
retu...
2006 Apr 02
1
Zeroing freed blocks
...break;
#ifdef CONFIG_EXT2_FS_XATTR
case Opt_user_xattr:
set_opt (sbi->s_mount_opt, XATTR_USER);
--- linux-2.6.16/include/linux/ext2_fs.h.zerofree 2006-03-20 05:53:29.000000000 +0000
+++ linux-2.6.16/include/linux/ext2_fs.h 2006-04-02 09:21:52.000000000 +0100
@@ -310,6 +310,7 @@ struct ext2_inode {
#define EXT2_MOUNT_MINIX_DF 0x000080 /* Mimics the Minix statfs */
#define EXT2_MOUNT_NOBH 0x000100 /* No buffer_heads */
#define EXT2_MOUNT_NO_UID32 0x000200 /* Disable 32-bit UIDs */
+#define EXT2_MOUNT_ZEROFREE 0x000400 /* Zero freed blocks */
#define EXT2_MOUNT_XATTR_USER 0x004...
2020 Jul 21
4
[PATCH nbdkit] server: Pass the export name through filter .open calls.
...rite access to the underlying plugin, for journal replay. */
+ if (next (nxdata, 0, exportname) == -1) {
+ free (h->exportname);
+ free (h);
+ return NULL;
+ }
+
return h;
}
@@ -148,7 +166,7 @@ ext2_prepare (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle,
struct ext2_inode inode;
int64_t r;
CLEANUP_FREE char *name = NULL;
- const char *fname = file ?: nbdkit_export_name ();
+ const char *fname = file ?: h->exportname;
CLEANUP_FREE char *absname = NULL;
fs_flags = 0;
@@ -242,6 +260,7 @@ ext2_close (void *handle)
ext2fs_file_close (h->file);...
2016 Jul 06
0
[PATCH] ext2: Don't load whole files into memory when copying to the appliance (RHBZ#1113065).
...s_file_flush (file);
+ if (err != 0)
+ ext2_error_to_exception ("ext2fs_file_flush", err, filename);
+ err = ext2fs_file_close (file);
+ if (err != 0)
+ ext2_error_to_exception ("ext2fs_file_close", err, filename);
+
+ /* Update the true size in the inode. */
+ struct ext2_inode inode;
+ err = ext2fs_read_inode (fs, ino, &inode);
+ if (err != 0)
+ ext2_error_to_exception ("ext2fs_read_inode", err, filename);
+ inode.i_size = size;
+ err = ext2fs_write_inode (fs, ino, &inode);
+ if (err != 0)
+ ext2_error_to_exception ("ext2fs_write_inode&...
2020 Jul 22
0
Re: [PATCH nbdkit] server: Pass the export name through filter .open calls.
...d will be easy enough to copy into the tar filter.
> + free (h->exportname);
> + free (h);
> + return NULL;
> + }
> +
> return h;
> }
>
> @@ -148,7 +166,7 @@ ext2_prepare (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle,
> struct ext2_inode inode;
> int64_t r;
> CLEANUP_FREE char *name = NULL;
> - const char *fname = file ?: nbdkit_export_name ();
> + const char *fname = file ?: h->exportname;
Hmm - we already pass the same 'readonly' state to filter's .prepare,
but not to backend_prepare(), whi...
2017 Jul 13
3
[PATCH supermin v2] ext2: Create symlinks properly (RHBZ#1470157).
...s_file_flush (file);
- if (err != 0)
- ext2_error_to_exception ("ext2fs_file_flush", err, filename);
- err = ext2fs_file_close (file);
- if (err != 0)
- ext2_error_to_exception ("ext2fs_file_close", err, filename);
-
- /* Update the true size in the inode. */
- struct ext2_inode inode;
- err = ext2fs_read_inode (fs, ino, &inode);
- if (err != 0)
- ext2_error_to_exception ("ext2fs_read_inode", err, filename);
- inode.i_size = size;
- err = ext2fs_write_inode (fs, ino, &inode);
- if (err != 0)
- ext2_error_to_exception ("ext2fs_write_inode&...
2017 Jul 12
3
[PATCH supermin] ext2: Create symlinks properly (RHBZ#1470157).
...s_file_flush (file);
- if (err != 0)
- ext2_error_to_exception ("ext2fs_file_flush", err, filename);
- err = ext2fs_file_close (file);
- if (err != 0)
- ext2_error_to_exception ("ext2fs_file_close", err, filename);
-
- /* Update the true size in the inode. */
- struct ext2_inode inode;
- err = ext2fs_read_inode (fs, ino, &inode);
- if (err != 0)
- ext2_error_to_exception ("ext2fs_read_inode", err, filename);
- inode.i_size = size;
- err = ext2fs_write_inode (fs, ino, &inode);
- if (err != 0)
- ext2_error_to_exception ("ext2fs_write_inode&...
2020 Feb 12
4
[nbdkit PATCH 0/3] Make ext2 a filter
...nbdkit_error ("calloc: %m");
+ return NULL;
+ }
+
+ return h;
+}
+
+static int
+ext2_prepare (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle,
+ int readonly)
+{
+ struct handle *h = handle;
errcode_t err;
int fs_flags;
int file_flags;
struct ext2_inode inode;
-
- h = malloc (sizeof *h);
- if (h == NULL) {
- nbdkit_error ("malloc: %m");
- return NULL;
- }
+ int64_t r;
+ CLEANUP_FREE char *name = NULL;
fs_flags = 0;
#ifdef EXT2_FLAG_64BITS
fs_flags |= EXT2_FLAG_64BITS;
#endif
+ r = next_ops->get_size (nxdata);
+...
2019 Feb 19
2
Re: [PATCH nbdkit 4/4] Add linuxdisk plugin.
...u visit
files in inode order rather than in readdir() order.
> +static int
> +e2emptyinode (ext2_filsys fs, ext2_ino_t dir_ino,
> + const char *name, const struct stat *statbuf,
> + int ino_flags, ext2_ino_t *ino)
> +{
> + errcode_t err;
> + struct ext2_inode inode;
> + int major_, minor_;
> +
> + err = ext2fs_new_inode (fs, dir_ino, statbuf->st_mode, 0, ino);
> + if (err) {
> + nbdkit_error ("ext2fs_new_inode: %s", error_message (err));
> + return -1;
> + }
> +
> + memset (&inode, 0, sizeof inode)...
2012 Mar 20
13
[PATCH 0 of 3 v2] PV-GRUB: add support for ext4 and btrfs
Hi,
The following patches add support for ext4 and btrfs to
PV-GRUB. These patches are taken nearly verbatim from those provided
by Fedora and Gentoo.
We''ve been using these patches for the PV-GRUB images available in EC2
for some time now with no problems.
Changes from v1:
- Makefile has been changed to check the exit code from patch
- The btrfs patch has been rebased to apply