1. 02 Jun, 2014 1 commit
  2. 09 May, 2014 1 commit
    • Mike Hibler's avatar
      Change to use only geom and GPTs for FBSD 10 and above. · 0639a119
      Mike Hibler authored
      As of FreeBSD 10, I am tired of fighting the old MBR tools.
      So for whole disks (slice == 0) we are going to use GPT so that we
      can get good (1M) alignment and potentially big-ass partitions with
      a minimum of fuss.
      
      This means that you cannot image those partitions since imagezip
      does not yet (as of 05/2014) understand GPT. But we have no mechanism
      for capturing an image from anything but the system disk anyway, so
      we can live with this until GPT support is added.
      0639a119
  3. 05 May, 2014 1 commit
    • Mike Hibler's avatar
      Fix the "dark magic" used to overwrite an existing partition. · 24cb6595
      Mike Hibler authored
      The old way worked...sorta. When we deleted the old partition and then
      recreated it with gpart, it would create the new one at the end of the
      disk, not likely where the old partition was previously.
      
      In elabinelab setup the combo:
      
         mkextrafs -s 2 ... /usr/testbed
         mkextrafs -s 4 ... /q
      
      resulted in slice 2 getting created at the end of the disk (where slice 4
      would normally be) and then slice 4 getting created in the only remaining
      available space (where slice 2 would normally be). Very confusing to my
      Monday morning brain...
      24cb6595
  4. 24 Sep, 2012 1 commit
    • Eric Eide's avatar
      Replace license symbols with {{{ }}}-enclosed license blocks. · 6df609a9
      Eric Eide authored
      This commit is intended to makes the license status of Emulab and
      ProtoGENI source files more clear.  It replaces license symbols like
      "EMULAB-COPYRIGHT" and "GENIPUBLIC-COPYRIGHT" with {{{ }}}-delimited
      blocks that contain actual license statements.
      
      This change was driven by the fact that today, most people acquire and
      track Emulab and ProtoGENI sources via git.
      
      Before the Emulab source code was kept in git, the Flux Research Group
      at the University of Utah would roll distributions by making tar
      files.  As part of that process, the Flux Group would replace the
      license symbols in the source files with actual license statements.
      
      When the Flux Group moved to git, people outside of the group started
      to see the source files with the "unexpanded" symbols.  This meant
      that people acquired source files without actual license statements in
      them.  All the relevant files had Utah *copyright* statements in them,
      but without the expanded *license* statements, the licensing status of
      the source files was unclear.
      
      This commit is intended to clear up that confusion.
      
      Most Utah-copyrighted files in the Emulab source tree are distributed
      under the terms of the Affero GNU General Public License, version 3
      (AGPLv3).
      
      Most Utah-copyrighted files related to ProtoGENI are distributed under
      the terms of the GENI Public License, which is a BSD-like open-source
      license.
      
      Some Utah-copyrighted files in the Emulab source tree are distributed
      under the terms of the GNU Lesser General Public License, version 2.1
      (LGPL).
      6df609a9
  5. 14 Aug, 2012 1 commit
  6. 04 Jun, 2012 1 commit
  7. 23 Feb, 2012 1 commit
  8. 17 Jan, 2012 1 commit
  9. 06 Jan, 2012 1 commit
    • Mike Hibler's avatar
      Work around a side-effect of the GEOM gpart command. · 6000f0a3
      Mike Hibler authored
      If we are in the GEOM world (FBSD8+) and we do not find the 4th partition
      it may be because a previous gpart call noticed the unused partition
      and deleted it. This happens in elabinelab where we first repurpose
      the second (Linux) partition.
      
      If this happens, we just try re-creating the 4th partition. gpart
      will "do the right thing" in terms of offset and size.
      6000f0a3
  10. 10 Aug, 2011 1 commit
  11. 21 Jul, 2011 1 commit
  12. 01 Feb, 2011 1 commit
    • Mike Hibler's avatar
      Implement limited backward compatibility with the old frisbee setup. · 1017ccce
      Mike Hibler authored
      The big backward compatibility issue is that we no longer store running
      frisbeed info in the DB.  This means that loadinfo could not return
      address:port info to clients and thus old frisbee MFSes could no longer
      work.  While not a show stopper to require people to update their MFS first,
      I made a token effort to implement backward compat as follows.
      
      When an old frisbee MFS does "tmcc loadinfo" (as identified by a tmcd
      version < 33), tmcd will invoke "frisbeehelper" to startup a daemon.
      Sound like frisbeelauncher?  Well sorta, but vastly simplified and I only
      want this to be temporary.  The helper just uses the frisbee client to make
      a "proxy" request to the localhost master server.  The Emulab configuration
      of the master server now allows requests from localhost to proxy for another
      node.
      
      frisbeehelper is also used by webfrisbeekiller to kill a running daemon
      (yes, just like frisbeelauncher).  It makes a proxy status request on
      localhost and uses the returned info to identify the particular instance
      and kill it.
      1017ccce
  13. 04 Jan, 2011 1 commit
  14. 05 Oct, 2010 1 commit
  15. 24 Feb, 2010 2 commits
    • Mike Hibler's avatar
      Add -2 option to mkextrafs · 19428e4f
      Mike Hibler authored
      This option will create 2 BSD partitions but only mount one of them.
      The second (smaller) partition created is solely for the benefit of
      elabinelab to create a /share FS in (I have usurpted the partition that
      /share formerly occupied).
      19428e4f
    • Mike Hibler's avatar
      Major mkextrafs whackage for FreeBSD. · f6c71abf
      Mike Hibler authored
      Change mkextrafs so that we can create a filessytem on the second disk.
      The command line option was always there, it just didn't work.
      
      Added -l option to make it print out "available" partitions that you could
      put a filesystem on.  This uses the new os_find_freedisk() function which
      was inspired by Dave's Linux libvnode routine to locate unused space.
      In fact, that latter function should get moved up to linux/liblocsetup.pm
      and the Linux mkextrafs updated to support -l.
      f6c71abf
  16. 14 Dec, 2007 1 commit
  17. 28 Aug, 2007 1 commit
  18. 18 May, 2005 1 commit
  19. 11 May, 2005 1 commit
    • Mike Hibler's avatar
      Gawd awful hack to compensate for FreeBSD disklabel/MBR code being able to · 29d239e5
      Mike Hibler authored
      agree on how big a disk is.  See the comment added for details.
      
      I don't consider this a "critical fix" for others at the moment because the
      problem only manifests itself if you load a disk using the FreeBSD 5 MFS
      which only we have and the fix didn't get enough testing before the release
      went out.
      29d239e5
  20. 21 Oct, 2004 1 commit
  21. 23 Sep, 2004 1 commit
  22. 20 May, 2004 1 commit
  23. 20 Mar, 2004 1 commit
  24. 15 Mar, 2004 1 commit
  25. 17 Feb, 2004 1 commit
    • Leigh B. Stoller's avatar
      Medium size cleanup of the client side code. The main impetus behind · 069dc7d3
      Leigh B. Stoller authored
      this was to add soft reconfig support so that nodes could be
      reconfigured without having to reboot them. This appears to work, and
      has been tested with jails getting moved around. I've also tested the
      new code on the MFS, but still no testing has been done on PLAB nodes.
      
      The main change is that most of the code moved out of libsetup.pm, and
      was split into constituent rc scripts, each of which does its own
      thing, including cleaning up and preparing for making an image. Most
      of that central knowledge has been moved out into the scripts. Still more
      to do but this was a good start.
      069dc7d3
  26. 24 Jul, 2003 1 commit
  27. 10 Jan, 2003 1 commit
    • Leigh B. Stoller's avatar
      A rather odd script to construct a usable filesystem from the 4 · 6f0abd84
      Leigh B. Stoller authored
      partition. Does the usual fdisk, disklabel, disklabel edit, newfs,
      mount, and fstab edit. Right now called from bootvnodes to make up a
      giant /var/emulab/jails whenever jailed nodes are used. This script
      requires a fair amount of error checking to be added before it could
      be considered generally safe for users.
      6f0abd84