IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39695


Ignore:
Timestamp:
Sep 13, 2016, 4:22:58 PM (10 years ago)
Author:
watersc1
Message:

Update to nebdiskd and neb-voladm to support the concept that if volume.xattr = 5 (somewhat arbitrarily chosen), then the host is not checked for size, as this indicates a permanently unavailable volume.

Location:
trunk/Nebulous-Server/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/bin/neb-voladm

    r34800 r39695  
    6868        if (defined $allocate and $allocate !~ m/^[01]$/)
    6969        or (defined $available and $available !~ m/^[01]$/)
    70         or (defined $xattr and $xattr !~ m/^[0123]$/);
     70        or (defined $xattr and $xattr !~ m/^[01235]$/);
    7171}
    7272
  • trunk/Nebulous-Server/bin/nebdiskd

    r35130 r39695  
    198198            # there may be multiple vol_ids per mountpoint but we only need to
    199199            # check each mountpoint once
    200             my $query = $dbh->prepare_cached("SELECT DISTINCT host, mountpoint FROM volume");
     200            my $query = $dbh->prepare_cached("SELECT DISTINCT host, mountpoint FROM volume WHERE xattr != 5");
    201201            $query->execute;
    202202            while (my $row = $query->fetchrow_hashref) {
Note: See TracChangeset for help on using the changeset viewer.