summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-09-13 15:15:10 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-14 04:01:59 -0700
commit4a7d4dcd70bfc480ea20ae10d44257e56e86789c (patch)
tree6d00cd927c51401c582c07b5c23ffd59a720a449
parent9a16332d518c6318b761b230a0e1bb8ce357228e (diff)
features/quota: explicitly create xattrs in marker_create_cbk
- the earlier approach of creating quota related xattrs through side-effect of updating size and contribution values won't work, since when no contribution xattr is present, the updation process treats contribution value as zero and hence will be equal to size of freshly created files Change-Id: If9b2063b1ac3a4cf50d3fe2c81e907bc8eccb677 BUG: 3531 Reviewed-on: http://review.gluster.com/385 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Mohammed Junaid <junaid@gluster.com>
-rw-r--r--xlators/features/marker/src/marker-quota.c8
-rw-r--r--xlators/features/marker/src/marker.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index 7bc912d7e..0d2eb9e71 100644
--- a/xlators/features/marker/src/marker-quota.c
+++ b/xlators/features/marker/src/marker-quota.c
@@ -889,9 +889,17 @@ int32_t
mq_inode_creation_done (call_frame_t *frame, void *cookie, xlator_t *this,
int32_t op_ret, int32_t op_errno)
{
+ quota_local_t *local = NULL;
+
if (frame == NULL)
return 0;
+ local = frame->local;
+
+ if (local != NULL) {
+ mq_initiate_quota_txn (this, &local->loc);
+ }
+
QUOTA_STACK_DESTROY (frame, this);
return 0;
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
index 89da08932..36ce3d79e 100644
--- a/xlators/features/marker/src/marker.c
+++ b/xlators/features/marker/src/marker.c
@@ -539,7 +539,7 @@ marker_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
priv = this->private;
if (priv->feature_enabled & GF_QUOTA)
- mq_inspect_file_xattr (this, &local->loc, NULL, *buf);
+ mq_set_inode_xattr (this, &local->loc);
if (priv->feature_enabled & GF_XTIME)
marker_xtime_update_marks (this, local);
@@ -1610,7 +1610,7 @@ marker_symlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
priv = this->private;
if (priv->feature_enabled & GF_QUOTA)
- mq_inspect_file_xattr (this, &local->loc, NULL, *buf);
+ mq_set_inode_xattr (this, &local->loc);
if (priv->feature_enabled & GF_XTIME)
marker_xtime_update_marks (this, local);
@@ -1679,7 +1679,7 @@ marker_mknod_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
priv = this->private;
if ((priv->feature_enabled & GF_QUOTA) && (S_ISREG (local->mode))) {
- mq_inspect_file_xattr (this, &local->loc, NULL, *buf);
+ mq_set_inode_xattr (this, &local->loc);
}
if (priv->feature_enabled & GF_XTIME)
sterfs.git/log/?h=release-5'>release-5doc: Added release notes for 5.13Hari Gowtham4 years release-6Adding release notes for release-6.10Rinku Kothiya4 years release-7features/bit-rot: invalid snprintf() buffer sizeDmitry Antipov4 years release-8geo-rep: Fix string comparisonKotresh HR4 years round-robin2io-threads: distribute work fairly among clientsJeff Darcy8 years testing-regression-job[DO NOT MERGE]Deepshikha khandelwal6 years  TagDownloadAuthorAge v7.8commit b4f19c7b1c...Rinku Kothiya4 years v8.2commit 895183d5a2...Rinku Kothiya4 years v8.1commit f9b8462ba2...Rinku Kothiya4 years v6.10commit 48fc076676...Rinku Kothiya4 years v7.7commit 95f167483e...Rinku Kothiya4 years v8.0commit 2e1e4168ab...Rinku Kothiya4 years v8.0rc0commit 18bd1bdaa6...Rinku Kothiya4 years v7.6commit bef7c8e54e...Rinku Kothiya4 years v6.9commit 57b48f2802...Hari Gowtham4 years v9devcommit 0e94dbb811...Rinku Kothiya4 years v8.0alphacommit f949c3e13e...Rinku Kothiya4 years v7.5commit df0a3c99dc...Rinku Kothiya4 years v5.13commit 98eb9c95fb...Hari Gowtham4 years v7.4commit 87742bdeeb...Rinku Kothiya5 years v6.8commit 1b43afb1fd...Hari Gowtham5 years v5.12commit e46e5721ac...Hari Gowtham5 years v7.3commit 1d59dc3b37...Rinku Kothiya5 years v7.2commit 7587318650...Rinku Kothiya5 years v6.7commit 366d0c6c12...Hari Gowtham5 years v7.1commit 385a37bb45...Rinku Kothiya5 years v5.11commit 7c0ef8f5c0...Hari Gowtham5 years v6.6commit 84487199af...Hari Gowtham5 years v7.0commit a92e9e8e8a...Rinku Kothiya5 years v5.10commit 3e12379fba...Hari Gowtham5 years v7.0rc3commit bac5d7d60d...Rinku Kothiya5 years v7.0rc2commit 6b3fec3793...Rinku Kothiya5 years v7.0rc1commit a2201d804d...Rinku Kothiya5 years v7.0rc0commit b3e0671a4e...Rinku Kothiya5 years v6.5commit f571e3b7bf...Hari Gowtham5 years v5.9commit 0386ca3969...Hari Gowtham5 years v5.8commit 05138aedc3...Hari Gowtham5 years v6.4commit 8761be7ba7...Hari Gowtham5 years v4.1.10commit 05efb3cafd...Hari Gowtham5 years v5.7commit d24b4605fe...Hari Gowtham5 years v8devcommit 24a3204d70...Rinku Kothiya5 years v7.0alphacommit 96702cfea3...Rinku Kothiya5 years v6.3commit 9acd89087b...Hari Gowtham5 years v4.1.9commit 735237b0ee...Hari Gowtham5 years v6.2commit 630b896166...Hari Gowtham5 years v6.1commit 5c521d403f...ShyamsundarR5 years v5.6commit 34a2347780...ShyamsundarR5 years v4.1.8commit 5c25484564...ShyamsundarR6 years v6.0commit 3fadf5cc41...ShyamsundarR6 years v5.5commit 0901b43f84...ShyamsundarR6 years v6.0rc1commit 3bcf210a5a...ShyamsundarR6 years v5.4commit c691b4a373...ShyamsundarR6 years v6.0rc0commit e6fabf8c33...ShyamsundarR6 years v7devcommit 90922d20f5...ShyamsundarR6 years v6.0alphacommit c396ba1826...ShyamsundarR6 years v4.1.7commit af2b99a04f...ShyamsundarR6 years v5.3commit dc85835297...ShyamsundarR6 years v5.2commit ae7f60235a...ShyamsundarR6 years v4.1.6commit d6383f22f0...ShyamsundarR6 years v5.1commit c12ded9ebf...ShyamsundarR6 years v5.0commit ab12861f40...ShyamsundarR6 years v3.12.15commit a1cf0f2c8b...Jiffin Tony Thottan6 years v5.0rc1commit a94a67efde...ShyamsundarR6 years v4.1.5commit 957a5e6b4a...ShyamsundarR6 years v5.0rc0commit f4594a3c88...ShyamsundarR6 years v6devcommit f15e948da3...ShyamsundarR6 years v5.0alphacommit 41388f15fc...ShyamsundarR6 years v3.12.14commit fe5b6bc852...Jiffin Tony Thottan6 years v4.1.4commit deafd5a4f8...Jiffin Tony Thottan6 years v4.1.3commit 7ddcf035b8...ShyamsundarR6 years v3.12.13commit 8727292061...Jiffin Tony Thottan6 years v4.1.2commit 044f9df659...ShyamsundarR6 years v3.12.12commit f98d86f2a3...Jiffin Tony Thottan6 years v4.1.1commit b17acca6d0...ShyamsundarR6 years v3.12.11commit 15a5367925...ShyamsundarR6 years v3.12.10commit abe2e42666...Jiffin Tony Thottan6 years v4.1.0commit b4f4480094...ShyamsundarR6 years v4.1.0rc0commit 4f591e873c...ShyamsundarR6 years v4.2devcommit a6490fe021...ShyamsundarR6 years v4.1.0alphacommit 548902d1a7...ShyamsundarR6 years v3.10.12commit c420ef1251...ShyamsundarR6 years v4.0.2-1commit 07d8cc04c4...ShyamsundarR6 years v3.12.9commit 9d883f31db...ShyamsundarR6 years v4.0.2commit 92cc124298...ShyamsundarR6 years v3.12.8commit 318d2c833f...Jiffin Tony Thottan6 years v4.0.1commit 17b43ec3d2...ShyamsundarR7 years v3.12.7commit 5a1fcd2636...Jiffin Tony Thottan7 years v4.0.0-2commit 2628a91eaa...ShyamsundarR7 years v4.0.0commit c1c43f8601...ShyamsundarR7 years v3.10.11commit 39716f601d...ShyamsundarR7 years v4.0.0rc1commit 8b85778185...ShyamsundarR7 years v3.12.6commit c5146ab5ad...Jiffin Tony Thottan7 years v4.0.0rc0commit 4c74d7ffb6...ShyamsundarR7 years v3.10.10commit dd038cc99a...ShyamsundarR7 years v4.1devcommit 93f21655e1...ShyamsundarR7 years v4.0.0alphacommit 7379f89de9...ShyamsundarR7 years v3.13.2commit ee067308c3...ShyamsundarR7 years v3.12.5commit 0e59d1556f...Jiffin Tony Thottan7 years v3.10.9commit 1a7c263ac6...ShyamsundarR7 years v3.13.1commit c1052342b2...ShyamsundarR7 years v3.12.4commit 7b8d2f1241...Jiffin Tony Thottan7 years v3.13.0commit aee30521e0...ShyamsundarR7 years v3.10.8commit fb39306a14...ShyamsundarR7 years v3.13.0rc0commit 2960af47b8...ShyamsundarR7 years v3.12.3commit e37862dd3f...Jiffin Tony Thottan7 years v4.0dev1commit 5424c63fe1...ShyamsundarR7 years v3.13.0betacommit aa2c149e05...ShyamsundarR7 years v3.10.7commit 8cc68838b0...ShyamsundarR7 years v3.12.2commit 3c0b53018a...Jiffin Tony Thottan7 years v3.10.6commit 23e6587cad...ShyamsundarR7 years v3.12.1commit 02d9b26502...ShyamsundarR7 years v3.12.0commit c8c56b9a53...ShyamsundarR7 years v3.11.3commit dd281c7c15...ShyamsundarR7 years v3.8.15commit d174f021a4...Niels de Vos7 years v3.10.5commit 013291cd46...ShyamsundarR7 years v3.12.0rc0commit aad7c1c196...ShyamsundarR7 years v4.0devcommit 4a85a221c9...Shyam7 years v3.12.0alpha1commit deed1ca53c...Shyam7 years v3.11.2commit b8659b3f2c...Shyam7 years v3.8.14commit c4057aa93e...Niels de Vos7 years v3.10.4commit d393ff6209...Raghavendra Talur7 years v3.11.1commit 8b7aee4f54...Shyam7 years v3.8.13commit cfba812b3e...Niels de Vos7 years v3.10.3commit 4e18189145...Raghavendra Talur7 years v3.11.0commit f886a26964...Shyam7 years v3.11.0rc1commit c674cf28ab...Shyam7 years v3.10.2commit c84b179be9...Raghavendra Talur7 years v3.8.12commit f453425865...Niels de Vos7 years v3.11.0rc0commit dc5a26bbb4...Shyam7 years v3.12devcommit 7a9d6aa599...Shyam7 years v3.11.0beta1commit 3d2ed27812...Shyam7 years v3.8.11commit 104d075557...Niels de Vos7 years v3.10.1commit dc4aa17e61...Shyam8 years v3.8.10commit 68d5c0ef24...Niels de Vos8 years v3.10.0commit d2a3a8f520...Shyam8 years v3.10.0rc1commit a8e8bd57e2...Shyam8 years v3.8.9commit c5649e7b8d...Niels de Vos8 years v3.10.0rc0commit 3d4192cb6c...Shyam8 years v3.7.20commit d2bd103b38...Kaushal M8 years v3.11devcommit 6f4811ca93...Shyam8 years v3.10.0alpha1commit 3bed8373a9...Shyam8 years v3.9.1commit 1e3b03c401...Kaleb S. KEITHLEY8 years v3.8.8commit e5f3a990cd...Niels de Vos8 years v3.7.19commit c2aa8b1e44...Kaushal M8 years v3.8.7commit 7638c2fef0...Niels de Vos8 years v3.7.18commit eada3bf2bb...Kaushal M8 years v3.8.6commit c485ea191d...Niels de Vos8 years v3.9.0commit 96770bc3c2...Pranith Kumar K8 years v3.7.17commit c11131fcdf...Kaushal M8 years v3.9.0rc2commit 915ae56a65...Aravinda VK8 years v3.8.5commit 5ebbd95256...Niels de Vos8 years v3.7.16commit d66a37aa20...Kaushal M8 years v3.9rc1commit f5b283baa7...Pranith Kumar K8 years v3.8.4commit 266ca69d01...Niels de Vos8 years v3.10devcommit ee0d8ca53f...Pranith Kumar K8 years v3.9rc0commit c5440058ea...Pranith Kumar K8 years v3.7.15commit 50a29757c2...Kaushal M8 years v3.8.3commit 8519efc5b3...Niels de Vos8 years v3.8.2commit 8220b0002f...Niels de Vos8 years v3.7.14commit 04fa81f1c4...Kaushal M8 years v3.8.1commit 754e2658ba...Niels de Vos8 years v3.7.13commit 4dce874a77...Kaushal M8 years v3.7.12commit 5cf8e28988...Kaushal M8 years v3.8.0commit c6d9e23b54...Niels de Vos8 years v3.7.12rc1commit bac2781a2d...Vijay Bellur8 years v3.8rc2commit d53bfc6f04...Niels de Vos8 years v3.8rc1commit 74ab2d6f10...Niels de Vos8 years v3.8rc0commit 0fadd46c2c...Niels de Vos8 years v3.9devcommit 60e340481a...Niels de Vos8 years v3.7.11commit b0bfc70048...Kaushal M