Alan Somers
cbaba16b23
Speed up pw operations that edit /etc/group or /etc/passwd
...
r285050 fixed a bug in pw that could lead to /etc/passwd or /etc/group
corruption on power loss. However, it fixed it by opening those files with
O_SYNC, which is very slow, especially on ZFS. This change replaces O_SYNC
with appropriately placed fsync()s instead, which is much faster. Using a
ZFS tmpdir, the time to run pw's kyua tests drops from 245s to 35s.
Reviewed by: allanjude, bapt, vangyzen, garga
Tested on pfSense by: garga
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D8319
2016-11-18 16:07:08 +00:00
..
2016-09-01 02:42:11 +00:00
2016-08-31 19:30:46 +00:00
2016-11-16 03:21:49 +00:00
2016-02-04 21:16:35 +00:00
2016-02-05 01:03:38 +00:00
2016-10-22 01:57:15 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-06-03 19:25:30 +00:00
2016-02-04 21:16:35 +00:00
2016-05-04 22:34:11 +00:00
2016-05-16 15:42:59 +00:00
2016-02-04 21:16:35 +00:00
2016-05-13 21:17:49 +00:00
2016-02-04 21:16:35 +00:00
2016-11-17 21:36:18 +00:00
2015-06-13 19:20:56 +00:00
2016-08-31 00:11:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-24 00:57:11 +00:00
2016-11-13 00:11:23 +00:00
2016-10-24 14:37:18 +00:00
2016-06-14 16:55:05 +00:00
2016-02-04 21:16:35 +00:00
2016-05-25 07:26:22 +00:00
2016-11-16 15:21:32 +00:00
2016-08-10 15:16:28 +00:00
2016-04-26 01:20:16 +00:00
2016-06-29 11:48:42 +00:00
2016-08-29 22:48:36 +00:00
2016-10-15 13:16:52 +00:00
2016-04-04 23:55:32 +00:00
2016-02-04 21:16:35 +00:00
2016-03-02 16:14:46 +00:00
2016-04-21 12:58:29 +00:00
2016-09-24 15:11:27 +00:00
2016-11-13 00:11:23 +00:00
2016-04-21 12:58:29 +00:00
2016-08-31 15:05:04 +00:00
2016-02-04 21:16:35 +00:00
2016-08-12 01:05:07 +00:00
2016-02-04 21:16:35 +00:00
2016-05-31 08:27:39 +00:00
2016-03-02 16:14:46 +00:00
2016-11-11 23:28:07 +00:00
2016-11-11 23:28:07 +00:00
2016-02-04 21:16:35 +00:00
2016-04-19 15:18:31 +00:00
2016-05-01 19:37:33 +00:00
2015-11-25 19:10:28 +00:00
2016-09-11 17:44:35 +00:00
2016-04-18 15:08:31 +00:00
2016-10-02 11:56:17 +00:00
2016-05-01 19:37:33 +00:00
2016-07-18 01:55:25 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-11-07 15:54:47 +00:00
2016-10-18 23:20:49 +00:00
2016-02-10 04:20:39 +00:00
2016-03-02 16:14:46 +00:00
2016-05-12 03:53:20 +00:00
2016-05-20 19:30:52 +00:00
2016-02-04 21:16:35 +00:00
2016-10-24 17:57:46 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-08-27 13:40:27 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-08-22 20:48:46 +00:00
2016-08-09 19:44:33 +00:00
2016-02-16 02:14:30 +00:00
2016-03-02 16:14:46 +00:00
2016-05-01 19:37:33 +00:00
2016-10-26 14:26:45 +00:00
2016-09-24 15:11:27 +00:00
2016-05-24 11:44:43 +00:00
2016-05-11 14:37:33 +00:00
2016-03-02 16:14:46 +00:00
2016-10-23 20:42:32 +00:00
2016-10-02 17:02:59 +00:00
2016-08-31 19:30:46 +00:00
2016-02-04 21:16:35 +00:00
2016-05-01 19:37:33 +00:00
2016-03-02 16:14:46 +00:00
2016-02-04 21:16:35 +00:00
2016-03-02 16:14:46 +00:00
2016-03-02 16:14:46 +00:00
2016-02-04 21:16:35 +00:00
2016-11-08 06:50:18 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-11-13 00:11:15 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-09-24 15:11:27 +00:00
2016-02-04 21:16:35 +00:00
2016-10-15 13:17:27 +00:00
2016-05-18 19:59:05 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-09-04 12:17:57 +00:00
2016-10-22 14:37:13 +00:00
2016-08-12 06:16:14 +00:00
2016-11-18 16:07:08 +00:00
2016-04-13 16:19:50 +00:00
2016-05-01 19:37:33 +00:00
2016-02-04 21:16:35 +00:00
2016-05-29 01:43:28 +00:00
2016-02-04 21:16:35 +00:00
2016-04-16 02:32:12 +00:00
2016-04-04 23:55:32 +00:00
2016-11-16 15:21:32 +00:00
2016-05-09 22:21:09 +00:00
2016-05-04 23:20:53 +00:00
2016-11-04 19:35:49 +00:00