Skip to content
  • Ondrej Kozina's avatar
    reencrypt: use fsync instead of O_DIRECT flag · 3d6bcae8
    Ondrej Kozina authored and Milan Broz's avatar Milan Broz committed
    O_DIRECT operations directed towards filesystem are problematic:
    There's no sane way how to detect specific filesystem requirements
    for such operations.
    
    This patch is replacing O_DIRECT flag with O_SYNC flag for all
    open() calls related to reencrypt log. The O_SYNC flag is used
    when --use-fsync option is detected.
    
    Man page is modified accordingly.
    3d6bcae8