diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-08-09 15:33:48 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-08-09 15:36:25 -0700 |
commit | d4581cb9a1d178cb31416eb30d501a0e46878e45 (patch) | |
tree | 77e141f88b76eec83b368aba5222455077356c9b /Makefile | |
parent | 8947b985335cbf9b30cffb9e79f9ed7a1899e298 (diff) | |
download | pcu-d4581cb9a1d178cb31416eb30d501a0e46878e45.tar.gz |
Add `pcu-sync' command
This can be useful for calling fsync(2)/fdatasync(2) on individual files (and/or their containing directories). This can be used when a system-wide sync(2) is too expensive on a busy system.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -22,8 +22,9 @@ LDFLAGS = -Wl,-O1 pcu-mincore: mincore.c compat-util.h pcu-fadvise: fadvise.c compat-util.h +pcu-sync: sync.c compat-util.h -PCU_BIN := pcu-fadvise pcu-mincore +PCU_BIN := pcu-fadvise pcu-mincore pcu-sync $(PCU_BIN): $(CC) $(CFLAGS) $(LDFLAGS) -o $@+ $< |