]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Synchronize with EVMS CVS. Add better error handling
authorTheodore Ts'o <tytso@mit.edu>
Fri, 8 Nov 2002 17:07:21 +0000 (12:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 8 Nov 2002 17:07:21 +0000 (12:07 -0500)
for child processes that die unexpectedly.

lib/evms/ChangeLog
lib/evms/fs_ext2.c
lib/evms/fsimext2.c

index 1e7089e69d032dd78fb0a6aff9faa2735d28288f..307163c3d4195184a656722431a92aa7cb262747 100644 (file)
@@ -1,5 +1,13 @@
 2002-11-08  Theodore Ts'o  <tytso@mit.edu>
 
+       * fs_ext2.c (fs_expand, fs_shrink): Synchronize with EVMS CVS rev
+               1.13 (2002/09/03).  Add better error handling for child
+               processes that die unexpectedly.
+       
+       * fsimext2.c (fsim_mkfs, fsim_fsck): Synchronize with EVMS CVS rev
+               1.6 (2002/09/03).  Add better error handling for child
+               processes that die unexpectedly.
+
        * fs_ext2.c (fs_expand): Synchronize with EVMS CVS rev 1.12
                (2002/08/28): Use the EVMS_IS_MOUNTED macro.
 
index 2182add9b2c237a2555568a769201f5889c0ad77..06c4844ff17eb17824a97f4f5bbfc0df04e84c78 100644 (file)
@@ -370,6 +370,8 @@ static int fs_expand( logical_volume_t * volume,
                        /* get expand exit code */
                        LOG("Expand completed with rc = %d \n",status);
                        rc = WEXITSTATUS(status);
+               } else {
+                       rc = EINTR;
                }
        }
        if (buffer) {
@@ -525,6 +527,8 @@ static int fs_shrink( logical_volume_t * volume,
                        /* get shrink exit code */
                        LOG("Shrink completed with rc = %d \n",status);
                        rc = WEXITSTATUS(status);
+               } else {
+                       rc = EINTR;
                }
        }
        if (buffer) {
index 7eeeb9cdfa3f4626a1b075285914715c1510737c..a0e7344abc77e0bc49d6e6c22d41dc8dae79d9c4 100644 (file)
@@ -139,7 +139,9 @@ int fsim_mkfs(logical_volume_t * volume, option_array_t * options )
             if ( WIFEXITED(status) ) {
                 /* get mke2fs exit code */
                 rc = WEXITSTATUS(status);
-            }
+            } else {
+                   rc = EINTR;
+           }
     }
 
     return rc;
@@ -339,6 +341,8 @@ int fsim_fsck(logical_volume_t * volume, option_array_t * options,
                        LOG("e2fsck completed with exit code %d \n",
                            *ret_status);
                        rc = 0;
+               } else {
+                       rc = EINTR;
                }
        }