public NodePath(Path path, Environment environment) throws IOException {
   this.path = path;
   this.indicesPath = path.resolve(INDICES_FOLDER);
   this.fileStore = environment.getFileStore(path);
   if (fileStore.supportsFileAttributeView("lucene")) {
     this.spins = (Boolean) fileStore.getAttribute("lucene:spins");
   } else {
     this.spins = null;
   }
 }
 public NodePath(Path path) throws IOException {
   this.path = path;
   this.indicesPath = path.resolve(INDICES_FOLDER);
   this.fileStore = Environment.getFileStore(path);
   if (fileStore.supportsFileAttributeView("lucene")) {
     this.spins = (Boolean) fileStore.getAttribute("lucene:spins");
     this.majorDeviceNumber = (int) fileStore.getAttribute("lucene:major_device_number");
     this.minorDeviceNumber = (int) fileStore.getAttribute("lucene:minor_device_number");
   } else {
     this.spins = null;
     this.majorDeviceNumber = -1;
     this.minorDeviceNumber = -1;
   }
 }