notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
non port: Tools/portbuild/scripts/claim-chroot
SVNWeb

Number of commits found: 15

Sun, 24 Apr 2011
[ 16:37 flz search for other commits by this committer ] Original commit  (Only the first 10 of 72 ports in this commit are shown above. View all ports for this commit)
Remove portbuild scripts from pcvs, as they now live in svn/projects.
Wed, 1 Dec 2010
[ 02:27 linimon search for other commits by this committer ] Original commit 
Although I was going to try to avoid it, it turns out that it is
impossble to have merely "server.conf" and "client.conf" control
everything on a head node.  Some pieces must be refactored into
"common.conf".
Fri, 25 Jun 2010
[ 22:49 linimon search for other commits by this committer ] Original commit  (Only the first 10 of 11 ports in this commit are shown above. View all ports for this commit)
Generalize the packge building scripts to be able to be run on more than
one 'head' node, rather than just pointyhat itself.

Constants are factored out into installation-specific files known as
portbuild/conf/server.conf and portbuild/conf/client.conf.  There is
only one server.conf file.  Individual <arch> directories may have
their own client.conf files, or may symlink to ../conf/client.conf.

This first set of files only gets the *.conf files and some cleanup.

Feature safe:   yes
Thu, 20 May 2010
[ 03:58 linimon search for other commits by this committer ] Original commit 
Improve error handling a bit.
Sat, 26 Jul 2008
[ 14:11 kris search for other commits by this committer ] Original commit 
* Cleanup
* Catch up to build ID directory changes
* Improved support for ZFS builds
* Improved robustness
* Report status verbosely to the caller; whether we succeeded in claiming
  a chroot, whether the caller needs to first set up the client, or
  whether a setup is in progress.
* If we discover that the client has not been set up either because it
  freshly booted and newfs'ed its filesystem, or because a particular
  build has not yet been encountered, atomically claim a cookie and
  report this to the caller to act on
Sun, 29 Jul 2007
[ 20:27 kris search for other commits by this committer ] Original commit 
Support builds using zfs and tmpfs backing store

zfs:

* Enabled by use_zfs=1 in portbuild.conf

* Populate build chroots by cloning a zfs snapshot instead of maintaining
  many duplicate copies.  In principle this is very efficient since
  everything is copy-on-write and zfs snapshot creation is almost
  instantaneous.  There might be additional overheads from building on zfs
  though.  Currently the snapshot base is hard-wired to y/${branch}@base
  but should be parametrized.  This also must be populated beforehand, e.g.
  during machine startup

* Clean build chroots by just destroying the snapshot.

tmpfs:

* Enabled by use_tmpfs=1 and tmpfs_size in portbuild.conf

* The previous md strategy of mounting in used/, populating and then
  remounting (to avoid possible races from multiple builds claiming the
  same chroot) doesn't work here because tmpfs instances are destroyed at
  umount.  I am not entirely sure the simpler approach is free from races.
Thu, 14 Sep 2006
[ 05:13 kris search for other commits by this committer ] Original commit 
Silence the clean-chroot invocation
Mon, 3 Apr 2006
[ 04:40 kris search for other commits by this committer ] Original commit 
The squid rc.d script no longer has the .sh suffix
Mon, 13 Mar 2006
[ 03:04 kris search for other commits by this committer ] Original commit 
Mount the md image async here too

Approved by:    portmgr (implicit)
Wed, 15 Feb 2006
[ 07:42 kris search for other commits by this committer ] Original commit 
Add some sanity checking of the build environment:

* Test whether squid is running.  If not, try to kick off
  the rc script in the background in case it can be restarted
  cleanly.

* Test for at least 100MB of free space on the scratch partition.

If either condition fails, set an exception flag and bail out.  This
will be reported back to the server via reportload.
Fri, 3 Feb 2006
[ 20:07 kris search for other commits by this committer ] Original commit 
Also look for chroots that are marked 'dirty' (previous build left chroot
in unclean state) and run clean-chroot on them to remove them.
Sun, 11 Dec 2005
[ 04:31 kris search for other commits by this committer ] Original commit 
Mount the md image async since this gives much better performance
Tue, 11 Oct 2005
[ 03:52 kris search for other commits by this committer ] Original commit 
Add support for use_md_swap.  When this variable is set in a
portbuild.conf, builds will each be done in a separate swap-backed md.
This dramatically improves build performance since

* Every transaction is not written to disk, so disk bandwidth is not
  a bottleneck

* Multiple builds do not contend with each other for the same set of
  filesystem locks and other per-device resources

The size of the md devices is controlled by the md_size variable.  '2g'
seems to be a good size.

Currently we mdconfig -u each device after each port build, since
otherwise dirty blocks accumulate and the md eventually uses a full
amount of backing store (2g in the above example).  This is a problem
if there is unsufficient swap backing to accomodate them all.

XXX This should be made configurable to avoid the performance penalty on
systems that do have enough swap backing
Sun, 24 Jul 2005
[ 20:35 kris search for other commits by this committer ] Original commit 
Correct typo
Wed, 14 Jul 2004
[ 10:44 kris search for other commits by this committer ] Original commit 
Atomically claim an unused chroot directory.  The previous algorithm
was not atomic and could have ended up with two port builds trying to use
the same chroot.  Report the claimed directory back to the caller.

Number of commits found: 15