Changeset 800


Ignore:
Timestamp:
2005-05-04T16:37:13+02:00 (13 years ago)
Author:
nbd
Message:

add oleg's jffs2root fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/openwrt/jffs2root.c

    r513 r800  
    9999        ptr->len = offset; 
    100100        ptr->crc32 = crc32buf((void *) &(ptr->flag_version), ptr->len - offsetof(struct trx_header, flag_version)); 
    101         msync(ptr,len,MS_SYNC|MS_INVALIDATE); 
     101        msync(ptr,sizeof(struct trx_header),MS_SYNC|MS_INVALIDATE); 
    102102        printf("Partition moved; please reboot\n"); 
    103103      } 
     
    114114 
    115115 
    116     munmap((void *) ptr, sizeof(struct trx_header)); 
     116    munmap((void *) ptr, len); 
     117    close (fd); 
    117118    return 0; 
    118119} 
Note: See TracChangeset for help on using the changeset viewer.