lkml.org 
[lkml]   [2002]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.4 reiserfs for chown32.
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
--- 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 */
\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.031 / U:12.012 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site