All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [BUG] can not chmod to 777
@ 2004-04-13 20:47 Ling, Xiaofeng
  2004-04-13 21:21 ` Kurt Hackel
  2004-04-14 18:09 ` Sunil Mushran
  0 siblings, 2 replies; 5+ messages in thread
From: Ling, Xiaofeng @ 2004-04-13 20:47 UTC (permalink / raw)
  To: ocfs2-devel

HI
	I create a directory /ocfs, and take it the mount point of ocfs2
filesystem, but I can not
use "chmod 777" to change its permission, it always shows 755.
Seems this breaks a lot LTP test cases.
I report it as bug 56.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Ocfs2-devel] [BUG] can not chmod to 777
  2004-04-13 20:47 [Ocfs2-devel] [BUG] can not chmod to 777 Ling, Xiaofeng
@ 2004-04-13 21:21 ` Kurt Hackel
  2004-04-14 14:12   ` Sunil Mushran
  2004-04-14 18:09 ` Sunil Mushran
  1 sibling, 1 reply; 5+ messages in thread
From: Kurt Hackel @ 2004-04-13 21:21 UTC (permalink / raw)
  To: ocfs2-devel

Hi Xiaofeng,

Unfortunately this is the normal behavior of OCFS.  When the filesystem
was originally ported from Windows NT, there was no provision for root
directory permissions (or any other permissions for that matter).  The
only way to change the permissions on the root currently is to use the
tuneocfs tool to change the permissions, uid and/or gid.

If anyone wants to fix this, they would have to make a lock structure
somewhere on the header of the disk (plenty of space there) and
permanently set the OIN_MAP part of the lock structure to all nodes.
Then you would have to handle the release part of that special lock to
understand how to update the root inode when another node changes the
permissions, etc.  Basically need to broadcast the change, and not
continue doing anything locally that depends on the change until you
have gotten a response from all live nodes.


Thanks!
-kurt


On Wed, Apr 14, 2004 at 09:46:30AM +0800, Ling, Xiaofeng wrote:
> HI
> 	I create a directory /ocfs, and take it the mount point of ocfs2
> filesystem, but I can not
> use "chmod 777" to change its permission, it always shows 755.
> Seems this breaks a lot LTP test cases.
> I report it as bug 56.
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel@oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Ocfs2-devel] [BUG] can not chmod to 777
  2004-04-13 21:21 ` Kurt Hackel
@ 2004-04-14 14:12   ` Sunil Mushran
  2004-04-14 14:22     ` Kurt Hackel
  0 siblings, 1 reply; 5+ messages in thread
From: Sunil Mushran @ 2004-04-14 14:12 UTC (permalink / raw)
  To: ocfs2-devel

uhhh... I hope that this is NOT a precursor to dynamic resizing
of the volume too. :-)

Kurt Hackel wrote:

>Hi Xiaofeng,
>
>Unfortunately this is the normal behavior of OCFS.  When the filesystem
>was originally ported from Windows NT, there was no provision for root
>directory permissions (or any other permissions for that matter).  The
>only way to change the permissions on the root currently is to use the
>tuneocfs tool to change the permissions, uid and/or gid.
>
>If anyone wants to fix this, they would have to make a lock structure
>somewhere on the header of the disk (plenty of space there) and
>permanently set the OIN_MAP part of the lock structure to all nodes.
>Then you would have to handle the release part of that special lock to
>understand how to update the root inode when another node changes the
>permissions, etc.  Basically need to broadcast the change, and not
>continue doing anything locally that depends on the change until you
>have gotten a response from all live nodes.
>
>
>Thanks!
>-kurt
>
>
>On Wed, Apr 14, 2004 at 09:46:30AM +0800, Ling, Xiaofeng wrote:
>  
>
>>HI
>>	I create a directory /ocfs, and take it the mount point of ocfs2
>>filesystem, but I can not
>>use "chmod 777" to change its permission, it always shows 755.
>>Seems this breaks a lot LTP test cases.
>>I report it as bug 56.
>>_______________________________________________
>>Ocfs2-devel mailing list
>>Ocfs2-devel@oss.oracle.com
>>http://oss.oracle.com/mailman/listinfo/ocfs2-devel
>>    
>>
>_______________________________________________
>Ocfs2-devel mailing list
>Ocfs2-devel@oss.oracle.com
>http://oss.oracle.com/mailman/listinfo/ocfs2-devel
>  
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Ocfs2-devel] [BUG] can not chmod to 777
  2004-04-14 14:12   ` Sunil Mushran
@ 2004-04-14 14:22     ` Kurt Hackel
  0 siblings, 0 replies; 5+ messages in thread
From: Kurt Hackel @ 2004-04-14 14:22 UTC (permalink / raw)
  To: ocfs2-devel

Definitely could be.  Dynamic resizing is not much harder than
dynamically changing the root inode, especially since you have the
advantage of locking out all allocs by taking the global bitmap lock.  
Using the same method, the release lock would be the signal for other
nodes to resize their in-memory bitmaps.  Wouldn't be too difficult.

-k

On Wed, Apr 14, 2004 at 12:12:34PM -0700, Sunil Mushran wrote:
> uhhh... I hope that this is NOT a precursor to dynamic resizing
> of the volume too. :-)
> 
> Kurt Hackel wrote:
> 
> >Hi Xiaofeng,
> >
> >Unfortunately this is the normal behavior of OCFS.  When the filesystem
> >was originally ported from Windows NT, there was no provision for root
> >directory permissions (or any other permissions for that matter).  The
> >only way to change the permissions on the root currently is to use the
> >tuneocfs tool to change the permissions, uid and/or gid.
> >
> >If anyone wants to fix this, they would have to make a lock structure
> >somewhere on the header of the disk (plenty of space there) and
> >permanently set the OIN_MAP part of the lock structure to all nodes.
> >Then you would have to handle the release part of that special lock to
> >understand how to update the root inode when another node changes the
> >permissions, etc.  Basically need to broadcast the change, and not
> >continue doing anything locally that depends on the change until you
> >have gotten a response from all live nodes.
> >
> >
> >Thanks!
> >-kurt
> >
> >
> >On Wed, Apr 14, 2004 at 09:46:30AM +0800, Ling, Xiaofeng wrote:
> > 
> >
> >>HI
> >>	I create a directory /ocfs, and take it the mount point of ocfs2
> >>filesystem, but I can not
> >>use "chmod 777" to change its permission, it always shows 755.
> >>Seems this breaks a lot LTP test cases.
> >>I report it as bug 56.
> >>_______________________________________________
> >>Ocfs2-devel mailing list
> >>Ocfs2-devel@oss.oracle.com
> >>http://oss.oracle.com/mailman/listinfo/ocfs2-devel
> >>   
> >>
> >_______________________________________________
> >Ocfs2-devel mailing list
> >Ocfs2-devel@oss.oracle.com
> >http://oss.oracle.com/mailman/listinfo/ocfs2-devel
> > 
> >
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Ocfs2-devel] [BUG] can not chmod to 777
  2004-04-13 20:47 [Ocfs2-devel] [BUG] can not chmod to 777 Ling, Xiaofeng
  2004-04-13 21:21 ` Kurt Hackel
@ 2004-04-14 18:09 ` Sunil Mushran
  1 sibling, 0 replies; 5+ messages in thread
From: Sunil Mushran @ 2004-04-14 18:09 UTC (permalink / raw)
  To: ocfs2-devel

I agree with kurt about adding a lockfe for making changes
in the volhdr. But short of that, if all you are doing is single
node tests, just hack it. As in, comment out the root inode
check in ocfs_setattr and also jump over any code making
fe changes on disk for this. There is no fe for root in ocfs.

This should help in reducing the noise in ltp.

Ling, Xiaofeng wrote:

>HI
>	I create a directory /ocfs, and take it the mount point of ocfs2
>filesystem, but I can not
>use "chmod 777" to change its permission, it always shows 755.
>Seems this breaks a lot LTP test cases.
>I report it as bug 56.
>_______________________________________________
>Ocfs2-devel mailing list
>Ocfs2-devel@oss.oracle.com
>http://oss.oracle.com/mailman/listinfo/ocfs2-devel
>  
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-14 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-13 20:47 [Ocfs2-devel] [BUG] can not chmod to 777 Ling, Xiaofeng
2004-04-13 21:21 ` Kurt Hackel
2004-04-14 14:12   ` Sunil Mushran
2004-04-14 14:22     ` Kurt Hackel
2004-04-14 18:09 ` Sunil Mushran

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.