Ignore:
Timestamp:
2011-06-19T20:15:14+02:00 (5 years ago)
Author:
jow
Message:

[package] block-mount: remove explicit lock waits, solves some potential race conditions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/block-mount/files/fstab.init

    r26312 r27226  
    6767        config_load fstab 
    6868        mkdir -p /var/lock 
    69         lock -w /var/lock/fstab.lck && { 
    70                 lock /var/lock/fstab.lck 
    71                 [ -e /tmp/fstab ] || {  
    72                         echo '# WARNING: this is an auto generated file, please use uci to set defined filesystems' > /tmp/fstab 
    73                 } 
    74                 lock -u /var/lock/fstab.lck 
     69        lock /var/lock/fstab.lck 
     70        [ -e /tmp/fstab ] || { 
     71                echo '# WARNING: this is an auto generated file, please use uci to set defined filesystems' > /tmp/fstab 
    7572        } 
     73        lock -u /var/lock/fstab.lck 
    7674        config_foreach do_swapon swap 
    7775        config_foreach do_mount mount 
Note: See TracChangeset for help on using the changeset viewer.