Skip to content
Snippets Groups Projects
  • Simon McVittie's avatar
    9052fbd4
    Rename PvBwrapLock to SrtFileLock and move it to common code · 9052fbd4
    Simon McVittie authored
    
    This was implemented to interact correctly with the locking scheme
    used in bwrap(1) (which uses the non-OFD flavour of fnctl locks), but
    is otherwise unrelated to bwrap(1) or pressure-vessel. Moving this into
    common code will facilitate using it outside pressure-vessel, in
    particular when unpacking `ubuntu12_64/steam-runtime-sniper/`.
    
    While I'm changing the interface anyway, take the opportunity to rename
    the WRITE flag to EXCLUSIVE, which is clearer.
    
    Helps: steamrt/tasks#387
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
    9052fbd4
    History
    Rename PvBwrapLock to SrtFileLock and move it to common code
    Simon McVittie authored
    
    This was implemented to interact correctly with the locking scheme
    used in bwrap(1) (which uses the non-OFD flavour of fnctl locks), but
    is otherwise unrelated to bwrap(1) or pressure-vessel. Moving this into
    common code will facilitate using it outside pressure-vessel, in
    particular when unpacking `ubuntu12_64/steam-runtime-sniper/`.
    
    While I'm changing the interface anyway, take the opportunity to rename
    the WRITE flag to EXCLUSIVE, which is clearer.
    
    Helps: steamrt/tasks#387
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>