summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/nsr-recon/src/recon_driver.c
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@redhat.com>2014-02-05 19:01:23 +0000
committerJeff Darcy <jdarcy@redhat.com>2014-02-11 13:59:54 +0000
commit33939dcde38389373e7ed8b12c6e9916b39411d0 (patch)
tree86d6e0207f2cf3419bb7ab0820a5cfed39683360 /xlators/cluster/nsr-recon/src/recon_driver.c
parent6f9bec28ea3a488111cda974ee6959bd86094f31 (diff)
Example of how to add extra info to changelog records.
This is a bit hacky so far, but this is the direction we need to go for all fops that take extra data like modes, uids, times, or keys. Change-Id: I02968611bc46beda108b4caf65cd6a8928679e16 Signed-off-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/cluster/nsr-recon/src/recon_driver.c')
-rw-r--r--xlators/cluster/nsr-recon/src/recon_driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/cluster/nsr-recon/src/recon_driver.c b/xlators/cluster/nsr-recon/src/recon_driver.c
index 00e79b9d3..778f59413 100644
--- a/xlators/cluster/nsr-recon/src/recon_driver.c
+++ b/xlators/cluster/nsr-recon/src/recon_driver.c
@@ -1535,7 +1535,9 @@ apply_record(nsr_per_node_worker_t *ctx,
uuid_parse(ri->rec.gfid, gfid);
if ((obj = create_obj(ctx, ri->rec.pargfid)) == NULL) return;
- if (glfs_h_creat_with_xdata(ctx->fs, obj, ri->rec.entry, O_RDWR, 0777, NULL, gfid, dict) == NULL) {
+ nsr_worker_log (this->name, GF_LOG_INFO,
+ "creating with mode 0%o", ri->rec.mode);
+ if (glfs_h_creat_with_xdata(ctx->fs, obj, ri->rec.entry, O_RDWR, ri->rec.mode, NULL, gfid, dict) == NULL) {
GF_ASSERT(0);
nsr_worker_log(this->name, GF_LOG_ERROR,
"Failure for Doing create for file %s\n",