mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Remove O_SYNC from device open and use fsync().
This speed up wipe operation considerably.
This commit is contained in:
@@ -213,7 +213,7 @@ int crypt_wipe_device(struct crypt_device *cd,
|
||||
}
|
||||
}
|
||||
|
||||
fsync(devfd);
|
||||
device_sync(device, devfd);
|
||||
out:
|
||||
close(devfd);
|
||||
free(sf);
|
||||
|
||||
Reference in New Issue
Block a user