From: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
To: linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org
Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk,
linux-kernel@vger.kernel.org, zohar@linux.vnet.ibm.com
Subject: [PATCH v2 0/2] vfs: truncate bug fixes
Date: Thu, 22 Dec 2011 10:55:24 +0200 [thread overview]
Message-ID: <cover.1324543719.git.dmitry.kasatkin@intel.com> (raw)
When a file is opened with O_TRUNC or truncated with truncate()/ftruncate(),
and then closed, iversion is not updated. This patch uses ATTR_OPEN flag,
which is currently used to identify files opened with O_TRUNC,
as an indication to increment iversion.
Also it adds passing of this flag from do_sys_truncate and do_sys_ftruncate.
To reflect real meaning, ATTR_OPEN is suggested to be renamed to ATTR_TRUNC.
Dmitry Kasatkin (2):
vfs: iversion truncate bug fix
vfs: ATTR_OPEN rename
fs/attr.c | 3 +++
fs/fuse/dir.c | 4 ++--
fs/namei.c | 2 +-
fs/open.c | 5 +++--
include/linux/fs.h | 2 +-
5 files changed, 10 insertions(+), 6 deletions(-)
--
1.7.4.1
next reply other threads:[~2011-12-22 8:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-22 8:55 Dmitry Kasatkin [this message]
2011-12-22 8:55 ` [PATCH v2 1/2] vfs: iversion truncate bug fix Dmitry Kasatkin
2011-12-22 8:55 ` [PATCH v2 2/2] vfs: ATTR_OPEN rename Dmitry Kasatkin
2011-12-22 9:10 ` [PATCH v2 0/2] vfs: truncate bug fixes Al Viro
2011-12-22 10:29 ` Kasatkin, Dmitry
2011-12-22 10:29 ` Kasatkin, Dmitry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1324543719.git.dmitry.kasatkin@intel.com \
--to=dmitry.kasatkin@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
--cc=zohar@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.