Changeset dae3dd1 in rtems


Ignore:
Timestamp:
Nov 7, 2002, 3:45:09 PM (18 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3d4c7390
Parents:
a86f4f6c
Message:

2002-11-07 <strauman@…>

  • src/mount.c: Per PR297, correct fs_mountme failure paths.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/mount.c

    ra86f4f6c rdae3dd1  
    102102  }
    103103
     104  /* Do they support being mounted at all ? */
     105  if ( !fs_ops->fsmount_me_h ) {
     106    errno = ENOTSUP;
     107    goto cleanup_and_bail;
     108  }
     109
     110
    104111  /*
    105112   * Allocate a mount table entry
     
    208215  }
    209216
    210   if ( !fs_ops->fsmount_me_h ) {
    211     errno = ENOTSUP;
     217  if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) {
     218        /* try to undo the mount operation */
     219        if ( loc.ops->unmount_h ) {
     220                loc.ops->unmount_h( temp_mt_entry );
     221    }
    212222    goto cleanup_and_bail;
    213223  }
    214 
    215   if ( fs_ops->fsmount_me_h( temp_mt_entry ) )
    216     goto cleanup_and_bail;
    217224
    218225  /*
Note: See TracChangeset for help on using the changeset viewer.