linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Al Viro <viro@ZenIV.linux.org.uk>
To: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Cc: linux-fsdevel@vger.kernel.org,
	linux-security-module@vger.kernel.org, akpm@linux-foundation.org,
	linux-kernel@vger.kernel.org, zohar@linux.vnet.ibm.com
Subject: Re: [PATCH v2 0/2] vfs: truncate bug fixes
Date: Thu, 22 Dec 2011 09:10:22 +0000	[thread overview]
Message-ID: <20111222091022.GO23916@ZenIV.linux.org.uk> (raw)
In-Reply-To: <cover.1324543719.git.dmitry.kasatkin@intel.com>

On Thu, Dec 22, 2011 at 10:55:24AM +0200, Dmitry Kasatkin wrote:
> 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.

Um...  Is there any difference left between that and ATTR_SIZE, then?

  parent reply	other threads:[~2011-12-22  9:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22  8:55 [PATCH v2 0/2] vfs: truncate bug fixes Dmitry Kasatkin
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 ` Al Viro [this message]
2011-12-22 10:29   ` [PATCH v2 0/2] vfs: truncate bug fixes 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=20111222091022.GO23916@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=akpm@linux-foundation.org \
    --cc=dmitry.kasatkin@intel.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).