extend --sync to allow {sync,dsync,0,1}, to support O_DSYNC