Re: find_symdef() returns invalid value.

2007-11-27 Thread vasanth raonaik
Hello All,

Is any one looking into this issue. Please mail me for more info.

On Nov 26, 2007 5:50 PM, vasanth raonaik [EMAIL PROTECTED] wrote:
 Hello Hackers,

 find_symdef() sometimes returns invalid value in def and a null in
 defobjout. This causes any binary to recieve a segmentation fault and
 cores. I have recieved a core for rcp because of this issue. This
 issue was also been raised by someothers in the list.

 http://lists.freebsd.org/pipermail/freebsd-current/2004-February/021698.html

 I would like to know if anyone has debugged this issue. This doesnt
 happen always. There is definetely a bug which needs to be fixed.
 Please mail in your messages about the issue and how to fix it.

 Thanks,
 vasanth

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


how to write a raw socket server using UDP

2007-11-27 Thread sourav das
hello all,

 i m a new comer. i wrote a raw socket client 
using setsockopt (sock, IPPROTO_IP. IPHDRINCL, )using UDP. ihave followed 
MS_Press network programming . it is showing 19 bytes sent successfully. when 
trying to send more than 19 bytes using sendto(sock, ...) function , it is 
showing socket error on sending. i want to know how to write a raw socket 
server 
program so that to catch and display the data sent by the  client.

 

thanks a lot,

keep fit,

 

regards,

spike.




  

Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: find_symdef() returns invalid value.

2007-11-27 Thread Robert Watson


On Tue, 27 Nov 2007, vasanth raonaik wrote:


Is any one looking into this issue. Please mail me for more info.


Vasanth,

Could you file a problem report using send-pr on this problem?  FreeBSD 
hackers@ has a somewhat mixed subscription, and may not catch all the relevant 
developers, and spitting it into the PR machine may help find an owner for the 
issue.


Thanks,

Robert N M Watson
Computer Laboratory
University of Cambridge



On Nov 26, 2007 5:50 PM, vasanth raonaik [EMAIL PROTECTED] wrote:

Hello Hackers,

find_symdef() sometimes returns invalid value in def and a null in
defobjout. This causes any binary to recieve a segmentation fault and
cores. I have recieved a core for rcp because of this issue. This
issue was also been raised by someothers in the list.

http://lists.freebsd.org/pipermail/freebsd-current/2004-February/021698.html

I would like to know if anyone has debugged this issue. This doesnt
happen always. There is definetely a bug which needs to be fixed.
Please mail in your messages about the issue and how to fix it.

Thanks,
vasanth


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to write a raw socket server using UDP

2007-11-27 Thread Ivan Voras
sourav das wrote:
 hello all,
 
  i m a new comer. i wrote a raw socket client 
 using setsockopt (sock, IPPROTO_IP. IPHDRINCL, )using UDP. ihave followed 
 MS_Press network programming . it is showing 19 bytes sent successfully. when 
 trying to send more than 19 bytes using sendto(sock, ...) function , it 
 is 
 showing socket error on sending. i want to know how to write a raw socket 
 server 
 program so that to catch and display the data sent by the  client.

I don't think you can do it with the socket API, try using bpf or netgraph.



signature.asc
Description: OpenPGP digital signature


Updated procstat(1)

2007-11-27 Thread Robert Watson


Dear all,

I've updated the procstat(1) kernel patch and userland tool; the updated 
version can be found at:


  http://www.watson.org/~robert/freebsd/20071127-procstat.tgz

The new version includes a number of changes from the old version, including:

- A number of bug fixes and cleanliness improvements in the layout of output,
  etc, including fixes for bugs reported by Skip Ford.

- -a now means all processes, and the old -a has become -c, and the old -c
  has become -s.  I.e., All, Command line and Security rather than
  Args and Credential.

- Threads and processes are now sorted by pid and then tid.  If processes are
  specified manually by pid, they are not sorted, although their threads will
  be.

- A new -k has been added, which prints the kernel thread stacks for threads
  in a process (although not swapped out or actively running threads).  This
  is extremely useful for answering questions of the sort But *why* is the
  process blocked in UMA.  It has both a simple mode (-k_, which lists just
  kernel function names, and a slightly more detailed mode (-kk), which adds
  the offset into the function.

The last of these required new kernel changes, including an MD component. 
I've tested the MD parts only on i386, although I have quick hacks at what 
they should look like on amd64, arm, powerpc, sparc64, sun4v.  I don't promise 
these compile or work, but they might do.


I think procstat(1) is getting a lot closer to commitable state for 8-CURRENT, 
but further feedback would be most welcome (including reports of success on 
non-i386 architectures, and possibly patches to fix them).  For FreeBSD 
developers with P4 access, you can also check out


  //depot/user/rwatson/procstat/...

Robert N M Watson
Computer Laboratory
University of Cambridge
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to write a raw socket server using UDP

2007-11-27 Thread Thierry Herbelot
Le Tuesday 27 November 2007, sourav das a écrit :
 hello all,

  i m a new comer. i wrote a raw socket client
 using setsockopt (sock, IPPROTO_IP. IPHDRINCL, )using UDP. ihave
 followed MS_Press network programming . it is showing 19 bytes sent

is this the best reference you found ? a better text is Unix network 
programming by Stevens.

the canonical program using raw socket is ping, and you can find its source in 
the FreeBSD src tree

Happy reading

TfH
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Jail with a back door interface?

2007-11-27 Thread Steven Hartland

Is it possible to create a jail with more than one IP?

What I'm looking to do is have a forward facing IP and
an backwards facing IP in the same jail so it can
talk to the internet and our back door systems.

Looking around this doesn't seem possible but is it?

   Regards
   Steve


This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone +44 845 868 1337
or return the E.mail to [EMAIL PROTECTED]

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


ad0: WARNING - removed from configuration (atacontrol and gmirror relationship?)

2007-11-27 Thread [EMAIL PROTECTED]
This just happened on my server:

Nov 22 03:21:11 sockeye kernel: ad0: TIMEOUT - WRITE_DMA retrying (2 retries
left) LBA=28892960
Nov 22 03:21:11 sockeye kernel: ad0: WARNING - removed from configuration
Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Device gm0s1: provider ad0
disconnected.
Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Request failed (error=6).
ad0[WRITE(offset=13881704448, length=12288)]
Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Request failed (error=6).
ad0[WRITE(offset=14795718656, length=2048)]
Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Request failed (error=6).
ad0[WRITE(offset=770891776, length=16384)]
Nov 22 03:21:11 sockeye kernel: ata0-master: FAILURE - WRITE_DMA timed out
Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Request failed (error=5).
ad0[WRITE(offset=14793195520, length=2048)]

Now the ad0 Master drive no longer exists:

-su-2.05b$ sudo atacontrol list
ATA channel 0:
Master:  no device present
Slave:  acd0 SONY CD-ROM CDU5212/5YS1 ATA/ATAPI revision 5
ATA channel 1:
Master:  ad2 WDC WD800JB-00JJA0/05.01C05 ATA/ATAPI revision 6
Slave:   ad3 WDC WD400BB-75FRA0/77.07W77 ATA/ATAPI revision 6


What is the relationship between atacontrol and gmirror?


Why was the device removed completely?


Can I simply do this?  (want to be sure as this box is remote)

gmirror forget data

atacontrol attach ata0

gmirror insert data ad0
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Jail with a back door interface?

2007-11-27 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steven Hartland wrote:
 Is it possible to create a jail with more than one IP?
 
 What I'm looking to do is have a forward facing IP and
 an backwards facing IP in the same jail so it can
 talk to the internet and our back door systems.
 
 Looking around this doesn't seem possible but is it?

FreeBSD does not support multiple IP nor IPv6 on jails at this moment,
unfortunately...

Cheers,
- --
Xin LI [EMAIL PROTECTED]  http://www.delphij.net/
FreeBSD - The Power to Serve!
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHTIGohcUczkLqiksRAo9ZAJ910TIW7aB0VxwFytTEk6Vt28ucmgCggr3V
6us0zKm+VLyt11qnn9TfyUY=
=jS5M
-END PGP SIGNATURE-
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Jail with a back door interface?

2007-11-27 Thread Dominic Marks

Hi Steven,

Although it is not possibly natively you could simulate it with pf 
binat's for the two IPs.
It might not be workable for you depending on the purpose of the jails 
however (?)


Cheers
Dominic

Steven Hartland wrote:

Is it possible to create a jail with more than one IP?

What I'm looking to do is have a forward facing IP and
an backwards facing IP in the same jail so it can
talk to the internet and our back door systems.

Looking around this doesn't seem possible but is it?

   Regards
   Steve


This e.mail is private and confidential between Multiplay (UK) Ltd. 
and the person or entity to whom it is addressed. In the event of 
misdirection, the recipient is prohibited from using, copying, 
printing or otherwise disseminating it or any information contained in 
it.
In the event of misdirection, illegible or incomplete transmission 
please telephone +44 845 868 1337

or return the E.mail to [EMAIL PROTECTED]

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to write a raw socket server using UDP

2007-11-27 Thread Edwin Groothuis
On Tue, Nov 27, 2007 at 01:31:22AM -0800, sourav das wrote:
  i m a new comer. i wrote a raw socket client 
 using setsockopt (sock, IPPROTO_IP. IPHDRINCL, )using UDP. ihave followed 
 MS_Press network programming . it is showing 19 bytes sent successfully. when 
 trying to send more than 19 bytes using sendto(sock, ...) function , it 
 is 
I use net/libdnet for all my IP/UDP/TCP/etc packet creation
requirements.

Edwin
-- 
Edwin Groothuis  |Personal website: http://www.mavetju.org
[EMAIL PROTECTED]|  Weblog: http://www.mavetju.org/weblog/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Jail with a back door interface?

2007-11-27 Thread Simon 'corecode' Schubert

Xin LI wrote:

Steven Hartland wrote:

Is it possible to create a jail with more than one IP?
Looking around this doesn't seem possible but is it?


FreeBSD does not support multiple IP nor IPv6 on jails at this moment,
unfortunately...


AFAIK there exists a patch by pjd@

If not, somebody could also try porting the DragonFly multi ip + ipv6 changes 
to jail.  They're not so complex and should be rather simple to bring over.

cheers
 simon

--
Serve - BSD +++  RENT this banner advert  +++ASCII Ribbon   /\
Work - Mac  +++  space for low €€€ NOW!1  +++  Campaign \ /
Party Enjoy Relax   |   http://dragonflybsd.org  Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz   Mail + News   / \
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ad0: WARNING - removed from configuration (atacontrol and gmirror relationship?)

2007-11-27 Thread Josh Paetzel
On Tuesday 27 November 2007 01:08:49 pm [EMAIL PROTECTED] wrote:
 This just happened on my server:

 Nov 22 03:21:11 sockeye kernel: ad0: TIMEOUT - WRITE_DMA retrying (2
 retries left) LBA=28892960
 Nov 22 03:21:11 sockeye kernel: ad0: WARNING - removed from configuration
 Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Device gm0s1: provider ad0
 disconnected.
 Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Request failed (error=6).
 ad0[WRITE(offset=13881704448, length=12288)]
 Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Request failed (error=6).
 ad0[WRITE(offset=14795718656, length=2048)]
 Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Request failed (error=6).
 ad0[WRITE(offset=770891776, length=16384)]
 Nov 22 03:21:11 sockeye kernel: ata0-master: FAILURE - WRITE_DMA timed out
 Nov 22 03:21:11 sockeye kernel: GEOM_MIRROR: Request failed (error=5).
 ad0[WRITE(offset=14793195520, length=2048)]

 Now the ad0 Master drive no longer exists:

 -su-2.05b$ sudo atacontrol list
 ATA channel 0:
 Master:  no device present
 Slave:  acd0 SONY CD-ROM CDU5212/5YS1 ATA/ATAPI revision 5
 ATA channel 1:
 Master:  ad2 WDC WD800JB-00JJA0/05.01C05 ATA/ATAPI revision 6
 Slave:   ad3 WDC WD400BB-75FRA0/77.07W77 ATA/ATAPI revision 6


 What is the relationship between atacontrol and gmirror?


 Why was the device removed completely?


 Can I simply do this?  (want to be sure as this box is remote)

 gmirror forget data

 atacontrol attach ata0

 gmirror insert data ad0

IDE devices generally aren't hot swappable, so you're going to have to take 
the box down to replace the failed drive (that's why it detached from the 
bus).  Once you do that you can rebuild the gmirror.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


bin/118292: Add support to remove all msg/shm/sem ids with ipcrm

2007-11-27 Thread Edwin Groothuis
Hello,

A friend of me has submitted this PR and I promised him that I would
see if I could get it implemented. I couldn't find anybody directly
responsible for the ips/iprcm tools, so I throw it in here for
discussion.

Description:
I've observed that linux apps running under the linuxulator
have a habit of leaving behind shared memory segments which are
unused, but which eventually cause the system to run out of
free segments and these apps will stop working. ipcrm(1) currently
only allows removal of unused message queues, shared memory
segments and semaphores on an individual basis, or those having
a matching (non-zero) key. However it would often be convenient
to just do a complete cleanup of everything, usually as root.

The attached patch allows removal of all message queues, shared
memory segments or semaphores by specifying an id of -1 (ala
kill(2)).  The code to lookup ids was taken from ipcs.

The patch is available in http://www.freebsd.org/cgi/query-pr.cgi?pr=118292

Edwin

-- 
Edwin Groothuis
[EMAIL PROTECTED]
http://www.mavetju.org
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Jail with a back door interface?

2007-11-27 Thread ros

A non oficial patch is available for some freebsd versions.
I'm not relly in touch with this so you can take a look on this page
http://blog.cg.nu/?p=9 .

I hope this help

-ros


Steven Hartland wrote:

Is it possible to create a jail with more than one IP?

What I'm looking to do is have a forward facing IP and
an backwards facing IP in the same jail so it can
talk to the internet and our back door systems.

Looking around this doesn't seem possible but is it?

   Regards
   Steve


This e.mail is private and confidential between Multiplay (UK) Ltd. and 
the person or entity to whom it is addressed. In the event of 
misdirection, the recipient is prohibited from using, copying, printing 
or otherwise disseminating it or any information contained in it.
In the event of misdirection, illegible or incomplete transmission 
please telephone +44 845 868 1337

or return the E.mail to [EMAIL PROTECTED]

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]





___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Before After Under The Giant Lock

2007-11-27 Thread binto
Hi,

Thanks for all response, especially for Mr. Robert N M Watson
I read all , and i got a lot thing from conversation about this.

It's nice community, thanks once again.

Regards
Binto


 Roman Divacky wrote:
 On Sun, Nov 25, 2007 at 02:41:35PM -0600, Stephen Montgomery-Smith
 wrote:

 On Sun, 25 Nov 2007, Robert Watson wrote:

 
 In FreeBSD 8, I expect we'll see a continued focus on both locking
 granularity and improving opportunities for kernel parallelism by
 better
 distributing workloads over CPU pools.  This is important because the
 number of cores/chip is continuing to increase dramatically, so MP
 performance is going to be important to keep working on.  That said,
 the
 results to date have been extremely promising, and I anticipate that
 we
 will continue to find ways to better exploit multiprocessor hardware,
 especially in the network stack.

 I just want to add my 2 cents, that my recent experience with FreeBSD
 MP
 has been extremely positive.  I tend to use highly CPU bound MP
 programs,
 typically lots and lots of floating point operations.  It used to be
 that
 Linux beat FreeBSD hands down - now FreeBSD seems to have a slight
 edge!
 Basically my program runs about twice as fast when I run two threads as
 opposed to one - I cannot see doing any better than that!

 pure computation does not need kernel operations most of the time.. ie.
 multi-threading kernel wont help much ;)

 It has an indirect benefit by (presumably) not being in contention
 with the userland process, and not needing slap Giant on the whole
 system every few milliseconds.

 Doug

 --

 This .signature sanitized for your protection




___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ad0: WARNING - removed from configuration (atacontrol and gmirror relationship?)

2007-11-27 Thread [EMAIL PROTECTED]
On Nov 27, 2007 7:03 PM, Josh Paetzel [EMAIL PROTECTED] wrote:

 On Tuesday 27 November 2007 01:08:49 pm [EMAIL PROTECTED] wrote:
  Why was the device removed completely?
 
 
  Can I simply do this?  (want to be sure as this box is remote)
 
  gmirror forget data
 
  atacontrol attach ata0
 
  gmirror insert data ad0

 IDE devices generally aren't hot swappable, so you're going to have to
 take
 the box down to replace the failed drive (that's why it detached from the
 bus).  Once you do that you can rebuild the gmirror.



I don't want to hot swap...I want to get the existing bad drive back into
the mirror and see how long it lasts before gmirror breaks again.

Can I use atacontrol to get the drive back in the system?

Thanks,
Andy
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


handling pdfs?

2007-11-27 Thread Chuck Robey
I need to read about 4 tons of some really sparse pdf specs.  I also 
have a rather inconvenient throwback: I feel hugely more at home-reading 
 documents in paper.  What I'd kind of like to do would be able to 
perform cut'n'paste among different pdfs, 5 pages here, 10 pages there, 
until I put together maybe 100-200 pages, and sit back and read it. 
What I can't do is print just a few pages out of several 800-plus page 
specs, and perform paper cut'n'pasting.


Is there some sort of util that will allow me to do cut'n'pasting among 
different pdfs, or at the very least, only to print certain ranges out 
of pdf docs, so I could do paper-wise cut'n'paste?  An all-electronic 
solution would be best, but I'd take whatever offered.



Thanks
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: handling pdfs?

2007-11-27 Thread Wilkinson, Alex
0n Tue, Nov 27, 2007 at 09:27:41PM -0500, Chuck Robey wrote: 

I need to read about 4 tons of some really sparse pdf specs.  I also have 
a 
rather inconvenient throwback: I feel hugely more at home-reading  
documents in paper.  What I'd kind of like to do would be able to perform 
cut'n'paste among different pdfs, 5 pages here, 10 pages there, until I 
put 
together maybe 100-200 pages, and sit back and read it. What I can't do is 
print just a few pages out of several 800-plus page specs, and perform 
paper cut'n'pasting.

Is there some sort of util that will allow me to do cut'n'pasting among 
different pdfs, or at the very least, only to print certain ranges out of 
pdf docs, so I could do paper-wise cut'n'paste?  An all-electronic 
solution 
would be best, but I'd take whatever offered.

/usr/ports/print/pdftk/

 -aW

IMPORTANT: This email remains the property of the Australian Defence 
Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 
1914.  If you have received this email in error, you are requested to contact 
the sender and delete the email.


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ad0: WARNING - removed from configuration (atacontrol and gmirror relationship?)

2007-11-27 Thread Eric Crist

On Nov 27, 2007, at 8:24 PM, [EMAIL PROTECTED] wrote:


On Nov 27, 2007 7:03 PM, Josh Paetzel [EMAIL PROTECTED] wrote:


On Tuesday 27 November 2007 01:08:49 pm [EMAIL PROTECTED] wrote:

Why was the device removed completely?


Can I simply do this?  (want to be sure as this box is remote)

gmirror forget data

atacontrol attach ata0

gmirror insert data ad0


IDE devices generally aren't hot swappable, so you're going to have  
to

take
the box down to replace the failed drive (that's why it detached  
from the

bus).  Once you do that you can rebuild the gmirror.




I don't want to hot swap...I want to get the existing bad drive back  
into

the mirror and see how long it lasts before gmirror breaks again.

Can I use atacontrol to get the drive back in the system?

Thanks,
Andy


You can, only if the two drives are on different channels.  If you  
have ad0 and ad1, you're probably out of luck.


-
Eric F Crist
Secure Computing Networks


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: idea bouncing: using cvs as a replacement for mergemaster

2007-11-27 Thread Garrett Cooper

On Nov 27, 2007, at 7:45 PM, Aryeh M. Friedman wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I was thinking seeing the fact that I already have a cvs repo of
- -current does it make sense to just use CVS to update /etc  
instead of

mergemaster... if so any ideas on doing it cleanly?

- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTORVJ9+1V27SttsRAqcuAJ4sW4ObPrnUi6az4T+NQebCVMbDCQCfUS+i
gCRv9mwC2mu6B4LAPZ9bW3s=
=tD/k
-END PGP SIGNATURE-



	CVS sucks and I wouldn't wish that requirement on anyone for their  
base system..
	There isn't a decent idiot-proof / foolproof system out there for  
defeating merging issues...

-Garrett

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: idea bouncing: using cvs as a replacement for mergemaster

2007-11-27 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garrett Cooper wrote:
 On Nov 27, 2007, at 7:45 PM, Aryeh M. Friedman wrote:

 I was thinking seeing the fact that I already have a cvs repo of
 -current does it make sense to just use CVS to update /etc
 instead of
 mergemaster... if so any ideas on doing it cleanly?


 CVS sucks and I wouldn't wish that requirement on anyone for
 their base system..
 There isn't a decent idiot-proof / foolproof system out there
 for defeating merging issues...
 -Garrett


I was talking for myself only not anyone else

- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTOZ2J9+1V27SttsRAj6NAJ9WGi/BakGPvcMiRLdyX90gS0hVgQCaAqrF
E1x9CjYdxLf42XbF6vus1To=
=2gb8
-END PGP SIGNATURE-

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Updated procstat(1)

2007-11-27 Thread Wesley Shields
On Tue, Nov 27, 2007 at 05:18:47PM +, Robert Watson wrote:
 The last of these required new kernel changes, including an MD component. 
 I've tested the MD parts only on i386, although I have quick hacks at what 
 they should look like on amd64, arm, powerpc, sparc64, sun4v.  I don't 
 promise these compile or work, but they might do.

The kernel build didn't work on AMD64...

cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq 
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel 
-mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror  
/usr/src/sys/amd64/amd64/db_trace.c
cc1: warnings being treated as errors
/usr/src/sys/amd64/amd64/db_trace.c: In function 'stack_save_td':
/usr/src/sys/amd64/amd64/db_trace.c:535: warning: type defaults to 'int' in 
declaration of 'rbp'
/usr/src/sys/amd64/amd64/db_trace.c:537: warning: implicit declaration of 
function 'TD_IS_SWWAPPED'
/usr/src/sys/amd64/amd64/db_trace.c:537: warning: nested extern declaration of 
'TD_IS_SWWAPPED'
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
[EMAIL PROTECTED] /usr/src % 

Here's an updated patch to sys/amd64/amd64/db_trace.c (it's a diff
against revision 1.81).  It changes register rbp to be register_t
rbp and fixes the extra W in TD_IS_SWAPPED.  The kernel built fine
after these changes.  I'll test it out tomorrow.

--- sys/amd64/amd64/db_trace.c.orig 2007-11-15 17:00:56.0 -0500
+++ sys/amd64/amd64/db_trace.c  2007-11-27 22:59:29.0 -0500
@@ -505,15 +505,13 @@
ctx-pcb_rip, count));
 }
 
-void
-stack_save(struct stack *st)
+static void
+stack_capture(struct stack *st, register_t rbp)
 {
struct amd64_frame *frame;
vm_offset_t callpc;
-   register_t rbp;
 
stack_zero(st);
-   __asm __volatile(movq %%rbp,%0 : =r (rbp));
frame = (struct amd64_frame *)rbp;
while (1) {
if (!INKERNEL((long)frame))
@@ -531,6 +529,29 @@
}
 }
 
+void
+stack_save_td(struct stack *st, struct thread *td)
+{
+   register_t rbp;
+
+   if (TD_IS_SWAPPED(td))
+   panic(stack_save_td: swapped);
+   if (TD_IS_RUNNING(td))
+   panic(stack_save_td: running);
+
+   rbp = td-td_pcb-pcb_rbp;
+   stack_capture(st, rbp);
+}
+
+void
+stack_save(struct stack *st)
+{
+   register_t rbp;
+
+   __asm __volatile(movq %%rbp,%0 : =r (rbp));
+   stack_capture(st, rbp);
+}
+
 int
 amd64_set_watch(watchnum, watchaddr, size, access, d)
int watchnum;

 I think procstat(1) is getting a lot closer to commitable state for 
 8-CURRENT, but further feedback would be most welcome (including reports of 
 success on non-i386 architectures, and possibly patches to fix them).  For 
 FreeBSD developers with P4 access, you can also check out

Thank you for this.  I think procstat(1) is going to be very useful.

-- WXS
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Updated procstat(1)

2007-11-27 Thread Skip Ford
Robert Watson wrote:
 I've updated the procstat(1) kernel patch and userland tool; the updated 
 version can be found at:
 
   http://www.watson.org/~robert/freebsd/20071127-procstat.tgz
 
 The new version includes a number of changes from the old version, 
 including:
 
 - -a now means all processes,

Thanks. :-)  I'm a little surprised.  You seemed pretty dedicated
to a per-process tool.

I personally would change it to allow either the all flag or a
list of pids, rather than at least one of.  For pathname,
command-line, and credential information, the output will likely
not change between showing the pid in the all output and the
list output so you're just outputting it twice.  If one really
wants the same pid to be output multiple times for threads, kstack,
or file descriptors, then I'd expect
procstat -k 0 0 0 0 0 to be more useful for that.

I would think a mistake in usage has been made if a list of pids is
specified along with the all flag.  But, no real harm is done by
doing it the current way.

 - Threads and processes are now sorted by pid and then tid.  If processes 
 are specified manually by pid, they are not sorted, although their threads 
 will be.

Nice.

 - A new -k has been added, which prints the kernel thread stacks for threads
   in a process (although not swapped out or actively running threads).  This
   is extremely useful for answering questions of the sort But *why* is the
   process blocked in UMA.  It has both a simple mode (-k_, which lists just
   kernel function names, and a slightly more detailed mode (-kk), which adds
   the offset into the function.

This is excellent.  Does this absolutely have to depend on DDB and
KDB?

 The last of these required new kernel changes, including an MD component. 
 I've tested the MD parts only on i386, although I have quick hacks at what 
 they should look like on amd64, arm, powerpc, sparc64, sun4v.  I don't 
 promise these compile or work, but they might do.

In sys/amd64/amd64/db_trace.c on line 537, change SWWAPPED to
SWAPPED.

The newly introducted function stack_save_td() doesn't panic in
the MD powerpc code like it does for other arches.  I have no idea
if this is correct, it just doesn't match the others.

Unfortunately, I can only test i386.

-- 
Skip
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: handling pdfs?

2007-11-27 Thread Atom Smasher

On Wed, 28 Nov 2007, Wilkinson, Alex wrote:


/usr/ports/print/pdftk/



that's a good first choice, but if it doesn't work (amd64) then a second 
choice is print/pdfjam and/or print/psutils-(letter|a4)... and ghostscript 
for pdf2ps and/or ps2pdf... but yeah, pdftk is best if it works for you.



--
...atom

 
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -

Never be afraid to try something new.
 Remember that a lone amateur built the Ark.
 A large group of professionals built the Titanic.
-- Dave Barry


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]