ext2resize-cvs Mailing List for GNU ext2resize
Status: Inactive
Brought to you by:
adilger
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
(19) |
Mar
|
Apr
|
May
|
Jun
(36) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Petter R. <pe...@hu...> - 2006-06-12 06:12:47
|
[Coywolf Qi Hunt] > This file should be removed. Just remove it. Done. |
From: Petter R. <pe...@us...> - 2006-06-12 06:11:51
|
Update of /cvsroot/ext2resize/ext2resize In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv1585 Removed Files: VERSION Log Message: Removed unused file VERSION on request from Coywolf Qi Hunt. --- VERSION DELETED --- |
From: Coywolf Qi H. <co...@gm...> - 2006-06-11 23:43:20
|
2006/6/11, Petter Reinholdtsen <pe...@us...>: > Update of /cvsroot/ext2resize/ext2resize/src > In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv8710 > > Modified Files: > ext2_fs.h > Log Message: > Document more of the content in the ext2 super block struct. Code > found in the big-endian patch from Fedora. I don't like it. Doing this is useless and only wasting your own time. If you have to do it, you'd follow the vanilla kernel, not fedora or any other particular distros. FYI: http://sosdg.org/~coywolf/lxr/ident?i=ext2_super_block > > > Index: ext2_fs.h > =================================================================== > RCS file: /cvsroot/ext2resize/ext2resize/src/ext2_fs.h,v > retrieving revision 1.8 > retrieving revision 1.9 > diff -C2 -d -r1.8 -r1.9 > *** ext2_fs.h 3 Jul 2002 17:52:24 -0000 1.8 > --- ext2_fs.h 11 Jun 2006 08:23:37 -0000 1.9 > *************** > *** 459,465 **** > __u32 s_journal_inum; /* inode number of journal file */ > __u32 s_journal_dev; /* device number of journal file */ > __u32 s_last_orphan; /* start of list of inodes to delete */ > > ! __u32 s_reserved[197]; /* Padding to the end of the block */ > }; > > --- 459,474 ---- > __u32 s_journal_inum; /* inode number of journal file */ > __u32 s_journal_dev; /* device number of journal file */ > + > __u32 s_last_orphan; /* start of list of inodes to delete */ > + __u32 s_hash_seed[4]; /* HTREE hash seed */ > + __u8 s_def_hash_version; /* Default hash version to use */ > + __u8 s_jnl_backup_type; /* Default type of journal backup */ > + __u16 s_reserved_word_pad; > + __u32 s_default_mount_opts; > + __u32 s_first_meta_bg; /* First metablock group */ > + __u32 s_mkfs_time; /* When the filesystem was created */ > + __u32 s_jnl_blocks[17]; /* Backup of the journal inode */ > > ! __u32 s_reserved[172]; /* Padding to the end of the block */ > }; > > > > > _______________________________________________ > Ext2resize-cvs mailing list > Ext...@li... > https://lists.sourceforge.net/lists/listinfo/ext2resize-cvs > -- Coywolf Qi Hunt |
From: Coywolf Qi H. <co...@gm...> - 2006-06-11 23:32:32
|
2006/6/11, Petter Reinholdtsen <pe...@us...>: > Update of /cvsroot/ext2resize/ext2resize/src > In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16031 > > Modified Files: > Makefile.am > Log Message: > Include all the source files (also the unused ones) in the source tarball. > > > Index: Makefile.am > =================================================================== > RCS file: /cvsroot/ext2resize/ext2resize/src/Makefile.am,v > retrieving revision 1.11 > retrieving revision 1.12 > diff -C2 -d -r1.11 -r1.12 > *** Makefile.am 10 Jun 2006 07:18:17 -0000 1.11 > --- Makefile.am 11 Jun 2006 08:41:30 -0000 1.12 > *************** > *** 27,30 **** > --- 27,32 ---- > noinst_HEADERS = ext2.h > > + EXTRA_DIST = ext2_journal.c ext2_mkfs.c tst.c > + > LIBS = @LIBS@ Why do that? We don't need ext2_mkfs.c and tst.c. -- Coywolf Qi Hunt |
From: Coywolf Qi H. <co...@gm...> - 2006-06-11 23:27:31
|
2006/6/11, Petter Reinholdtsen <pe...@us...>: > Update of /cvsroot/ext2resize/ext2resize > In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv14023 > > Modified Files: > VERSION > Log Message: > Increase version number to 1.1.20. Why is this file here? Nothing > seem to use it, and it isn't in the source tarball. This file should be removed. Just remove it. > > > Index: VERSION > =================================================================== > RCS file: /cvsroot/ext2resize/ext2resize/VERSION,v > retrieving revision 1.20 > retrieving revision 1.21 > diff -C2 -d -r1.20 -r1.21 > *** VERSION 30 Sep 2004 20:22:55 -0000 1.20 > --- VERSION 11 Jun 2006 08:36:50 -0000 1.21 > *************** > *** 1 **** > ! 1.1.19 > --- 1 ---- > ! 1.1.20 > > > > _______________________________________________ > Ext2resize-cvs mailing list > Ext...@li... > https://lists.sourceforge.net/lists/listinfo/ext2resize-cvs > -- Coywolf Qi Hunt |
From: Petter R. <pe...@hu...> - 2006-06-11 09:18:37
|
[Coywolf Qi Hunt] > could be more descriptive -Wextra Sure, but I suspect that will make it harder to compile the source using older versions of GCC, so I used the original flag instead of the new one. Date: Sun, 11 Jun 2006 11:18:26 +0200 In-Reply-To: <2cd...@ma...> (Coywolf Qi Hunt's message of "Sun, 11 Jun 2006 12:14:56 +0800") Message-ID: <2fl...@sa...> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (usg-unix-v) |
From: Petter R. <pe...@us...> - 2006-06-11 08:41:34
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16031 Modified Files: Makefile.am Log Message: Include all the source files (also the unused ones) in the source tarball. Index: Makefile.am =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/Makefile.am,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Makefile.am 10 Jun 2006 07:18:17 -0000 1.11 --- Makefile.am 11 Jun 2006 08:41:30 -0000 1.12 *************** *** 27,30 **** --- 27,32 ---- noinst_HEADERS = ext2.h + EXTRA_DIST = ext2_journal.c ext2_mkfs.c tst.c + LIBS = @LIBS@ |
From: Petter R. <pe...@us...> - 2006-06-11 08:38:48
|
Update of /cvsroot/ext2resize/ext2resize/doc In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv14827 Modified Files: Makefile.am Log Message: Include all the documentation files in the source tarball. Index: Makefile.am =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/doc/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.am 22 Mar 2000 21:24:23 -0000 1.1 --- Makefile.am 11 Jun 2006 08:38:46 -0000 1.2 *************** *** 3,5 **** man_MANS = ext2resize.8 ext2prepare.8 ext2online.8 ! EXTRA_DIST = $(man_MANS) --- 3,5 ---- man_MANS = ext2resize.8 ext2prepare.8 ext2online.8 ! EXTRA_DIST = $(man_MANS) HOWTO note.journal note.journal.2 |
From: Petter R. <pe...@us...> - 2006-06-11 08:36:53
|
Update of /cvsroot/ext2resize/ext2resize In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv14023 Modified Files: VERSION Log Message: Increase version number to 1.1.20. Why is this file here? Nothing seem to use it, and it isn't in the source tarball. Index: VERSION =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/VERSION,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** VERSION 30 Sep 2004 20:22:55 -0000 1.20 --- VERSION 11 Jun 2006 08:36:50 -0000 1.21 *************** *** 1 **** ! 1.1.19 --- 1 ---- ! 1.1.20 |
From: Petter R. <pe...@us...> - 2006-06-11 08:31:09
|
Update of /cvsroot/ext2resize/ext2resize In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv11932 Modified Files: NEWS Log Message: Do not claim to have fixed the endian issues. Index: NEWS =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/NEWS,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** NEWS 10 Jun 2006 07:36:33 -0000 1.9 --- NEWS 11 Jun 2006 08:31:06 -0000 1.10 *************** *** 2,6 **** * Fixed a few compiler warnings. * Fix typos in the documentation and manual. ! * Correct handling of endian issues. * Adjust handling of ioctl BLKGETSIZE64 to match recent kernels. * Teach ext2prepare how to handle file systems over 2 TiB. --- 2,6 ---- * Fixed a few compiler warnings. * Fix typos in the documentation and manual. ! * Improve support for big-endian systems. * Adjust handling of ioctl BLKGETSIZE64 to match recent kernels. * Teach ext2prepare how to handle file systems over 2 TiB. |
From: Petter R. <pe...@us...> - 2006-06-11 08:30:16
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv11467/src Modified Files: ext2.c ext2.h ext2online.c Log Message: More big-endian fixes. Change is based on patch from Fedora. Part of the Fedora patch was already commited. This is the rest of it. Index: ext2online.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2online.c,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** ext2online.c 11 Jun 2006 08:19:04 -0000 1.28 --- ext2online.c 11 Jun 2006 08:30:07 -0000 1.29 *************** *** 239,246 **** unsigned int group; int last = 0; ! ! if (dindir_buf[gdb_num % apb] != pri_blk) { fprintf(stderr, "found %d not %d at %d[%d]\n", ! dindir_buf[gdb_num % apb], pri_blk, fs->resize.i_block[EXT2_DIND_BLOCK], gdb_num % apb); --- 239,248 ---- unsigned int group; int last = 0; ! blk_t dblk; ! ! dblk = le32_to_cpu(dindir_buf[gdb_num % apb]); ! if (dblk != pri_blk) { fprintf(stderr, "found %d not %d at %d[%d]\n", ! dblk, pri_blk, fs->resize.i_block[EXT2_DIND_BLOCK], gdb_num % apb); *************** *** 254,258 **** fs->numgroups) { __u32 *pri_buf = (__u32 *)(pri_bh->data); ! blk_t bku_blk; bku_blk = pri_blk + group * fs->sb.s_blocks_per_group; --- 256,260 ---- fs->numgroups) { __u32 *pri_buf = (__u32 *)(pri_bh->data); ! blk_t bku_blk, pblk; bku_blk = pri_blk + group * fs->sb.s_blocks_per_group; *************** *** 261,267 **** printf("checking for group block %d in Bond\n", bku_blk); ! if (pri_buf[last] != bku_blk) { fprintf(stderr, "found %d not %d at %d[%d]\n", ! pri_buf[last], bku_blk, pri_blk, last); ext2_brelse(pri_bh, 0); ret = 0; --- 263,270 ---- printf("checking for group block %d in Bond\n", bku_blk); ! pblk = le32_to_cpu(pri_buf[last]); ! if (pblk != bku_blk) { fprintf(stderr, "found %d not %d at %d[%d]\n", ! pblk, bku_blk, pri_blk, last); ext2_brelse(pri_bh, 0); ret = 0; *************** *** 341,344 **** --- 344,348 ---- gdp = (struct ext2_group_desc *)bh->data + (group % (fs->blocksize/sizeof(struct ext2_group_desc))); + ext2fs_swab_group_desc(fs, gdp); gdp->bg_block_bitmap = start + new_bb; Index: ext2.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2.c,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** ext2.c 10 Jun 2006 07:45:55 -0000 1.34 --- ext2.c 11 Jun 2006 08:30:07 -0000 1.35 *************** *** 36,39 **** --- 36,42 ---- unsigned char _bitmap[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; + static void ext2_swab_inode(struct ext2_fs *fs, + struct ext2_inode *t, struct ext2_inode *f, + int hostorder); void ext2_print_version(FILE *outfile, char *progname) *************** *** 259,262 **** --- 262,266 ---- memcpy(inode, bh->data + off, sizeof(struct ext2_inode)); ext2_brelse(bh, 0); + ext2_swab_inode(fs, inode, inode, 0); } *************** *** 842,845 **** --- 846,861 ---- } + void ext2fs_swab_group_desc(struct ext2_fs *fs, struct ext2_group_desc *gdp) + { + if(fs->flags & FL_SWAB_BYTES) { + gdp->bg_block_bitmap = ext2fs_swab32(gdp->bg_block_bitmap); + gdp->bg_inode_bitmap = ext2fs_swab32(gdp->bg_inode_bitmap); + gdp->bg_inode_table = ext2fs_swab32(gdp->bg_inode_table); + gdp->bg_free_blocks_count = ext2fs_swab16(gdp->bg_free_blocks_count); + gdp->bg_free_inodes_count = ext2fs_swab16(gdp->bg_free_inodes_count); + gdp->bg_used_dirs_count = ext2fs_swab16(gdp->bg_used_dirs_count); + } + } + static void ext2_swab_gds(struct ext2_fs *fs) { *************** *** 847,856 **** unsigned int group; for(group = 0; group < fs->gdblocks; group++) { ! fs->gd[group].bg_block_bitmap = ext2fs_swab32(fs->gd[group].bg_block_bitmap); ! fs->gd[group].bg_inode_bitmap = ext2fs_swab32(fs->gd[group].bg_inode_bitmap); ! fs->gd[group].bg_inode_table = ext2fs_swab32(fs->gd[group].bg_inode_table); ! fs->gd[group].bg_free_blocks_count = ext2fs_swab16(fs->gd[group].bg_free_blocks_count); ! fs->gd[group].bg_free_inodes_count = ext2fs_swab16(fs->gd[group].bg_free_inodes_count); ! fs->gd[group].bg_used_dirs_count = ext2fs_swab16(fs->gd[group].bg_used_dirs_count); } } --- 863,957 ---- unsigned int group; for(group = 0; group < fs->gdblocks; group++) { ! ext2fs_swab_group_desc(fs, &(fs->gd[group])); ! } ! } ! } ! ! static __inline__ blk_t ext2fs_inode_data_blocks(struct ext2_fs *fs, ! struct ext2_inode *inode) ! { ! return inode->i_blocks - ! (inode->i_file_acl ? fs->blocksize >> 9 : 0); ! } ! ! /* from <linux/stat.h>, copied here to avoid using a kernel header */ ! #define LINUX_S_IFMT 00170000 ! #define LINUX_S_IFLNK 00120000 ! #define LINUX_S_ISLNK(m) (((m) & LINUX_S_IFMT) == LINUX_S_IFLNK) ! ! static void ext2_swab_inode(struct ext2_fs *fs, ! struct ext2_inode *t, struct ext2_inode *f, ! int hostorder) ! { ! if(fs->flags & FL_SWAB_BYTES) { ! unsigned i; ! int islnk = 0; ! ! if (hostorder && LINUX_S_ISLNK(f->i_mode)) ! islnk = 1; ! t->i_mode = ext2fs_swab16(f->i_mode); ! if (!hostorder && LINUX_S_ISLNK(t->i_mode)) ! islnk = 1; ! t->i_uid = ext2fs_swab16(f->i_uid); ! t->i_size = ext2fs_swab32(f->i_size); ! t->i_atime = ext2fs_swab32(f->i_atime); ! t->i_ctime = ext2fs_swab32(f->i_ctime); ! t->i_mtime = ext2fs_swab32(f->i_mtime); ! t->i_dtime = ext2fs_swab32(f->i_dtime); ! t->i_gid = ext2fs_swab16(f->i_gid); ! t->i_links_count = ext2fs_swab16(f->i_links_count); ! t->i_blocks = ext2fs_swab32(f->i_blocks); ! t->i_flags = ext2fs_swab32(f->i_flags); ! t->i_file_acl = ext2fs_swab32(f->i_file_acl); ! t->i_dir_acl = ext2fs_swab32(f->i_dir_acl); ! if (!islnk || ext2fs_inode_data_blocks(fs, t)) { ! for (i = 0; i < EXT2_N_BLOCKS; i++) ! t->i_block[i] = ext2fs_swab32(f->i_block[i]); ! } else if (t != f) { ! for (i = 0; i < EXT2_N_BLOCKS; i++) ! t->i_block[i] = f->i_block[i]; ! } ! t->i_generation = ext2fs_swab32(f->i_generation); ! t->i_faddr = ext2fs_swab32(f->i_faddr); ! ! switch (fs->sb.s_creator_os) { ! case EXT2_OS_LINUX: ! t->osd1.linux1.l_i_reserved1 = ! ext2fs_swab32(f->osd1.linux1.l_i_reserved1); ! t->osd2.linux2.l_i_frag = f->osd2.linux2.l_i_frag; ! t->osd2.linux2.l_i_fsize = f->osd2.linux2.l_i_fsize; ! t->osd2.linux2.i_pad1 = ext2fs_swab16(f->osd2.linux2.i_pad1); ! t->osd2.linux2.l_i_uid_high = ! ext2fs_swab16 (f->osd2.linux2.l_i_uid_high); ! t->osd2.linux2.l_i_gid_high = ! ext2fs_swab16 (f->osd2.linux2.l_i_gid_high); ! t->osd2.linux2.l_i_reserved2 = ! ext2fs_swab32(f->osd2.linux2.l_i_reserved2); ! break; ! case EXT2_OS_HURD: ! t->osd1.hurd1.h_i_translator = ! ext2fs_swab32 (f->osd1.hurd1.h_i_translator); ! t->osd2.hurd2.h_i_frag = f->osd2.hurd2.h_i_frag; ! t->osd2.hurd2.h_i_fsize = f->osd2.hurd2.h_i_fsize; ! t->osd2.hurd2.h_i_mode_high = ! ext2fs_swab16 (f->osd2.hurd2.h_i_mode_high); ! t->osd2.hurd2.h_i_uid_high = ! ext2fs_swab16 (f->osd2.hurd2.h_i_uid_high); ! t->osd2.hurd2.h_i_gid_high = ! ext2fs_swab16 (f->osd2.hurd2.h_i_gid_high); ! t->osd2.hurd2.h_i_author = ! ext2fs_swab32 (f->osd2.hurd2.h_i_author); ! break; ! case EXT2_OS_MASIX: ! t->osd1.masix1.m_i_reserved1 = ! ext2fs_swab32(f->osd1.masix1.m_i_reserved1); ! t->osd2.masix2.m_i_frag = f->osd2.masix2.m_i_frag; ! t->osd2.masix2.m_i_fsize = f->osd2.masix2.m_i_fsize; ! t->osd2.masix2.m_pad1 = ext2fs_swab16(f->osd2.masix2.m_pad1); ! t->osd2.masix2.m_i_reserved2[0] = ! ext2fs_swab32(f->osd2.masix2.m_i_reserved2[0]); ! t->osd2.masix2.m_i_reserved2[1] = ! ext2fs_swab32(f->osd2.masix2.m_i_reserved2[1]); ! break; } } Index: ext2.h =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2.h,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** ext2.h 10 Jun 2006 07:45:55 -0000 1.28 --- ext2.h 11 Jun 2006 08:30:07 -0000 1.29 *************** *** 240,243 **** --- 240,246 ---- int ext2_resize_fs(struct ext2_fs *fs); + /* fs byte-swap */ + void ext2fs_swab_group_desc(struct ext2_fs *fs, struct ext2_group_desc *gdp); + /* unix I/O */ loff_t ext2_llseek(unsigned int fd, loff_t offset, unsigned int whence); |
From: Petter R. <pe...@us...> - 2006-06-11 08:29:52
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv8710 Modified Files: ext2_fs.h Log Message: Document more of the content in the ext2 super block struct. Code found in the big-endian patch from Fedora. Index: ext2_fs.h =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2_fs.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ext2_fs.h 3 Jul 2002 17:52:24 -0000 1.8 --- ext2_fs.h 11 Jun 2006 08:23:37 -0000 1.9 *************** *** 459,465 **** __u32 s_journal_inum; /* inode number of journal file */ __u32 s_journal_dev; /* device number of journal file */ __u32 s_last_orphan; /* start of list of inodes to delete */ ! __u32 s_reserved[197]; /* Padding to the end of the block */ }; --- 459,474 ---- __u32 s_journal_inum; /* inode number of journal file */ __u32 s_journal_dev; /* device number of journal file */ + __u32 s_last_orphan; /* start of list of inodes to delete */ + __u32 s_hash_seed[4]; /* HTREE hash seed */ + __u8 s_def_hash_version; /* Default hash version to use */ + __u8 s_jnl_backup_type; /* Default type of journal backup */ + __u16 s_reserved_word_pad; + __u32 s_default_mount_opts; + __u32 s_first_meta_bg; /* First metablock group */ + __u32 s_mkfs_time; /* When the filesystem was created */ + __u32 s_jnl_blocks[17]; /* Backup of the journal inode */ ! __u32 s_reserved[172]; /* Padding to the end of the block */ }; |
From: Petter R. <pe...@us...> - 2006-06-11 08:19:22
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv6907/src Modified Files: ext2online.c Log Message: Disable fallback to offline resizing in ext2online. Patch from the Fedora package. Index: ext2online.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2online.c,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** ext2online.c 11 Jun 2006 06:09:24 -0000 1.27 --- ext2online.c 11 Jun 2006 08:19:04 -0000 1.28 *************** *** 508,512 **** if (ext2_ioctl(fs, EXT2_IOC_GROUP_EXTEND, &size)) fs->flags |= FL_IOCTL; ! else if (errno != ENOTTY) return 0; --- 508,518 ---- if (ext2_ioctl(fs, EXT2_IOC_GROUP_EXTEND, &size)) fs->flags |= FL_IOCTL; ! else /* if (errno != ENOTTY) */ ! /* ! * Disable fallback to offline resizing. This change was ! * found in the Fedora/RedHat package, and was explained ! * with "resize2fs is incompatible with online resize, and ! * can result in corrupt filesystems." Use resize2fs instead. ! */ return 0; |
From: Petter R. <pe...@us...> - 2006-06-11 06:19:41
|
Update of /cvsroot/ext2resize/ext2resize In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv21586 Modified Files: Makefile.am Log Message: Include new file autogen.sh in source tarball. Index: Makefile.am =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.am 22 Mar 2000 21:24:23 -0000 1.2 --- Makefile.am 11 Jun 2006 06:19:37 -0000 1.3 *************** *** 2,3 **** --- 2,5 ---- SUBDIRS = doc src + + EXTRA_DIST = autogen.sh |
From: Petter R. <pe...@us...> - 2006-06-11 06:11:18
|
Update of /cvsroot/ext2resize/ext2resize In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv17681 Modified Files: README Log Message: Include project page URL and bug reporting instructions in README. Index: README =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/README,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** README 10 Jun 2006 18:09:17 -0000 1.10 --- README 11 Jun 2006 06:11:15 -0000 1.11 *************** *** 10,13 **** --- 10,16 ---- ext2prepare man pages for more information on how to use this package. + The project page is <URL:http://sourceforge.net/projects/ext2resize/>. + Please report bugs to ext2resize-devel at lists.sourceforge.net. + Share and enjoy! |
From: Petter R. <pe...@us...> - 2006-06-11 06:09:28
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16665/src Modified Files: ext2online.c Log Message: Avoid some warnings with gcc 4.1. Index: ext2online.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2online.c,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** ext2online.c 10 Jun 2006 07:45:55 -0000 1.26 --- ext2online.c 11 Jun 2006 06:09:24 -0000 1.27 *************** *** 570,574 **** int main(int argc, char *argv[]) { ! char *dev, *type, *opts, *dir = NULL; char *progname; struct ext2_dev_handle *handle; --- 570,574 ---- int main(int argc, char *argv[]) { ! char *dev, *type = NULL, *opts = NULL, *dir = NULL; char *progname; struct ext2_dev_handle *handle; |
From: Coywolf Qi H. <co...@gm...> - 2006-06-11 04:14:59
|
2006/6/10, Petter Reinholdtsen <pe...@us...>: > Update of /cvsroot/ext2resize/ext2resize/src > In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv13606/src > > Modified Files: > Makefile.am > Log Message: > Increase default compiler warning level. > > Index: Makefile.am > =================================================================== > RCS file: /cvsroot/ext2resize/ext2resize/src/Makefile.am,v > retrieving revision 1.8 > retrieving revision 1.9 > diff -C2 -d -r1.8 -r1.9 > *** Makefile.am 17 Feb 2006 11:12:25 -0000 1.8 > --- Makefile.am 9 Jun 2006 21:25:13 -0000 1.9 > *************** > *** 28,30 **** > LIBS = @LIBS@ > > ! AM_CFLAGS = -Wall -g > --- 28,30 ---- > LIBS = @LIBS@ > > ! AM_CFLAGS = -W -Wall -g > could be more descriptive -Wextra -- Coywolf Qi Hunt |
From: Andreas D. <ad...@us...> - 2006-06-10 18:09:20
|
Update of /cvsroot/ext2resize/ext2resize In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv3739 Modified Files: README Log Message: Remove mention of online resizing ext2 filesystems. Index: README =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/README,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** README 9 Jun 2006 21:58:39 -0000 1.9 --- README 10 Jun 2006 18:09:17 -0000 1.10 *************** *** 4,8 **** is the filesystem found on GNU/Linux machines). The tools included in this package can be used to grow and shrink unmounted ext2 filesystems, ! and also grow mounted, in-use ext2 filesystems with the help of a kernel patch. --- 4,8 ---- is the filesystem found on GNU/Linux machines). The tools included in this package can be used to grow and shrink unmounted ext2 filesystems, ! and also grow mounted, in-use ext3 filesystems with the help of a kernel patch. *************** *** 10,20 **** ext2prepare man pages for more information on how to use this package. - There are kernel patches (in patches/) which allow you to resize ext2 - filesystems while they are mounted, using the ext2online tool. - Note that there is a patch for online resizing of ext3 filesystems - included here, but it is not yet complete. You probably shouldn't - use it... I only include it as a work in progress, because I want - to make a new release of ext2reszie after such a long time -- Andreas. - Share and enjoy! --- 10,13 ---- |
From: Andreas D. <ad...@us...> - 2006-06-10 18:08:05
|
Update of /cvsroot/ext2resize/ext2resize In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv3351 Added Files: autogen.sh Log Message: Add "autogen.sh" script to rebuild the whole auto* cruft. --- NEW FILE: autogen.sh --- #!/bin/sh aclocal autoheader automake autoconf |
From: Petter R. <pe...@us...> - 2006-06-10 07:45:58
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv31258/src Modified Files: ext2.c ext2.h ext2_block_relocator.c ext2_inode_relocator.c ext2online.c ext2resize.c llseek.c Log Message: Avoid some compiler warnings. Fixed some missing prototypes, signed/unsigned and cast issues. Index: ext2resize.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2resize.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** ext2resize.c 18 Dec 2005 09:05:23 -0000 1.16 --- ext2resize.c 10 Jun 2006 07:45:55 -0000 1.17 *************** *** 28,32 **** #include "ext2.h" ! void usage(FILE *outfile, char *progname) { fprintf(outfile, --- 28,32 ---- #include "ext2.h" ! static void usage(FILE *outfile, char *progname) { fprintf(outfile, *************** *** 44,48 **** } ! void parse_args(int *argc, char **argv[], int *flags) { static struct option long_options[] = { --- 44,48 ---- } ! static void parse_args(int *argc, char **argv[], int *flags) { static struct option long_options[] = { Index: ext2online.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2online.c,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** ext2online.c 10 Jun 2006 06:45:22 -0000 1.25 --- ext2online.c 10 Jun 2006 07:45:55 -0000 1.26 *************** *** 722,726 **** /* Fatal error. Print message and exit. */ ! void die (int err, const char *fmt, ...) { va_list args; --- 722,726 ---- /* Fatal error. Print message and exit. */ ! static void die (int err, const char *fmt, ...) { va_list args; *************** *** 735,739 **** ! void * xmalloc (size_t size) { void *t; --- 735,739 ---- ! static void * xmalloc (size_t size) { void *t; *************** *** 749,753 **** } ! char * xstrdup (const char *s) { char *t; --- 749,753 ---- } ! static char * xstrdup (const char *s) { char *t; *************** *** 768,772 **** /* this leaks some memory - unimportant for resize */ ! char * myrealpath(const char *path, char *resolved_path, int maxreslth) { int readlinks = 0; --- 768,772 ---- /* this leaks some memory - unimportant for resize */ ! static char * myrealpath(const char *path, char *resolved_path, int maxreslth) { int readlinks = 0; Index: ext2_block_relocator.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2_block_relocator.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ext2_block_relocator.c 18 Feb 2006 06:04:32 -0000 1.21 --- ext2_block_relocator.c 10 Jun 2006 07:45:55 -0000 1.22 *************** *** 105,109 **** } ! struct ext2_block_entry *findit(struct ext2_block_relocator_state *state, blk_t block) { --- 105,109 ---- } ! static struct ext2_block_entry *findit(struct ext2_block_relocator_state *state, blk_t block) { *************** *** 406,410 **** printf("\n"); } else { ! int i; int ret = 1; --- 406,410 ---- printf("\n"); } else { ! unsigned int i; int ret = 1; Index: ext2.h =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2.h,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** ext2.h 10 Jun 2006 07:36:33 -0000 1.27 --- ext2.h 10 Jun 2006 07:45:55 -0000 1.28 *************** *** 23,26 **** --- 23,27 ---- static const char _ext2_h[] = "$Id$"; + #include <stdio.h> #include <sys/types.h> #include <endian.h> Index: ext2.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2.c,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** ext2.c 10 Jun 2006 06:45:22 -0000 1.33 --- ext2.c 10 Jun 2006 07:45:55 -0000 1.34 *************** *** 454,458 **** if (fs->flags & FL_ONLINE) { fs->devhandle->ops->direct_write(fs->devhandle->cookie, ! (void *)inode, (loff_t)blk * fs->blocksize + off, sizeof(struct ext2_inode)); } else { --- 454,458 ---- if (fs->flags & FL_ONLINE) { fs->devhandle->ops->direct_write(fs->devhandle->cookie, ! (const void *)inode, (loff_t)blk * fs->blocksize + off, sizeof(struct ext2_inode)); } else { *************** *** 818,822 **** /* swab to LE if necessary */ ! void ext2_swab_super(struct ext2_fs *fs) { if(fs->flags & FL_SWAB_BYTES) { --- 818,822 ---- /* swab to LE if necessary */ ! static void ext2_swab_super(struct ext2_fs *fs) { if(fs->flags & FL_SWAB_BYTES) { *************** *** 842,849 **** } ! void ext2_swab_gds(struct ext2_fs *fs) { if(fs->flags & FL_SWAB_BYTES) { ! int group; for(group = 0; group < fs->gdblocks; group++) { fs->gd[group].bg_block_bitmap = ext2fs_swab32(fs->gd[group].bg_block_bitmap); --- 842,849 ---- } ! static void ext2_swab_gds(struct ext2_fs *fs) { if(fs->flags & FL_SWAB_BYTES) { ! unsigned int group; for(group = 0; group < fs->gdblocks; group++) { fs->gd[group].bg_block_bitmap = ext2fs_swab32(fs->gd[group].bg_block_bitmap); *************** *** 1059,1063 **** for (i = 0, block = fs->sb.s_first_data_block + fs->newgdblocks + 1; i < fs->newgroups; i++, block += fs->sb.s_blocks_per_group) { ! int j; if (!ext2_bg_has_super(fs, i)) --- 1059,1063 ---- for (i = 0, block = fs->sb.s_first_data_block + fs->newgdblocks + 1; i < fs->newgroups; i++, block += fs->sb.s_blocks_per_group) { ! unsigned int j; if (!ext2_bg_has_super(fs, i)) Index: llseek.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/llseek.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** llseek.c 10 Jun 2006 07:12:11 -0000 1.8 --- llseek.c 10 Jun 2006 07:45:55 -0000 1.9 *************** *** 20,23 **** --- 20,24 ---- #include "config.h" #include <sys/types.h> + #include "ext2.h" #if HAVE_LSEEK64 Index: ext2_inode_relocator.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2_inode_relocator.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ext2_inode_relocator.c 17 Feb 2006 05:31:25 -0000 1.17 --- ext2_inode_relocator.c 10 Jun 2006 07:45:55 -0000 1.18 *************** *** 244,248 **** { struct ext2_buffer_head *bh; ! int i; int offset; --- 244,248 ---- { struct ext2_buffer_head *bh; ! unsigned int i; int offset; *************** *** 417,421 **** if (fs->gd[i].bg_free_inodes_count) { struct ext2_buffer_head *bh; ! int j; int offset; --- 417,421 ---- if (fs->gd[i].bg_free_inodes_count) { struct ext2_buffer_head *bh; ! unsigned int j; int offset; *************** *** 521,525 **** for (i = fs->newgroups; i < fs->numgroups; i++) { struct ext2_buffer_head *bh; ! int j; int offset; --- 521,525 ---- for (i = fs->newgroups; i < fs->numgroups; i++) { struct ext2_buffer_head *bh; ! unsigned int j; int offset; |
From: Petter R. <pe...@us...> - 2006-06-10 07:36:36
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv27624/src Modified Files: ext2.h ext2_unix_io.c Log Message: Change prototype of the write and direct_write function pointers in struct ext2_dev_ops to use 'const void *' instead of 'void*'. This documents the requirements and get rid of a compile warning. Index: ext2.h =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2.h,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** ext2.h 10 Jun 2006 06:45:22 -0000 1.26 --- ext2.h 10 Jun 2006 07:36:33 -0000 1.27 *************** *** 90,96 **** void (*set_blocksize)(void *cookie, int logsize); void (*sync)(void *cookie); ! void (*write)(void *cookie, void *ptr, blk_t block, blk_t num); void (*direct_read)(void *cookie, void *ptr, loff_t offset, size_t numbytes); ! void (*direct_write)(void *cookie, void *ptr, loff_t offset, size_t numbytes); int (*ioctl)(void *cookie, int ioc, void *ptr); }; --- 90,96 ---- void (*set_blocksize)(void *cookie, int logsize); void (*sync)(void *cookie); ! void (*write)(void *cookie, const void *ptr, blk_t block, blk_t num); void (*direct_read)(void *cookie, void *ptr, loff_t offset, size_t numbytes); ! void (*direct_write)(void *cookie, const void *ptr, loff_t offset, size_t numbytes); int (*ioctl)(void *cookie, int ioc, void *ptr); }; Index: ext2_unix_io.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2_unix_io.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ext2_unix_io.c 18 Dec 2005 10:39:45 -0000 1.17 --- ext2_unix_io.c 10 Jun 2006 07:36:33 -0000 1.18 *************** *** 184,188 **** } ! static void do_direct_write(void *cookie, void *ptr, loff_t offset, size_t numbytes) { --- 184,188 ---- } ! static void do_direct_write(void *cookie, const void *ptr, loff_t offset, size_t numbytes) { *************** *** 206,210 **** } ! static void do_write(void *cookie, void *ptr, blk_t block, blk_t numblocks) { struct my_cookie *monster = cookie; --- 206,210 ---- } ! static void do_write(void *cookie, const void *ptr, blk_t block, blk_t numblocks) { struct my_cookie *monster = cookie; |
From: Petter R. <pe...@us...> - 2006-06-10 07:36:36
|
Update of /cvsroot/ext2resize/ext2resize In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv27624 Modified Files: NEWS Log Message: Change prototype of the write and direct_write function pointers in struct ext2_dev_ops to use 'const void *' instead of 'void*'. This documents the requirements and get rid of a compile warning. Index: NEWS =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/NEWS,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** NEWS 10 Jun 2006 06:45:21 -0000 1.8 --- NEWS 10 Jun 2006 07:36:33 -0000 1.9 *************** *** 9,12 **** --- 9,14 ---- * Fix bug in ext2 metainfo handling (use correct offset). * Corrected and improved program output. + * Change prototype of the write and direct_write function pointers in + struct ext2_dev_ops to use 'const void *' instead of 'void*'. Version 1.1.19 (2004-09-30) |
From: Petter R. <pe...@us...> - 2006-06-10 07:18:19
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv19426 Modified Files: Makefile.am Log Message: Enable more compiler warnings. Index: Makefile.am =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/Makefile.am,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Makefile.am 9 Jun 2006 22:03:33 -0000 1.10 --- Makefile.am 10 Jun 2006 07:18:17 -0000 1.11 *************** *** 29,31 **** LIBS = @LIBS@ ! AM_CFLAGS = -W -Wall -g --- 29,32 ---- LIBS = @LIBS@ ! AM_CFLAGS = -g -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type \ ! -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes |
From: Petter R. <pe...@us...> - 2006-06-10 07:15:28
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv17861 Modified Files: ext2prepare.c Log Message: Make internal functions static. Index: ext2prepare.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/ext2prepare.c,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** ext2prepare.c 10 Jun 2006 06:45:22 -0000 1.20 --- ext2prepare.c 10 Jun 2006 07:15:24 -0000 1.21 *************** *** 41,45 **** #define EXT2_IND_CHANGED 2 ! void usage(FILE *outfile, char *progname) { fprintf(outfile, --- 41,45 ---- #define EXT2_IND_CHANGED 2 ! static void usage(FILE *outfile, char *progname) { fprintf(outfile, *************** *** 56,60 **** } ! void parse_args(int *argc, char **argv[], int *flags) { static struct option long_options[] = { --- 56,60 ---- } ! static void parse_args(int *argc, char **argv[], int *flags) { static struct option long_options[] = { *************** *** 90,94 **** * Ensure it isn't in the range where we may need to move GDT blocks later. */ ! int check_inode_ind(struct ext2_fs *fs, blk_t *block, __u32 *blocks) { blk_t i, offset; --- 90,94 ---- * Ensure it isn't in the range where we may need to move GDT blocks later. */ ! static int check_inode_ind(struct ext2_fs *fs, blk_t *block, __u32 *blocks) { blk_t i, offset; *************** *** 128,132 **** } ! int create_resize_inode(struct ext2_fs *fs) { struct ext2_inode tmp; --- 128,132 ---- } ! static int create_resize_inode(struct ext2_fs *fs) { struct ext2_inode tmp; *************** *** 188,192 **** ! int ext2_prepare_fs(struct ext2_fs *fs) { int status; --- 188,192 ---- ! static int ext2_prepare_fs(struct ext2_fs *fs) { int status; |
From: Petter R. <pe...@us...> - 2006-06-10 07:12:15
|
Update of /cvsroot/ext2resize/ext2resize/src In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16367 Modified Files: llseek.c Log Message: Use '__inline__' instead of 'inline' to match the rest of the code. This make it easier to compile the source with gcc -ansi. Index: llseek.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/llseek.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** llseek.c 28 Jun 2002 17:46:43 -0000 1.7 --- llseek.c 10 Jun 2006 07:12:11 -0000 1.8 *************** *** 24,28 **** #define __USE_LARGEFILE64 #include <unistd.h> ! inline loff_t ext2_llseek (unsigned int fd, loff_t offset, unsigned int whence) { return lseek64(fd, offset, whence); --- 24,28 ---- #define __USE_LARGEFILE64 #include <unistd.h> ! __inline__ loff_t ext2_llseek (unsigned int fd, loff_t offset, unsigned int whence) { return lseek64(fd, offset, whence); *************** *** 35,39 **** * Should really use lseek64() anyways. */ ! inline loff_t ext2_llseek (unsigned int fd, loff_t offset, unsigned int whence) { loff_t result = llseek(fd, offset, whence); --- 35,39 ---- * Should really use lseek64() anyways. */ ! __inline__ loff_t ext2_llseek (unsigned int fd, loff_t offset, unsigned int whence) { loff_t result = llseek(fd, offset, whence); |