From: Vlad Apostolov Date: Wed, 27 Sep 2006 06:07:54 +0000 (+0000) Subject: pv 955274 - Requires fsync() after a file attribute change. This is for dm_get_bulkat... X-Git-Tag: v1.1.0~578 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8b4e94540c60f5028d3bfa78fe230334147a5cad;p=xfstests-dev.git 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(). --- 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)); + } } }