pv 955274 - Requires fsync() after a file attribute change. This is for dm_get_bulkat...
authorVlad Apostolov <vapo@sgi.com>
Wed, 27 Sep 2006 06:07:54 +0000 (06:07 +0000)
committerVlad Apostolov <vapo@sgi.com>
Wed, 27 Sep 2006 06:07:54 +0000 (06:07 +0000)
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

index 538f371d9106588a20227f97309324f18b728e44..93ebd23faddba6d0ce7595ab21162895c644322a 100644 (file)
@@ -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));
+            }
          }
        }