9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Beginner question on how to change owner of files in fossil
@ 2004-03-09 17:39 plan9
  2004-03-09 17:52 ` andrey mirtchovski
  0 siblings, 1 reply; 11+ messages in thread
From: plan9 @ 2004-03-09 17:39 UTC (permalink / raw)
  To: 9fans

Hi,

some time ago I upgraded my machines from kfs to fossil/venti using
the homegrown kernel (as described on the wiki page, this was before
the fossil/conf times) that uses a fossil without srv -AWP support.
In order to do a pull from sources, I created a special admin user,
who is a member of the sys group.

So, obviously, lots of new files that I have pulled subsequently are
now owned by my admin user.  And this leads to those annoying "cannot
change attributes" messages during pulls.  I have now rebuilt my
kernel using the latest, greatest fossil.

What is the most straightforward way of reverting all files owned by
my admin user to sys?  I have so far attempted doing just a pull, this
has no effect, bar giving me the usual warning.  I have attempted a
pull -s, which has absolutely no effect whatsoever, doesn't pull
anything as far as I can tell.  I have attempted removing the
offending files, but a pull only reports that it won't update "locally
removed files", and an explicit pull -s of an explicit deleted file
has no effect at all (again).

Any ideas?

Do I have to build a special purpose fossil that allows srv -AWPp?

Thank you very much in advance,
Robby

PS I am having difficulties using the pcf and pccpuf kernels, but I
   haven't yet played around enough to figure out what I might be doing
   wrong.  I just get a screen full of lots of 80...=something and a dump
   of the registers.  I'll play some more.



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

* Re: [9fans] Beginner question on how to change owner of files in fossil
  2004-03-09 17:39 [9fans] Beginner question on how to change owner of files in fossil plan9
@ 2004-03-09 17:52 ` andrey mirtchovski
  2004-03-09 18:03   ` plan9
  0 siblings, 1 reply; 11+ messages in thread
From: andrey mirtchovski @ 2004-03-09 17:52 UTC (permalink / raw)
  To: 9fans

use the -AWP /srv/replica and just chmod there..  you can look at
/dist/replica/client/plan9.log for ownership information or,
alternatively, look at /n/sources/plan9/...

with plan9.log you can script it quite easily -- it has original
user/group for every file you've pulled...

andrey



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

* Re: [9fans] Beginner question on how to change owner of files in fossil
  2004-03-09 17:52 ` andrey mirtchovski
@ 2004-03-09 18:03   ` plan9
  2004-03-09 18:11     ` rog
  2004-03-10 16:48     ` [9fans] install w/Smart Array 3200 Eric KD5UWL
  0 siblings, 2 replies; 11+ messages in thread
From: plan9 @ 2004-03-09 18:03 UTC (permalink / raw)
  To: 9fans

Hi,

> use the -AWP /srv/replica and just chmod there..  you can look at

As far as I can tell, chmod does not support changing the owner of a
file.  I know I could do it by building a special fossil to allow srv
-AWPp and then use '[ fsys name ] wstat file elem uid gid perm length'
inside a con.

Is there any immediately usable command similar to chown for use on a
srv -AWP mounted tree?

Thanks,
Robby



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

* Re: [9fans] Beginner question on how to change owner of files in fossil
  2004-03-09 18:11     ` rog
@ 2004-03-09 18:10       ` plan9
  0 siblings, 0 replies; 11+ messages in thread
From: plan9 @ 2004-03-09 18:10 UTC (permalink / raw)
  To: 9fans

> see chgrp(1).

Aha! Excellent. Can't really see how I missed that.

I'm pretty sure lookman owner didn't list that on Sunday.  Probably
selective vision, or something.  Apols for the noise.

Robby



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

* Re: [9fans] Beginner question on how to change owner of files in fossil
  2004-03-09 18:03   ` plan9
@ 2004-03-09 18:11     ` rog
  2004-03-09 18:10       ` plan9
  2004-03-10 16:48     ` [9fans] install w/Smart Array 3200 Eric KD5UWL
  1 sibling, 1 reply; 11+ messages in thread
From: rog @ 2004-03-09 18:11 UTC (permalink / raw)
  To: 9fans

> Is there any immediately usable command similar to chown for use on a
> srv -AWP mounted tree?

see chgrp(1).



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

* [9fans] install w/Smart Array 3200
  2004-03-09 18:03   ` plan9
  2004-03-09 18:11     ` rog
@ 2004-03-10 16:48     ` Eric KD5UWL
  2004-03-11  1:20       ` Eric KD5UWL
  1 sibling, 1 reply; 11+ messages in thread
From: Eric KD5UWL @ 2004-03-10 16:48 UTC (permalink / raw)
  To: 9fans

Hi,

So far I've only installed Plan 9 on IDE machines.

But now I have 3 Compaq proliant ML 570 machines that I'd like to install
it on.

The problem I am having is that I can't see the LUNs presented by the RAID
controller (Smart Array 3200) -- the only device the installer sees is the
CD ROM :(

Any ideas how I can build an install floppy image that will see my RAID
controllers?

Thanks,
Eric



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

* Re: [9fans] install w/Smart Array 3200
  2004-03-10 16:48     ` [9fans] install w/Smart Array 3200 Eric KD5UWL
@ 2004-03-11  1:20       ` Eric KD5UWL
  2004-03-11  1:38         ` matt
  0 siblings, 1 reply; 11+ messages in thread
From: Eric KD5UWL @ 2004-03-11  1:20 UTC (permalink / raw)
  To: 9fans

Hi,

Hope this wasn't a stupid question -- ?

Eric


On Wed, 10 Mar 2004, Eric KD5UWL wrote:

> Hi,
>
> So far I've only installed Plan 9 on IDE machines.
>
> But now I have 3 Compaq proliant ML 570 machines that I'd like to install
> it on.
>
> The problem I am having is that I can't see the LUNs presented by the RAID
> controller (Smart Array 3200) -- the only device the installer sees is the
> CD ROM :(
>
> Any ideas how I can build an install floppy image that will see my RAID
> controllers?
>
> Thanks,
> Eric
>


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

* Re: [9fans] install w/Smart Array 3200
  2004-03-11  1:20       ` Eric KD5UWL
@ 2004-03-11  1:38         ` matt
  2004-03-11  1:51           ` Eric KD5UWL
  0 siblings, 1 reply; 11+ messages in thread
From: matt @ 2004-03-11  1:38 UTC (permalink / raw)
  To: 9fans

Hi,

with not having actually tested mine I didn't want to hazard a guess until someone else tried

here's the news you probably don't want :

I have FreeBSD installed on my 1600 proliant though it is due to come out of the co-lo soon 

dmesg reports the SMART as
ida0: <Compaq SMART-2SL array controller> port 0x3000-0x30ff mem 0xb8000000-0xbfffffff,0xc6ffff00-0xc6ffffff irq 11 at device 0.0 on pci2
ida0: drives=1 firm_rev=4.48
idad0: <Compaq Logical Drive> on ida0
idad0: 8673MB (17764320 sectors), blocksize=512


and looking in the kernel conf
device          ida             # Compaq Smart RAID

means that it is specialised so for it to work in plan9 someone will have to write a driver for it

The code for it is available and is under the BSD license

%pwd
/usr/src/sys/dev/ida
%ls -l
total 52
-rw-r--r--  1 root  wheel  13565 Mar  1  2001 ida.c
-rw-r--r--  1 root  wheel   7837 Nov 27  2001 ida_disk.c
-rw-r--r--  1 root  wheel   8364 Jul 30  2001 ida_eisa.c
-rw-r--r--  1 root  wheel   7850 Jul 30  2001 ida_pci.c
-rw-r--r--  1 root  wheel   4346 Jul 27  2000 idareg.h
-rw-r--r--  1 root  wheel   5691 Jul 30  2001 idavar.h
%cat * | wc
    1881    5702   47653


If you don't have a FBSD handy it's in CVS

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ida/

matt


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

* Re: [9fans] install w/Smart Array 3200
  2004-03-11  1:38         ` matt
@ 2004-03-11  1:51           ` Eric KD5UWL
  2004-03-11  2:28             ` Martin Harriss
  0 siblings, 1 reply; 11+ messages in thread
From: Eric KD5UWL @ 2004-03-11  1:51 UTC (permalink / raw)
  To: 9fans

Hi,

Thanks, Matt -- and you are right -- not exactly what I wanted to hear.
These boxes do have ncr scsi controllers in addition to the raid.  I have
some sun D1000 arrays (just boxes of scsi disks - no hw raid) I could drag
over there and use, or just use these machines as CPU servers.

I do have redhat on one of these machines and do see similar info about
the device and its driver...thanks for sharing the output of yours.

I haven't written a device driver since I rewrote the keyboard and video
drivers for my trs80 in 1979 .. and that was in z80 assembler...guess
there's no better time than the present to try another ...

Looks like I have some nice CPU servers in the meantime :)

Thanks to all,
Eric


On Thu, 11 Mar 2004 matt@proweb.co.uk wrote:

> Hi,
>
> with not having actually tested mine I didn't want to hazard a guess until someone else tried
>
> here's the news you probably don't want :
>
> I have FreeBSD installed on my 1600 proliant though it is due to come out of the co-lo soon
>
> dmesg reports the SMART as
> ida0: <Compaq SMART-2SL array controller> port 0x3000-0x30ff mem 0xb8000000-0xbfffffff,0xc6ffff00-0xc6ffffff irq 11 at device 0.0 on pci2
> ida0: drives=1 firm_rev=4.48
> idad0: <Compaq Logical Drive> on ida0
> idad0: 8673MB (17764320 sectors), blocksize=512
>
>
> and looking in the kernel conf
> device          ida             # Compaq Smart RAID
>
> means that it is specialised so for it to work in plan9 someone will have to write a driver for it
>
> The code for it is available and is under the BSD license
>
> %pwd
> /usr/src/sys/dev/ida
> %ls -l
> total 52
> -rw-r--r--  1 root  wheel  13565 Mar  1  2001 ida.c
> -rw-r--r--  1 root  wheel   7837 Nov 27  2001 ida_disk.c
> -rw-r--r--  1 root  wheel   8364 Jul 30  2001 ida_eisa.c
> -rw-r--r--  1 root  wheel   7850 Jul 30  2001 ida_pci.c
> -rw-r--r--  1 root  wheel   4346 Jul 27  2000 idareg.h
> -rw-r--r--  1 root  wheel   5691 Jul 30  2001 idavar.h
> %cat * | wc
>     1881    5702   47653
>
>
> If you don't have a FBSD handy it's in CVS
>
> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ida/
>
> matt
>


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

* Re: [9fans] install w/Smart Array 3200
  2004-03-11  1:51           ` Eric KD5UWL
@ 2004-03-11  2:28             ` Martin Harriss
  0 siblings, 0 replies; 11+ messages in thread
From: Martin Harriss @ 2004-03-11  2:28 UTC (permalink / raw)
  To: 9fans

If you go to http://sourceforge.net/projects/cpqarray you can find the 
specification for the Smart Array 3200 (and similar controllers.)

It doesn't look *too* bad - probably not more complex than a driver for 
ATA disks.  But I havn't looked at it too closely.

73 and Good Luck,
Martin


Eric KD5UWL wrote:
> Hi,
> 
> Thanks, Matt -- and you are right -- not exactly what I wanted to hear.
> These boxes do have ncr scsi controllers in addition to the raid.  I have
> some sun D1000 arrays (just boxes of scsi disks - no hw raid) I could drag
> over there and use, or just use these machines as CPU servers.
> 
> I do have redhat on one of these machines and do see similar info about
> the device and its driver...thanks for sharing the output of yours.
> 
> I haven't written a device driver since I rewrote the keyboard and video
> drivers for my trs80 in 1979 .. and that was in z80 assembler...guess
> there's no better time than the present to try another ...
> 
> Looks like I have some nice CPU servers in the meantime :)
> 
> Thanks to all,
> Eric
> 



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

* RE: [9fans] Beginner question on how to change owner of files in fossil
@ 2004-03-09 18:05 Tiit Lankots
  0 siblings, 0 replies; 11+ messages in thread
From: Tiit Lankots @ 2004-03-09 18:05 UTC (permalink / raw)
  To: 9fans

> Is there any immediately usable command similar to chown for use on a
> srv -AWP mounted tree?

chgrp 


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

end of thread, other threads:[~2004-03-11  2:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 17:39 [9fans] Beginner question on how to change owner of files in fossil plan9
2004-03-09 17:52 ` andrey mirtchovski
2004-03-09 18:03   ` plan9
2004-03-09 18:11     ` rog
2004-03-09 18:10       ` plan9
2004-03-10 16:48     ` [9fans] install w/Smart Array 3200 Eric KD5UWL
2004-03-11  1:20       ` Eric KD5UWL
2004-03-11  1:38         ` matt
2004-03-11  1:51           ` Eric KD5UWL
2004-03-11  2:28             ` Martin Harriss
2004-03-09 18:05 [9fans] Beginner question on how to change owner of files in fossil Tiit Lankots

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).