Re: WINE - DFBSD

2010-05-18 Thread Chris Turner

Siju George wrote:

Virtualbox installation and qemu installation from pkgsrc failed for
me :-(


Just built qemu - will submit patches / fixes in a bit - but if you're 
itching to try.. and assuming our pkgsrc dependencies are similar..


Note: I haven't actually *used* the build yet..
  so it might just crash instantly, etc.

Against 2010Q1 branch of pkgsrc, on 2.6:
(other branches / versions might work)

  - build until you get the SDL failure, then tweak the
sdl 'main.c' file to comment out the block containing 'mlockall',
resume w/'bmake package' - might need to cleanup the .o file
from the error first..
  - continue build until you get the QEMU failure about OSSVERSION -
comment it out, and set 'version = 0x03',
resume w/'bmake package'

incedentally, this makes pulseaudio build, if anyone has any broken
deps on that. (again - no idea if it works :)

2x things to fix :

1) we need mlockall()

   http://www.opengroup.org/onlinepubs/009695399/functions/mlockall.html
   for any ambitious VMem patch-making-ppl.

2) we probably should? define OSS_VERSION - or generally be more
   in step with oss.

I'll submit patches for pkgsrc / crosscheck pkgsrc current / file OS 
bugs in a bit.. time for a nap :)


cheers

- Chris


Re: which pkgsrc version do I get via git?

2010-05-18 Thread Max Herrgård

18 maj 2010 kl. 21.59 skrev Goetz Isenmann:

On Mon, 17 May 2010 20:53:42 +0200
Max Herrgård  wrote:


If you do 'make pkgsrc-create' you get git://git.dragonflybsd.org/
pkgsrc.git (see /usr/src/Makefile). It's pkgsrc-current .


But when I compare it with "cvs checkout -rpkgsrc-2010Q1" and "cvs
checkout pkgsrc", it doesn't look very "current", e.g:

==> /usr/pkgsrc/devel/mercurial/Makefile <==
# $NetBSD: Makefile,v 1.38 2010/02/10 19:17:36 joerg Exp $
#

DISTNAME=   mercurial-1.4.3
PKGREVISION=1
CATEGORIES= devel scm
MASTER_SITES=   http://mercurial.selenic.com/release/

MAINTAINER= w...@netbsd.org
HOMEPAGE=   http://mercurial.selenic.com/wiki/


Hm that's weird, I have that old mercurial too. Rest of the repo seems  
to be -current on a quick compare to with a few packages to pkgsrc.se  
though.


Could be a problem with the CVS->git conversion. Can anyone with  
access please check that? More than mercurial could be lagging behind  
and causing build errors because of out of sync pkgs etc.



Max




Re: starting Apache

2010-05-18 Thread Chris Turner

Thomas Nikolajsen wrote:

rc variable namespace still isn't separated, e.g. no reserved name space
for base rc scripts, any ideas for this?


this could probably be tweaked somehow in the scan / startup sequence 
with rcorder(1) statements.. e.g. pass 1 for 'basic init', pass 2 for 
'secondary init' -


but then it's getting complicated..

I like the simplicity of rcng, which lets the user kind of 'make their 
own' policy, if desired..


for example, I just tweaked my own rc.conf to have a
little 'ops mode' toggle.

e.g: I set box to ops_mode='basic' for heavy maintinance,
do maintinance
tweak ops_mode='full'
and reboot

this keeps me from thinking 'oh right - that needs this, so don't enable 
that' when doing maintinance.




Re: starting Apache

2010-05-18 Thread Chris Turner

Justin C. Sherrill wrote:

It seems that maybe we should ship with /etc/rc.d set by default.


-1 for me - usual 'system is system and pkgsrc is pkgsrc' reasoning.

(and just had my tweaked apache start script botched by pkgsrc)

pkgsrc / rcng are super flexible - isn't there some way to spec the
rcorder scan dirs? (seem to recall.. maybe freebsd does this?) -
perhaps setting the rc default to scan pkgsrc as well might be the way 
to go if a change is required?


then we could throw in some quasi-rh-like 'service foo start' command
which would locate the appropriate rc script (according to dir scan 
config), and run - this would let the newer-folks have an easy setup:


- tweak rc.conf
- service foo start

to prevent the 'hey whered my script go', and
and people with custom scripting wouldn't be clobbered..

though I'd like something linguistically tweaked a smidge like 'rc run' 
- 'service' is WAAAY too windowsy and muddles things




Re: Rolling back the whole file system to a previous snapshot

2010-05-18 Thread Siju George
On Wed, May 12, 2010 at 11:11 PM, Matthew Dillon
 wrote:
>
> :How do I roll back a complete hammer file system to a previous snapshot?
>
>    cpdup the desired snapshot onto the live, but you have to use the
>    -VV option to force cpdup to ignore mtime and compare the file contents
>    (because the snapshot mtimes may not match), and make sure you traverse
>    the snapshot softlink and match up the top level directory properly.
>
>    cpdup -VV -v /. 
>

Thanks Matt,

And I guess I will have to separately snapshot the pfses and also
cpdup them separately  because the / snapshot does not contain
anything mounted/unmounted as a pfs ?

--Siju



Re: problem with system freeze

2010-05-18 Thread Justin C. Sherrill
On Tue, May 18, 2010 5:15 pm, Goetz Isenmann wrote:

> Any ideas, what I could do before or after it happens the next time,
> that might give my some info what's going on?

The same problem on two different architectures makes me think it's the
one thing that hasn't changed: the hardware.  Is there anything else
connected to the computer that could be disconnected?  Perhaps there's a
BIOS setting around USB or some video setting that may change things?




problem with system freeze

2010-05-18 Thread Goetz Isenmann
Hi!

My problem started many weeks ago, with a cheap amd64 system running
i386 dfly240 and after updating to something (I believe) between
2.5.1.750 and 850, and any later version. The system stopped suddenly
responding to the keyboard and the mouse. As far as I remember, it only
happened within X11, and maybe only while also using the network. For
example restarting firefox with 10-20 open tabs often ended with a
freeze.

The same hardware is now running x86_64 v2.6.3.2.gdda6b-RELEASE
GENERIC+SMP and I just saw the same problem again. Sadly I am neither
able to interact with the system after a freeze nor do I find any
relevant information after restart, besides some hammer cleanup:

HAMMER(ROOT) recovery check seqno=011afb3f
HAMMER(ROOT) recovery range 33147fb8-3314f498
HAMMER(ROOT) recovery nexto 3314f498 endseqno=011afbd9
HAMMER(ROOT) recovery undo  33147fb8-3314f498 (29920 bytes)(RW)
HAMMER(ROOT) Found REDO_SYNC 330d4200
HAMMER(ROOT) recovery complete
HAMMER(ROOT) recovery redo  33147fb8-3314f498 (29920 bytes)(RW)
HAMMER(ROOT) Find extended redo  330d4200, 474552 extbytes
HAMMER(ROOT) End redo recovery

Any ideas, what I could do before or after it happens the next time,
that might give my some info what's going on?


Re: which pkgsrc version do I get via git?

2010-05-18 Thread Goetz Isenmann
On Mon, 17 May 2010 20:53:42 +0200
Max Herrgård  wrote:

> If you do 'make pkgsrc-create' you get git://git.dragonflybsd.org/ 
> pkgsrc.git (see /usr/src/Makefile). It's pkgsrc-current .

But when I compare it with "cvs checkout -rpkgsrc-2010Q1" and "cvs
checkout pkgsrc", it doesn't look very "current", e.g:

==> /usr/pkgsrc/devel/mercurial/Makefile <==
# $NetBSD: Makefile,v 1.38 2010/02/10 19:17:36 joerg Exp $
#

DISTNAME=   mercurial-1.4.3
PKGREVISION=1
CATEGORIES= devel scm
MASTER_SITES=   http://mercurial.selenic.com/release/

MAINTAINER= w...@netbsd.org
HOMEPAGE=   http://mercurial.selenic.com/wiki/

==> pkgsrc-2010Q1/devel/mercurial/Makefile <==
# $NetBSD: Makefile,v 1.40 2010/04/02 22:28:43 wiz Exp $
#

DISTNAME=   mercurial-1.5.1
CATEGORIES= devel scm
MASTER_SITES=   http://mercurial.selenic.com/release/

MAINTAINER= w...@netbsd.org
HOMEPAGE=   http://mercurial.selenic.com/wiki/
COMMENT=Fast, lightweight source control management system

==> pkgsrc/devel/mercurial/Makefile <==
# $NetBSD: Makefile,v 1.42 2010/05/13 19:39:13 wiz Exp $
#

DISTNAME=   mercurial-1.5.3
CATEGORIES= devel scm
MASTER_SITES=   http://mercurial.selenic.com/release/

MAINTAINER= w...@netbsd.org
HOMEPAGE=   http://mercurial.selenic.com/wiki/
COMMENT=Fast, lightweight source control management system



Re: which pkgsrc version do I get via git?

2010-05-18 Thread Justin C. Sherrill
On Tue, May 18, 2010 10:59 am, Siju George wrote:

> I guess the packages that get installed using pkg_radd are built from
> pkgsrc-stable?

Yes - pkgsrc-2010Q1 is the current build.



Re: which pkgsrc version do I get via git?

2010-05-18 Thread Justin C. Sherrill
On Tue, May 18, 2010 10:59 am, Siju George wrote:

> I guess the packages that get installed using pkg_radd are built from
> pkgsrc-stable?

Yes - pkgsrc-2010Q1 is the current build.



Re: WINE - DFBSD

2010-05-18 Thread Siju George
On Fri, May 14, 2010 at 8:45 PM, Justin C. Sherrill
 wrote:
>> To be honest I only need WINE for SigmaPlot & MS Word (both needed for
>> work), so maybe there is other way to use those programs under DFBSD -
>> (virtualbox is useless, since my netbook has 900MHz CPU, and 1GB of RAM).
>

Is there any virtualization software that works well for dfly.
Virtualbox installation and qemu installation from pkgsrc failed for
me :-(

--Siju


Re: snapshots 0d 0d but cleanup does not prune everything on pfs - neither does 'prune-everything'

2010-05-18 Thread Siju George
On Tue, May 18, 2010 at 1:45 AM, Siju George  wrote:
>> undo -i /home/sgeorge
> /home/sgeorge: ITERATE ENTIRE HISTORY
>        0x00010522d7b0 17-May-2010 11:04:21 file-deleted
>        0x000105a17220 17-May-2010 11:40:37
>        0x00010727b1a0 17-May-2010 11:52:31
>        0x00010727b1c0 17-May-2010 11:52:31
>        0x000107771c20 18-May-2010 04:55:35
>        0x000107994610 18-May-2010 05:23:18
>        0x000109a333d0 18-May-2010 07:32:39
>

Sorry It was told to me before :-(
There is nothing in there it was all pruned :-)

Thanks

--Siju



Re: which pkgsrc version do I get via git?

2010-05-18 Thread Siju George
2010/5/17 Max Herrgård :
> 17 maj 2010 kl. 20.05 skrev Goetz Isenmann:
>
>> Hi!
>>
>> What flavor of pkgsrc do I get, when I use "cd /usr && make
>> pkgsrc-create/update"? There are regular updates, but there seem to be
>> a lot of differences compared to 2010Q1 and cvs/pkgsrc-changes.
>> --
>> Goetz
>
> If you do 'make pkgsrc-create' you get git://git.dragonflybsd.org/pkgsrc.git
> (see /usr/src/Makefile). It's pkgsrc-current
>

I guess the packages that get installed using pkg_radd are built from
pkgsrc-stable?

Thanks

--Siju



OT: Wikipedia FS comparsion page needs update

2010-05-18 Thread McLone
Hell Low.

I think we should conduct a slight PR move
and update [1] w.r.t HAMMER.

What can be said about data layout?
The table at [1] has following columns:
? Block suballocation
? Variable file block size
? Extents
? Allocate-on-flush
+ Sparse files
- Transparent compression

What are those limitations for HAMMER?
? Maximum filename length
? Allowable characters in directory entries (are there exceptions?)
? Maximum pathname length
? Maximum file size

Does it support ACLs, Security/MAC labels,
extended attributes, alternate data streams, forks?
What can be said about CoW, Block journaling or
Metadata-only journaling of HAMMER?
Can something be said w.r.t XIP [2]?

I guess HAMMER volume still cannot be shrunk,
nor can it deduplicate.

[1] http://en.wikipedia.org/wiki/Comparison_of_file_systems
[2] http://en.wikipedia.org/wiki/Execute_in_place
-- 
wbr,|\  _,,,---,,_   dog bless ya!
`   Zzz /,`.-'`'-.  ;-;;,_
McLone at GMail dot com|,4-  ) )-,_. ,\ (  `'-'
  net- and *BSD admin '---''(_/--'  `-'\_)   ...translit rawx!


snapshots 0d 0d but cleanup does not prune everything on pfs - neither does 'prune-everything'

2010-05-18 Thread Siju George
Hi,

The man page says

" If the snapshots directive has a period of 0 and a retention time
  of 0 then snapshot generation is disabled, removal of old snap-
  shots are disabled, and prunes will use prune-everything."

This is what i observer so far but today I just observer this

 > hammer pfs-status /home/sgeorge
/home/sgeorge   PFS #8 {
sync-beg-tid=0x0001
sync-end-tid=0x000109b12860
shared-uuid=16d09899-6173-11df-a5b3-01138fad54f5
unique-uuid=16d098c0-6173-11df-a5b3-01138fad54f5
label=""
prune-min=00:00:00
operating as a MASTER
snapshots directory defaults to /var/hammer/
}
> hammer config /home/sgeorge
# No configuration present, here are some defaults
# you can uncomment.  Also remove these instructions
#
snapshots 0d 0d
prune 1m 5m
rebalance 1d 5m
reblock   1d 5m
recopy30d 10m
> date
Tue May 18 08:37:25 IST 2010
> uname -a
DragonFly dfly-x86.hifxnx.local 2.7-DEVELOPMENT DragonFly
v2.7.3.42.gc0a279-DEVELOPMENT #22: Mon May 17 03:34:43 UTC 2010
r...@avalon.theshell.com:/usr/obj/usr/src/sys/GENERIC  i386
> sudo hammer cleanup /home/sgeorge
cleanup /home/sgeorge- handle PFS #8 using /var/hammer/home/sgeorge
   snapshots - disabled
   prune - run
   rebalance - skip
 reblock - skip
  recopy - skip
> undo -i /home/sgeorge
/home/sgeorge: ITERATE ENTIRE HISTORY
0x00010522d7b0 17-May-2010 11:04:21 file-deleted
0x000105a17220 17-May-2010 11:40:37
0x00010727b1a0 17-May-2010 11:52:31
0x00010727b1c0 17-May-2010 11:52:31
0x000107771c20 18-May-2010 04:55:35
0x000107994610 18-May-2010 05:23:18
0x000109a333d0 18-May-2010 07:32:39
>
> sudo hammer prune-everything /home/sgeorge
Prune /home/sgeorge/: EVERYTHING
Prune /home/sgeorge/: objspace 8000:
7fff: pfs_id 8
Prune /home/sgeorge/: prune_min is 0d/00:00:00
Prune /home/sgeorge/ succeeded
Pruned 100/12544 records (29 directory entries) and 0 bytes
> undo -i /home/sgeorge
/home/sgeorge: ITERATE ENTIRE HISTORY
0x00010522d7b0 17-May-2010 11:04:21 file-deleted
0x000105a17220 17-May-2010 11:40:37
0x00010727b1a0 17-May-2010 11:52:31
0x00010727b1c0 17-May-2010 11:52:31
0x000107771c20 18-May-2010 04:55:35
0x000107994610 18-May-2010 05:23:18
0x000109a333d0 18-May-2010 07:32:39

Why is this?

Thanks :-)

--Siju