skypher / fdisk (http://gnu.org/software/fdisk/)

GNU fdisk

Clone this repository (size: 530.5 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/skypher/fdisk/
commit 84: 5fd1a35eb590
parent 83: c6372b5491a3
branch: default
Fixed bugs about SIGSEGV when working with busy disk's user: Christian
ro...@localhost
15 months ago

Changed (Δ352 bytes):

raw changeset »

ChangeLog (8 lines added, 0 lines removed)

src/common.c (14 lines added, 10 lines removed)

src/ui.c (3 lines added, 2 lines removed)

Up to file-list ChangeLog:

1
12/29/2008 Christian <mail.kristian@yahoo.it>
2
3
	* ui.c: Bug fixed 
4
		(http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg00011.html)
5
	
6
	* common.c: Bug fixed
7
		(http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg00010.html)
8
	
1
9
10/23/2008 Christian <mail.kristian@yahoo.it>
2
10
3
11
	* fdisk.c: Make `do_change_system_type' not case

Up to file-list src/common.c:

@@ -1259,21 +1259,25 @@ perform_mklabel (PedDevice* dev, PedDisk
1259
1259
        if (!*disk) ped_exception_catch ();
1260
1260
        ped_exception_leave_all ();*/
1261
1261
1262
        if (*disk) {
1263
                if (!_disk_warn_busy (*disk)) {
1264
                        ped_disk_destroy (*disk);
1265
                        goto error;
1266
                }
1262
        if (*disk) 
1263
	  {
1264
	    if (!_disk_warn_busy (*disk)) 
1265
	      {
1266
		/* http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg00010.html*/
1267
		/* ped_disk_destroy (*disk); */
1268
		goto error;
1269
	      }
1267
1270
                ped_disk_destroy (*disk);
1268
1271
        }
1269
	if (!type) {
1270
        	if (!get_disk_type (_("New disk label type"), &type))
1271
                	goto error;
1272
	}
1272
	if (!type) 
1273
	  {
1274
	    if (!get_disk_type (_("New disk label type"), &type))
1275
	      goto error;
1276
	  }
1273
1277
1274
1278
        *disk = ped_disk_new_fresh (dev, type);
1275
1279
        if (!*disk)
1276
                goto error;
1280
	  goto error;
1277
1281
1278
1282
        /*if (!ped_disk_commit (*disk))
1279
1283
                goto error;*/

Up to file-list src/ui.c:

@@ -717,8 +717,9 @@ fdisk_interactive_mode(PedDevice **dev,
717
717
  
718
718
  /* List the specified disk. */
719
719
  if (fdisk_list_table)
720
    fdisk_do_list_devices(&disk);
721
  
720
    /* http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg00011.html */
721
    /* fdisk_do_list_devices(&disk); */
722
    fdisk_do_list_devices(disk);
722
723
723
724
  fdisk_print_using_dev (disk->dev);
724
725