Re: CVS commit: src/lib/librumphijack

2011-03-09 Thread Christoph Egger

On 03/09/11 16:03, Antti Kantee wrote:

Module Name:src
Committed By:   pooka
Date:   Wed Mar  9 15:03:18 UTC 2011

Modified Files:
src/lib/librumphijack: hijack.c

Log Message:
Add a bunch of process-wide hijack calls.  Among other things, it's
now possible to use unmodified userspace binaries (rpcbind, mountd,
nfsd) to start a rump nfs service and mount file systems from it.

pain-rustique:42:~  mount
rumpfs on / type rumpfs (local)
10.1.1.1:/export on /mnt type nfs


Cool. Is it possible to have anita booting NetBSD in qemu
with root on nfs?

Christoph


re: CVS commit: src/sys/sys

2011-03-09 Thread matthew green

 Module Name:  src
 Committed By: pooka
 Date: Wed Mar  9 19:02:04 UTC 2011
 
 Modified Files:
   src/sys/sys: param.h
 
 Log Message:
 Bump version for new quota code -- even if ABIs didn't change, it's
 still a major feature.

we haven't done this in the past and now i have to rebuild tools and
my module dirs are out of date again.

can we please not do this again in the future?


.mrg.


Re: CVS commit: src/sys/sys

2011-03-09 Thread Antti Kantee
On Wed Mar 09 2011 at 13:45:37 -0800, Matt Thomas wrote:
 
 On Mar 9, 2011, at 1:14 PM, matthew green wrote:
 
  
  Module Name:   src
  Committed By:  pooka
  Date:  Wed Mar  9 19:02:04 UTC 2011
  
  Modified Files:
 src/sys/sys: param.h
  
  Log Message:
  Bump version for new quota code -- even if ABIs didn't change, it's
  still a major feature.
  
  we haven't done this in the past and now i have to rebuild tools and
  my module dirs are out of date again.
 
 Sigh.  param.h is not supposed to reflect features changes only ABI
 incompatibilities.

are you worried we going to run out of numbers tomorrow?

How else should one know the new quotactl is present?  running awk on
the headers?  i could understand whineage if we had the ever-elusive
stable kernel ABI, but then we'd have some other method of conveying
that information, right?

-- 
älä karot toivorikkauttas, kyl rätei ja lumpui piisaa


Re: CVS commit: src/sys/sys

2011-03-09 Thread Warner Losh

On 03/09/2011 15:01, Antti Kantee wrote:

On Wed Mar 09 2011 at 13:45:37 -0800, Matt Thomas wrote:

On Mar 9, 2011, at 1:14 PM, matthew green wrote:


Module Name:src
Committed By:   pooka
Date:   Wed Mar  9 19:02:04 UTC 2011

Modified Files:
src/sys/sys: param.h

Log Message:
Bump version for new quota code -- even if ABIs didn't change, it's
still a major feature.

we haven't done this in the past and now i have to rebuild tools and
my module dirs are out of date again.

Sigh.  param.h is not supposed to reflect features changes only ABI
incompatibilities.

are you worried we going to run out of numbers tomorrow?

How else should one know the new quotactl is present?  running awk on
the headers?  i could understand whineage if we had the ever-elusive
stable kernel ABI, but then we'd have some other method of conveying
that information, right?


You can 'piggy back' it on the next real bump.  There will be a small 
period of time where the feature is, in fact, on the system, but this 
will likely give you sufficient fidelity to know for sure.  After all, 
since this was a separate commit, the window already existed...


Warner

Warner


Re: CVS commit: src

2011-03-09 Thread Adam Hamsik

On Mar,Thursday 10 2011, at 1:10 AM, Joerg Sonnenberger wrote:

 Module Name:  src
 Committed By: joerg
 Date: Wed Mar  9 23:10:09 UTC 2011
 
 Modified Files:
   src/distrib/sets/lists/comp: mi
   src/distrib/sets/lists/tests: mi
   src/etc/mtree: NetBSD.dist.tests
   src/lib/libc: Makefile
   src/lib/libc/misc: initfini.c
   src/lib/libpthread: pthread.c pthread_int.h
   src/libexec/ld.elf_so: Makefile TODO headers.c map_object.c rtld.c
   rtld.h symbol.c
   src/rescue: list.ldd
   src/sys/sys: Makefile
   src/tests/lib/libc: Makefile
   src/usr.bin/ldd: Makefile.elf ldd.c
   src/usr.bin/ldd/elf32: Makefile
   src/usr.bin/ldd/elf64: Makefile
 Added Files:
   src/lib/libc/tls: Makefile.inc tls.c
   src/libexec/ld.elf_so: README.TLS tls.c
   src/sys/sys: tls.h
   src/tests/lib/libc/tls: Makefile t_tls_dlopen.c t_tls_dynamic.c
   t_tls_static.c t_tls_static_helper.c
   src/tests/lib/libc/tls/dso: Makefile h_tls_dlopen.c
   src/tests/lib/libc/tls_dso: Makefile h_tls_dynamic.c
 
 Log Message:
 Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
 _rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
 setup the thread private area of all new threads. ld.elf_so is
 responsible for setting up the private area for the initial thread.
 Similar functions are called from _libc_init for static binaries, using
 dl_iterate_phdr to access the ELF Program Header.
 
 Add test cases to exercise the different TLS storage models. Test cases
 are compiled and installed on all platforms, but are skipped on
 platforms not marked for TLS support.
 
 This material is based upon work partially supported by
 The NetBSD Foundation under a contract with Joerg Sonnenberger.
 
 It is inspired by the TLS support in FreeBSD by Doug Rabson and the
 clean ups of the DragonFly port of the original FreeBSD modifications.
 

Have you done any performance tests to see if it doesn't affect it ?

Regards

Adam.



Re: CVS commit: src

2011-03-09 Thread Joerg Sonnenberger
On Thu, Mar 10, 2011 at 02:16:36AM +0200, Adam Hamsik wrote:
 
 On Mar,Thursday 10 2011, at 1:10 AM, Joerg Sonnenberger wrote:
 
  Module Name:src
  Committed By:   joerg
  Date:   Wed Mar  9 23:10:09 UTC 2011
  
  Modified Files:
  src/distrib/sets/lists/comp: mi
  src/distrib/sets/lists/tests: mi
  src/etc/mtree: NetBSD.dist.tests
  src/lib/libc: Makefile
  src/lib/libc/misc: initfini.c
  src/lib/libpthread: pthread.c pthread_int.h
  src/libexec/ld.elf_so: Makefile TODO headers.c map_object.c rtld.c
  rtld.h symbol.c
  src/rescue: list.ldd
  src/sys/sys: Makefile
  src/tests/lib/libc: Makefile
  src/usr.bin/ldd: Makefile.elf ldd.c
  src/usr.bin/ldd/elf32: Makefile
  src/usr.bin/ldd/elf64: Makefile
  Added Files:
  src/lib/libc/tls: Makefile.inc tls.c
  src/libexec/ld.elf_so: README.TLS tls.c
  src/sys/sys: tls.h
  src/tests/lib/libc/tls: Makefile t_tls_dlopen.c t_tls_dynamic.c
  t_tls_static.c t_tls_static_helper.c
  src/tests/lib/libc/tls/dso: Makefile h_tls_dlopen.c
  src/tests/lib/libc/tls_dso: Makefile h_tls_dynamic.c
  
  Log Message:
  Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
  _rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
  setup the thread private area of all new threads. ld.elf_so is
  responsible for setting up the private area for the initial thread.
  Similar functions are called from _libc_init for static binaries, using
  dl_iterate_phdr to access the ELF Program Header.
  
  Add test cases to exercise the different TLS storage models. Test cases
  are compiled and installed on all platforms, but are skipped on
  platforms not marked for TLS support.
  
  This material is based upon work partially supported by
  The NetBSD Foundation under a contract with Joerg Sonnenberger.
  
  It is inspired by the TLS support in FreeBSD by Doug Rabson and the
  clean ups of the DragonFly port of the original FreeBSD modifications.
  
 
 Have you done any performance tests to see if it doesn't affect it ?

No. Feel free to do any.

Joerg