• J. R. Okajima's avatar
    aufs: copy-up 2/7, internal lookup for the target · 3be12838
    J. R. Okajima authored
    
    
    Basically copy-up is done by these steps using au_pin (in another
    commit).
    - lock the target parent mutex
    - lookup a negative dentry with a whiteout-ed temporary unique name
    - create it
    - unlock the target parent mutex
    - copy filedata
    - copy metadata (inode attributes)
    - lock the target parent mutex
    - rename the temporary name to the target name
    - unlock the target parent mutex
    
    This commit contains step2 mainly.
    I hope someday aufs uses O_TMPFILE for this.
    Signed-off-by: default avatarJ. R. Okajima <hooanon05g@gmail.com>
    3be12838
whout.h 1.78 KB