From 8b4e94540c60f5028d3bfa78fe230334147a5cad Mon Sep 17 00:00:00 2001 From: Vlad Apostolov Date: Wed, 27 Sep 2006 06:07:54 +0000 Subject: [PATCH] pv 955274 - Requires fsync() after a file attribute change. This is for dm_get_bulkattr(). Merge of master-melb:xfs-cmds:27061a by kenmcd. pv 955274 - Requires fsync() after a file attribute change. This is for dm_get_bulkattr(). --- dmapi/src/suite2/src/test_fileattr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dmapi/src/suite2/src/test_fileattr.c b/dmapi/src/suite2/src/test_fileattr.c index 538f371d..93ebd23f 100644 --- a/dmapi/src/suite2/src/test_fileattr.c +++ b/dmapi/src/suite2/src/test_fileattr.c @@ -271,6 +271,10 @@ main( else if (Vflag) { fprintf(stderr, "report: set #%d was successful.\n", i); } + if (dm_sync_by_handle(sid, hanp, hlen, DM_NO_TOKEN)) { + fprintf(stderr, "dm_sync_by_handle failed on pass #%d; %s.\n", + i, strerror(errno)); + } } } -- 2.47.3