Skip to content

Commit

Permalink
TRITON-2137 expunge v8plus users (#38)
Browse files Browse the repository at this point in the history
Reviewed by: Tim Foster <tim.foster@joyent.com>
  • Loading branch information
John Levon committed Jun 5, 2020
1 parent 2ed43b9 commit 9d8a60c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 511 deletions.
6 changes: 1 addition & 5 deletions tools/buildimage/lib/imgadm/README.md
Expand Up @@ -3,20 +3,16 @@ smartos-live@c6f5e9955adbc45688074ab1b8cac5d340262c56

The following modifications were made:
- we should allow running from a non-global zone
- we should not use platform node.js modules
(locker.js and zfs.js, mentioned below)
- we should not use platform node.js modules like zfs.js
- we should allow the caller to set the default zpool name
- we should allow the use of 'pigz' if it exists to
create .gz files, falling back to 'gzip' otherwise
- we should attempt to locate a delegated dataset within
this instance.

A recursive diff of the changes are available in imgadm.patch

The files from smartos-live.git duplicated in this directory are:

smartos-live.git:src/img
smartos-live.git:src/node_modules/locker.js
smartos-live.git:src/node_modules/zfs.js

package.json for this copy of imgadm differs from the smartos-live.git
Expand Down
305 changes: 0 additions & 305 deletions tools/buildimage/lib/imgadm/imgadm.patch

This file was deleted.

4 changes: 2 additions & 2 deletions tools/buildimage/lib/imgadm/lib/imgadm.js
Expand Up @@ -52,7 +52,7 @@ var fs = require('fs');
var genUuid = require('node-uuid');
var imgapi = require('sdc-clients/lib/imgapi');
var imgmanifest = require('imgmanifest');
var lock = require('./locker.js').lock;
var qlocker = require('qlocker');
var mkdirp = require('mkdirp');
var once = require('once');
var path = require('path');
Expand Down Expand Up @@ -2105,7 +2105,7 @@ IMGADM.prototype._lockAcquire = function _lockAcquire(opts, cb) {
var lockPath = self._lockPathFromUuid(uuid);
log.debug({uuid: uuid, lockPath: lockPath}, 'acquiring lock');

lock(lockPath, function (lockErr, unlockFn) {
qlocker.lock(lockPath, function (lockErr, unlockFn) {
if (acquireLogTimeout) {
clearTimeout(acquireLogTimeout);
}
Expand Down

0 comments on commit 9d8a60c

Please sign in to comment.