All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: Tom Vier <tmv@comcast.net>
Cc: reiserfs-list@namesys.com
Subject: Re: need attrs patch for 2.5.44-ac3
Date: Wed, 30 Oct 2002 09:16:50 +0300	[thread overview]
Message-ID: <20021030091650.A4480@namesys.com> (raw)
In-Reply-To: <20021029220130.GA9007@yzero>

Hello!

On Tue, Oct 29, 2002 at 05:01:30PM -0500, Tom Vier wrote:
> > In order for attributes to work you need to mount the volume with -o attrs.
> > Without that you can only get/set attributes value.
> i'm using the same /etc/fstab with attrs for 2.4 and it works. i haven't
> tried mounting another reiserfs, so i don't know if it's just the rootfs
> that's affected.

Ah, so it's the rootfs, that explains. Patch for remounting options is not
included in 2.5, see below for the patch.

Bye,
    Oleg

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.664   -> 1.665  
#	 fs/reiserfs/super.c	1.56    -> 1.57   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/02	green@angband.namesys.com	1.665
# reiserfs: Allow for remount options to take effect.
# --------------------------------------------
#
diff -Nru a/fs/reiserfs/super.c b/fs/reiserfs/super.c
--- a/fs/reiserfs/super.c	Wed Oct 30 09:16:24 2002
+++ b/fs/reiserfs/super.c	Wed Oct 30 09:16:24 2002
@@ -726,6 +726,20 @@
 
   if (!reiserfs_parse_options(s, arg, &mount_options, &blocks, NULL))
     return -EINVAL;
+
+#define SET_OPT( opt, bits, super )                                     \
+    if( ( bits ) & ( 1 << ( opt ) ) )                                   \
+            REISERFS_SB( super ) -> s_mount_opt |= ( 1 << ( opt ) )
+
+  /* set options in the super-block bitmask */
+  SET_OPT( REISERFS_LARGETAIL, mount_options, s );
+  SET_OPT( REISERFS_SMALLTAIL, mount_options, s );
+  SET_OPT( REISERFS_NO_BORDER, mount_options, s );
+  SET_OPT( REISERFS_NO_UNHASHED_RELOCATION, mount_options, s );
+  SET_OPT( REISERFS_HASHED_RELOCATION, mount_options, s );
+  SET_OPT( REISERFS_TEST4, mount_options, s );
+  SET_OPT( REISERFS_ATTRS, mount_options, s );
+#undef SET_OPT
   
   handle_attrs( s );
 

      reply	other threads:[~2002-10-30  6:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-26 23:02 need attrs patch for 2.5.44-ac3 Tom Vier
2002-10-28 16:33 ` Oleg Drokin
2002-10-29  0:09   ` Tom Vier
2002-10-29  6:04     ` Oleg Drokin
2002-10-29 22:01       ` Tom Vier
2002-10-30  6:16         ` Oleg Drokin [this message]

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=20021030091650.A4480@namesys.com \
    --to=green@namesys.com \
    --cc=reiserfs-list@namesys.com \
    --cc=tmv@comcast.net \
    /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.