From: Oleg Drokin on behalf of Hans Reiser <reiser@namesys.com>
To: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org,
reiserfs-dev@namesys.com
Subject: [PATCH] 2.4 reiserfs fix for truncate to update mtime.
Date: Mon, 11 Feb 2002 16:58:36 +0300 [thread overview]
Message-ID: <20020211165836.A1443@namesys.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 143 bytes --]
Hello!
Attached patch fixes a problem where reiserfs fails to correctly
update mtime after truncate() call in some cases
Bye,
Oleg
[-- Attachment #2: truncate_update_mtime.diff --]
[-- Type: text/plain, Size: 680 bytes --]
--- linus.orig/fs/reiserfs/stree.c Thu, 13 Dec 2001 11:06:51 -0500
+++ linus/fs/reiserfs/stree.c Fri, 01 Feb 2002 13:35:29 -0500
@@ -1700,8 +1700,7 @@
}
if ( n_file_size == 0 || n_file_size < n_new_file_size ) {
- pathrelse(&s_search_path);
- return;
+ goto update_and_out ;
}
/* Update key to search for the last file item. */
@@ -1754,6 +1753,7 @@
"PAP-5680: truncate did not finish: new_file_size %Ld, current %Ld, oid %d\n",
n_new_file_size, n_file_size, s_item_key.on_disk_key.k_objectid);
+update_and_out:
if (update_timestamps) {
// this is truncate, not file closing
p_s_inode->i_mtime = p_s_inode->i_ctime = CURRENT_TIME;
reply other threads:[~2002-02-11 13:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020211165836.A1443@namesys.com \
--to=reiser@namesys.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=reiserfs-dev@namesys.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