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 for chown32.
Date: Tue, 12 Feb 2002 18:27:45 +0300 [thread overview]
Message-ID: <20020212182745.A1556@namesys.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
Hello!
This patch fixes a problem where 32-bit uid/gid can only be set on a
newly created file. All files that already existed at mount time
were incorrectly marked as old format files without 32bit uid support.
Please apply.
Bye,
Oleg
[-- Attachment #2: pick_correct_sd_version.diff --]
[-- Type: text/plain, Size: 717 bytes --]
--- linux/fs/reiserfs/inode.c.orig Tue Feb 5 09:44:59 2002
+++ linux/fs/reiserfs/inode.c Tue Feb 12 16:57:46 2002
@@ -931,9 +931,6 @@
// (directories and symlinks)
struct stat_data * sd = (struct stat_data *)B_I_PITEM (bh, ih);
- /* both old and new directories have old keys */
- //version = (S_ISDIR (sd->sd_mode) ? ITEM_VERSION_1 : ITEM_VERSION_2);
-
inode->i_mode = sd_v2_mode(sd);
inode->i_nlink = sd_v2_nlink(sd);
inode->i_uid = sd_v2_uid(sd);
@@ -953,6 +950,8 @@
set_inode_item_key_version (inode, KEY_FORMAT_3_5);
else
set_inode_item_key_version (inode, KEY_FORMAT_3_6);
+
+ set_inode_sd_version (inode, STAT_DATA_V2);
}
/* nopack = 0, by default */
reply other threads:[~2002-02-12 15:28 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=20020212182745.A1556@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