bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem resizing ext2 filesystem on LVM


From: Dave Wapstra
Subject: Re: Problem resizing ext2 filesystem on LVM
Date: Sun, 13 Jan 2002 16:57:30 +0100
User-agent: Mutt/1.2.5.1i

On Sat, Jan 12, 2002 at 08:56:26AM +1100, Andrew Clausen wrote:
> # libtool gdb parted

I did the magic, see log below.  I tried it a number of times, and at one of 
them I did a "step" in between:


(gdb) info line
Line 618 of "ext2_resize.c" is at address 0x700bc42c but contains no code.
(gdb) step
ext2_grow_fs (fs=0x4b260, newsize=52846592) at ext2_resize.c:463
463             if (fs->opt_verbose)
(gdb) print fs->sb.s_blocks_count
$3 = 6332930
(gdb) cont   
Continuing.
(parted) quit

It looks like it breaks out of ext2_resize.c and doesn't return which is 
probably why the breakpoint at line 111 
doesn't pop up.

I'm interested in your comments :)

-Dave



address@hidden sbin]# libtool gdb ./parted
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-redhat-linux"...
(gdb) run /dev/ftp1/cisco
Starting program: /var/tmp/p/sbin/./parted /dev/ftp1/cisco
Warning: Device /dev/ftp1/cisco is neither a SCSI nor IDE drive.
Ignore Cancel ? i
GNU Parted 1.4.22
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY 
WARRANTY; without even the implied 
warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General 
Public License for more details.

Using /dev/ftp1/cisco
(parted) p
Disk geometry for /dev/ftp1/cisco: 0.000-206440.000 megabytes
Disk label type: loop
Minor    Start       End     Filesystem  Flags
1          0.000 206440.000  ext2        
(parted) 
Program received signal SIGINT, Interrupt.
0x701f9c78 in read () at soinit.c:59
59      soinit.c: No such file or directory.
(gdb) break _ext2_resize
Breakpoint 1 at 0x701144d0: file interface.c, line 264.
(gdb) break ext2_resize_fs
Breakpoint 2 at 0x7010eff8: file ext2_resize.c, line 618.
(gdb) cont
Continuing.

  check MINOR                   do a simple check on the filesystem
  cp [FROM-DEVICE] FROM-MINOR TO-MINOR      copy filesystem to another partition
  help [COMMAND]                prints general help, or help on COMMAND
  mklabel LABEL-TYPE            create a new disklabel (partition table)
  mkfs MINOR FS-TYPE            make a filesystem FS-TYPE on partititon MINOR
  mkpart PART-TYPE [FS-TYPE] START END      make a partition
  mkpartfs PART-TYPE FS-TYPE START END      make a partition with a filesystem
  move MINOR START [END]          move partition MINOR
  name MINOR NAME               name partition MINOR NAME
  print                         display the partition table
  quit                          exit program
  resize MINOR START END        resize filesystem on partition MINOR
  rm MINOR                      delete partition MINOR
  select DEVICE                 choose the device to edit
  set MINOR FLAG STATE          change a flag on partition MINOR
(parted) resize 1 0 206432

Breakpoint 1, _ext2_resize (fs=0x4b148, geom=0x4b260) at interface.c:264
264             PedSector       old_length = fs->geom->length;
(gdb) print *(fs->geom)
$1 = {disk = 0x4b130, start = 0, length = 422789120, end = 422789119}
(gdb) print *geom
$2 = {disk = 0x4b130, start = 0, length = 422772737, end = 422772736}
(gdb) cont
Continuing.

Breakpoint 2, 0x7010eff8 in is_root () at ext2_resize.c:618
618     }
(gdb) print fs->sb.s_blocks_count
No symbol "fs" in current context.
(gdb) tbreak 111
Breakpoint 3 at 0x7010fa70: file ext2_resize.c, line 111.
(gdb) print fs->sb.s_blocks_count
No symbol "fs" in current context.
(gdb) cont
Continuing.

Breakpoint 2, 0x7010eff8 in is_root () at ext2_resize.c:618
618     }
(gdb) print fs->sb.s_blocks_count
No symbol "fs" in current context.
(gdb) tbreak 111
Note: breakpoint 3 also set at pc 0x7010fa70.
Breakpoint 4 at 0x7010fa70: file ext2_resize.c, line 111.
(gdb)  print fs->sb.s_blocks_count
No symbol "fs" in current context.
(gdb) cont
Continuing.
(parted) p
Disk geometry for /dev/ftp1/cisco: 0.000-206440.000 megabytes
Disk label type: loop
Minor    Start       End     Filesystem  Flags
1          0.000 206440.000  ext2        
(parted) quit
Warning: You should reinstall your boot loader before rebooting.  Read section 
4 of the Parted User documentation 
for more
information.

Program exited normally.
(gdb) quit









reply via email to

[Prev in Thread] Current Thread [Next in Thread]