xfs
[Top] [All Lists]

TAKE 804475 - chown -h doesn't work on xfs

To: nb@xxxxxxx
Subject: TAKE 804475 - chown -h doesn't work on xfs
From: pv@xxxxxxxxxxxxxxxxxxxxxx (lord@xxxxxxx)
Date: Wed, 11 Oct 2000 07:20:04 -0700 (PDT)
Cc: linux-xfs@xxxxxxxxxxx
Reply-to: sgi.bugs.xfs@xxxxxxxxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
 Submitter : nathans                  *Status : closed                      
 Assigned Engineer : nb               *Fixed By : lord                      
*Fixed By Domain : sgi.com            *Closed Date : 10/11/00               
 Priority : 3                         *Modified Date : 10/11/00             
*Modified User : lord                 *Modified User Domain : sgi.com       
*Fix Description :
From: steve lord <lord@xxxxxxx> (TAKE)
Date: Oct 11 2000 07:10:03AM
[pvnews version: 1.71]
----------------------------

A missing ops vector for symlinks meant you could not do a
permission change on them.

Date:  Wed Oct 11 07:05:23 PDT 2000
Workarea:  jen.americas.sgi.com:/src/lord/xfs-clean

.....


==========================
ADDITIONAL INFORMATION (TAKE)
From: steve lord <lord@xxxxxxx>
Date: Oct 11 2000 07:20:04AM
[pvnews version: 1.71]
==========================
push mod back into beta tree

Date:  Wed Oct 11 07:14:19 PDT 2000
Workarea:  jen.americas.sgi.com:/src/lord/xfs-beta
Author:  lord
Merged by:  lord
Merged mods:  2.4.x-xfs:slinx:76046a

The following file(s) were checked into:
  bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs-beta


Modid:  2.4.x-xfs-beta:slinx:76046a
linux/fs/xfs/linux/xfs_iops.c - 1.70
        - Merge of 2.4.x-xfs:slinx:76046a by lord.
          Add notify change call for symlinks so that chown -h works
Description :
>From a quick test, chown+XFS on IRIX seems to behave the
way Marco describes (below), but on Linux, XFS doesn't seem
to allow this ... is this expected or is something amiss?

irix/xfs:
$ touch foo
$ ln -s foo bar
$ ls -ld foo bar
lrwxr-xr-x    1 nathans  ptg            3 Oct 11 11:48 bar -> foo
-rw-r--r--    1 nathans  ptg            0 Oct 11 11:48 foo
$ sudo chown -h pcpqa bar
$ ls -ld foo bar
lrwxr-xr-x    1 pcpqa    ptg            3 Oct 11 11:48 bar -> foo
-rw-r--r--    1 nathans  ptg            0 Oct 11 11:48 foo

linux/ext2:
$ touch foo
$ ln -s foo bar
$ ls -ld foo bar
lrwxrwxrwx    1 nathans  ptg             3 Oct 11 11:49 bar -> foo
-rw-r--r--    1 nathans  ptg             0 Oct 11 11:49 foo
$ sudo chown -h pcpqa bar
$ ls -ld foo bar
lrwxrwxrwx    1 pcpqa    ptg             3 Oct 11 11:49 bar -> foo
-rw-r--r--    1 nathans  ptg             0 Oct 11 11:49 foo

linux/xfs:
$ touch foo
$ ln -s foo bar
$ ls -ld foo bar
lrwxr-xr-x    1 nathans  ptg             3 Oct 11 11:51 bar -> foo
-rw-r--r--    1 nathans  ptg             0 Oct 11 11:51 foo
$ sudo chown -h pcpqa bar
$ ls -ld foo bar
lrwxr-xr-x    1 nathans  ptg             3 Oct 11 11:51 bar -> foo
-rw-r--r--    1 nathans  ptg             0 Oct 11 11:51 foo



--- Forwarded mail from Marco van Wieringen <mvw@xxxxxxxxxxxxxxxxxxxx>

Date: Tue, 10 Oct 2000 20:07:26 +0200 (MEST)
From: Marco van Wieringen <mvw@xxxxxxxxxxxxxxxxxxxx>
Reply-To: Marco van Wieringen <mvw@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: Linux quota tools
To: Nathan Scott <nathans>

...

B.T.W. I just installed XFS on one of my development systems and it looks
good and more or less stable. But I have a question is it so that
one cannot change the owner on a symlink like it works on ext2
when you do a chown -h username.group <symlink-name>.

Marco.

---End of forwarded mail from Marco van Wieringen <mvw@xxxxxxxxxxxxxxxxxxxx>

<Prev in Thread] Current Thread [Next in Thread>