[Bugs] [Bug 1391450] md-cache: Invalidate cache entry in case of OPEN with O_TRUNC
bugzilla at redhat.com
bugzilla at redhat.com
Fri Nov 4 03:19:51 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1391450
--- Comment #3 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: http://review.gluster.org/15771 committed in release-3.8 by Raghavendra
G (rgowdapp at redhat.com)
------
commit b0f4fc9d05a1e5169205b88e81ca0fbdd28b3dd2
Author: Soumya Koduri <skoduri at redhat.com>
Date: Thu Oct 6 13:13:44 2016 +0530
md-cache: Invalidate cache entry for open() with O_TRUNC
When a file is opened with O_TRUNC flag set, its size gets
set to '0'. This case needs to be handled in md-cache to
avoid sending incorrect cached stat.
This is backport of below mainline patch -
http://review.gluster.org/#/c/15618/
> Change-Id: I95d1f8a6634734898883ede010c3e7b0b7eb97d9
> BUG: 1382266
> Signed-off-by: Soumya Koduri <skoduri at redhat.com>
> Reviewed-on: http://review.gluster.org/15618
> Smoke: Gluster Build System <jenkins at build.gluster.org>
> Reviewed-by: jiffin tony Thottan <jthottan at redhat.com>
> Tested-by: jiffin tony Thottan <jthottan at redhat.com>
> NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
> CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
> Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
> (cherry picked from commit 6ca5d6382f03685b31b12accb095093cf1486603)
Change-Id: I92349f5b48aef07f3790db7aae25bfa2ddb5947e
BUG: 1391450
Signed-off-by: Soumya Koduri <skoduri at redhat.com>
Reviewed-on: http://review.gluster.org/15771
Smoke: Gluster Build System <jenkins at build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=YmUE00Vn13&a=cc_unsubscribe
More information about the Bugs
mailing list