4 ms·
I use it for the O_DIRECT flag (oflag=direct). Better progress report, and I know when to pull the stick. Edit: Looks like O_SYNC (oflag=sync) is needed, too.
by aib 4y ago
I use it for the O_DIRECT flag (oflag=direct). Better progress report, and I know when to pull the stick.
Edit: Looks like O_SYNC (oflag=sync) is needed, too. Should update my 'sddd' alias.
- Retr0id 4y agoIs it? I thought O_DIRECT implied O_SYNC, in practical terms?
- aib 4y agoSo did I, but my man page (open(2)) cast doubts: "The O_DIRECT flag on its own makes an effort to transfer data synchronously, but does not give the guarantees of the O_SYNC flag that data and necessary metadata are transferred." While I don't think this is relevant to block devices, I see no harm in including the flag in my alias, either.