Changeset 2b30225 in rtems for cpukit/libfs
- Timestamp:
- 10/02/02 17:42:39 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- b32fe793
- Parents:
- 0381a8d
- Location:
- cpukit/libfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libfs/ChangeLog
r0381a8d r2b30225 1 2002-10-02 Jennifer Averett <jennifer@OARcorp.com> 2 3 * src/imfs/memfile.c: Fixed case where last close of unlinked file 4 did not remove the resources associated with that file. Reported 5 by Till Straumann <strauman@slac.stanford.edu> on the mailing list. 6 1 7 2002-09-14 Joel Sherrill <joel@OARcorp.com> 2 8 -
cpukit/libfs/src/imfs/memfile.c
r0381a8d r2b30225 74 74 ); 75 75 76 int memfile_check_rmnod( IMFS_jnode_t *the_jnode ); 77 76 78 void *memfile_alloc_block(void); 77 79 … … 123 125 iop->offset = the_jnode->info.file.size; 124 126 127 memfile_check_rmnod( the_jnode ); 125 128 return 0; 126 129 } … … 1109 1112 IMFS_update_ctime( the_jnode ); 1110 1113 1114 return memfile_check_rmnod( the_jnode ); 1115 } 1116 1117 1118 int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 1119 1111 1120 /* 1112 1121 * The file cannot be open and the link must be less than 1 to free. … … 1119 1128 */ 1120 1129 1121 if ( rtems_filesystem_current.node_access == pathloc->node_access)1130 if ( rtems_filesystem_current.node_access == the_jnode ) 1122 1131 rtems_filesystem_current.node_access = NULL; 1123 1132 … … 1132 1141 1133 1142 return 0; 1134 1135 } 1136 1137 1143 } 1144 1145
Note: See TracChangeset
for help on using the changeset viewer.