xfs
[Top] [All Lists]

Re: attr_multi()

To: "ZINKEVICIUS,MATT ""(HP-Loveland,ex1)" <matt_zinkevicius@xxxxxx>
Subject: Re: attr_multi()
From: Steve Lord <lord@xxxxxxx>
Date: 10 Jan 2002 15:11:28 -0600
Cc: "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <F341E03C8ED6D311805E00902761278C07EFA863@xxxxxxxxxxxxxxx>
References: <F341E03C8ED6D311805E00902761278C07EFA863@xxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Thu, 2002-01-10 at 14:56, ZINKEVICIUS,MATT (HP-Loveland,ex1) wrote:
> Hi all,
> The attr_multi() function bombs out if we try to deal with more than one
> attribute at a time. Is this a know bug? I saw that there was a bug fixed
> (462005 - attr_multi broken) on IRIX. Is this related? Thanks in advance!
> 
> Matt Zinkevicius
> Software Engineer
> Network Storage Array Solutions
> Hewlett-Packard

Take a look in cmd/attr/libattr/attr.c 

In the  _attr_multif() function, there is a call to attrctl, the
last argument is 1, I suspect it should be count instead.

        if (attrctl(obj, type, ops, 1) < 0) {
                error = -1;
                goto free_mem;
        }

becomes

        if (attrctl(obj, type, ops, count) < 0) {
                error = -1;
                goto free_mem;
        }

Just a guess and I have not tried it.

So just what is HP doing with an SGI filesystem and what do we get in
return ;-)

Steve


-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


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