Fix MNAMELEN or reimplement struct statfs

2013-06-08 Thread Dirk Engling
The arbitrary value #define MNAMELEN88 /* size of on/from name bufs */ struct statfs { [...] charf_mntfromname[MNAMELEN];/* mounted filesystem */ charf_mntonname[MNAMELEN]; /* directory on which mounted */ }; currently bites us when trying to use pou

Re: FreeBSD installers and future direction

2013-05-26 Thread Dirk Engling
On 26.05.13 05:42, Teske, Devin wrote: > I chose 100% sh for bsdconfig because of a few good reasons… First, the partedit tool makes heavy use of libgeom and the structs returned from that lib, so I've rather wondered why for some parts C was preferred, and not the other way around. Still, thank

Re: FreeBSD installers and future direction

2013-05-26 Thread Dirk Engling
On 26.05.13 04:51, Super Bisquit wrote: > Please don't turn this into an architecture dependent mess. PCBSD is > i386 & AMD64 only. Read my email thoroughly and notice that I never seriously considered using pc-sysinstall after looking into it. Don't worry. erdgeist

Re: FreeBSD installers and future direction

2013-05-25 Thread Dirk Engling
On 26.05.13 01:07, Nathan Whitehorn wrote: > I'm not aware of any movement there (on either side of the table). I'd > personally be very suspicious of an all-sh(1) future -- by far the > cleanest parts of bsdinstall are in C -- and this is especially true for > interacting with geom. That said, si

Re: Managing userland data pointers in kqueue/kevent

2013-05-18 Thread Dirk Engling
On 13.05.13 11:19, Eugen-Andrei Gavriloaie wrote: > Regardless, it has all the ingredients for memory leaks and/or, the > worst one, use of corpse pointers which are bound to crash the app. I I earlier pointed out other things that prevent me from using kqueue as a proper storage for user land po

Re: pop filters from kqueue

2013-03-07 Thread Dirk Engling
On 05.03.13 17:53, Alfred Perlstein wrote: Alfred, > I'm not sure if kqueue support this, however adding such a facility > might be OK. thanks for your reply. What would be the correct place to suggest such a change? > The only pain here is that it requires managing a doubly linked list and > a

pop filters from kqueue

2013-03-05 Thread Dirk Engling
Dear fellow FreeBSD hackers, while writing a daemon that uses a kqueue to keep track of forked processes and pipes to userland client code etc, I noticed a lack of features to implement a proper shutdown without holding data redundantly. When my daemon quits, I can not ask the kqueue for my i

Detecting listening servers in multi-ip jails

2011-02-15 Thread Dirk Engling
Hello, until jails could be bound to several ip addresses, my convenience feature in ezjail to check for and warn about listening services in the host system and other jails worked simply by asking: listeners_ip=`sockstat -4 -l | grep "${ip}:[[:digit:]]"` listeners_all=`sockstat -4 -l | grep "*:[

Re: rc.d/jail issues

2011-01-27 Thread Dirk Engling
On Thu, 27 Jan 2011, Jamie Gritton wrote: That's where it's headed. I've been slow on progress lately, but I'm working on a jail(8) that takes a config file instead of rc shell variables, and takes care of dependency issues among other things. Looks like I completely missed the discussion tha

Re: rc.d/jail issues

2011-01-27 Thread Dirk Engling
On Thu, 27 Jan 2011, Paul Schenkeveld wrote: like to start A before B but shutdown B before A. Would it make sense to reverse the order in which jails are stopped during shutdown by reversing the nales in $jail_list? Yikes, it does indeed make sense, that's why I already do it in the ezjail

Re: disassembler

2010-08-26 Thread Dirk Engling
On 27.08.10 04:17, Aryeh Friedman wrote: > Is there a disassembler in the base system if not what is a good > option from ports? Try objdump -d, erdgeist ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-h

RE: How to slow down SATA to 1.5 GBit/s ?

2010-03-12 Thread Dirk Engling
Sent from my HTC ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Jails, loopback interfaces and sendmail

2009-06-04 Thread Dirk Engling
Dear fellow hackers, since jail can be bound on multiple IP addresses I tend to clone multiple loopback interfaces and add one loopback address to each jail cloned_interfaces="lo1 lo2 lo3" ifconfig_lo1_alias0="inet 127.0.0.2 netmask 0x" ifconfig_lo2_alias0="inet 127.0.0.3 netmask 0xff

Re: Phantom Jails

2006-11-17 Thread Dirk Engling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bjoern A. Zeeb wrote: > while this works you can also reproduce it if you log out of the jail > wait for the sockets to go away entirely and then stop the jail > because what keeps the jail up is not a socket but is related to devfs > and ?tys. > > h

Phantom Jails

2006-11-16 Thread Dirk Engling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rumors went around and tales were told about jails magically booing around in prison list, even after they deceased. Most people consider this a rather aesthetical issue, however if you run your jails from directories that need to be unmounted (e.g. f

Re: jails, cron and sendmail

2006-08-27 Thread Dirk Engling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Meyer wrote: > That's just a default. You can can change it by adding > cron_enable="NO" to /etc/rc.conf in each jail. So maybe the question > should be "Why haven't your turned off cron in the jails?" Because the system uses cron to start its p

Re: jails, cron and sendmail

2006-08-27 Thread Dirk Engling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregory Shapiro wrote: > Unfortunately, in jails, localhost gets remapped to the jail IP > address and therefore, he is correct, it is accepting connections > from the outside world. This is one thing that I would love to > see fixed in jails. There

Re: jails, cron and sendmail

2006-08-26 Thread Dirk Engling
On Sat, 26 Aug 2006, Mike Meyer wrote: Except some of the things run from cron want to send mail all on their own, so fixing cron won't solve your problem. Why are you running cron inside the jails at all? Are you letting your users run it? If not, can you disable it, and instead run scripts f

jails, cron and sendmail

2006-08-26 Thread Dirk Engling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have the following problem: since I need and do not like any kind of smtp activity in my jails (there's no 127.0.0.1 in a jail, all services listen to the jails external interface), I put those lines into my /etc/rc.conf: sendmail_enable="NO

Re: A handy utility (at least for me)

2006-08-26 Thread Dirk Engling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roman Kurakin wrote: > A bit rude, but also works > > cd /usr/ports && make clean This one takes ages, every port is being cleaned which in turn cleans every dependency, so low level ports will be "make clean"ed thousand times. Better would be for

Re: A handy utility (at least for me)

2006-08-26 Thread Dirk Engling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick C. Petty wrote: > On Sat, Aug 26, 2006 at 07:19:06PM -0300, Mario Lobo wrote: >> My /usr/ports directory was occuping 24 gigs, of which 20 was just from the >> 'work' directories ! >> >> Removing them one by one was a pain so I wrote this little

Rebooting jails

2006-07-24 Thread Dirk Engling
Hello, I'm currently looking for a standardized way to 'reboot' jails from within. 'shutdown' is a simple one, just issue 'kill -TERM -1' and you're done. Now, rebooting generally involves starting up the jail afterwards. One way that works from a shell started via jexec would be to 'kill

Re: Strange keyboard (viral?) behaviour

2006-06-12 Thread Dirk Engling
On Mon, 12 Jun 2006, Philip Lykke Carlsen wrote: Around yesterday my computer suddenly stared acting really strange :s It started typing on its own. and it seemed to be typing things that I had been typing over GAIM a week or so ago, complete with typo's beeing corrected the same way that i had

Re: dump(8) performance

2006-05-31 Thread Dirk Engling
On Wed, 31 May 2006, Eugene M. Kim wrote: read throughput was exactly twice as high as the tape write throughput, throughout the entire dump phases 4 and 5, i.e. dumping actual inodes. Disappointing, because the tape drive utilization (%busy) was lingering around 35%-50% for most of the time; I

Re: tuning to run large (1000+) numbers of null_mounts

2006-01-18 Thread Dirk Engling
On Wed, 18 Jan 2006, Devon H. O'Dell wrote: This has been removed from the manpage because it's no longer accurate. I believe I recall seeing another thread with someone asking whether it still applied and the answer was, ``No.'' On a test installation I am running > 100 Jails with around 200

Re: Using pkg_add fetch only

2006-01-07 Thread Dirk Engling
On Sat, 7 Jan 2006, Ceri Davies wrote: Two stage process. In chroot(), pkg_add -r portupgrade, then pkg_fetch -R the stuff you want. Once you're done you can just blow away the chroot environment and all the installed stuff. So I win nothing besides having to set up a complicated three-stag

Re: Using pkg_add fetch only

2006-01-06 Thread Dirk Engling
On Fri, 6 Jan 2006, Ceri Davies wrote: I don't see your point. I thought you just wanted to download the packages and dependencies. Yes. pkg_add on the other hand leaves me with loads of _installed_ packages but without the package tars from the server. erdgeist

Re: Using pkg_add fetch only

2006-01-06 Thread Dirk Engling
On Fri, 6 Jan 2006, John Baldwin wrote: I use a shell script that downloads a package with fetch, extracts +CONTENTS to a temporary directory and parses it for dependencies, then downloads any missing dependencies and adds them. This sounds like the most reasonable solution. I can't assume th

Re: Using pkg_add fetch only

2006-01-06 Thread Dirk Engling
On Fri, 6 Jan 2006, Ceri Davies wrote: The package cluster uses chroot() for this. Sure, but some post install scripts better run inside the running jail, those script will do stuff like creating users and installing files with user ids that are not even there in the host system. Thanks a

Re: Using pkg_add fetch only

2006-01-06 Thread Dirk Engling
On Fri, 6 Jan 2006, Matt Emmerton wrote: What about pkg_fetch -R? This command is not in the base system. Since there is some logic in pkg_add for resolving dependencies and fetching packages I hoped, there might be some easy way not involving additional dependencies. But thanks for the h

Using pkg_add fetch only

2006-01-06 Thread Dirk Engling
Good evening, I'm writing on the ezjail project and want to be able to use the easy interface of pkg_add to fetch packages recursively. This is _fetch_, not install them, since installation is expected to happen at a later stage when starting up lots of jails each being identical. Clearly