pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


simple-nfs patch 1.1
Posted by Anonymous on Sat 13th Jan 2024 02:37
raw | new post

  1. diff --git a/pom.xml b/pom.xml
  2. index 6d4517b..2c346b9 100644
  3. --- a/pom.xml
  4. +++ b/pom.xml
  5. @@ -4,7 +4,7 @@
  6.  
  7.      <groupId>org.dcache</groupId>
  8.      <artifactId>simple-nfs</artifactId>
  9. -    <version>1.0-SNAPSHOT</version>
  10. +    <version>1.1-SNAPSHOT</version>
  11.  
  12.      <name>Simple nfs server</name>
  13.      <url>http://www.dcache.org/</url>
  14. @@ -65,7 +65,7 @@
  15.          <dependency>
  16.              <groupId>org.dcache</groupId>
  17.              <artifactId>nfs4j-core</artifactId>
  18. -            <version>0.23.0</version>
  19. +            <version>0.25.0</version>
  20.          </dependency>
  21.          <dependency>
  22.              <groupId>org.slf4j</groupId>
  23. diff --git a/src/main/java/org/dcache/simplenfs/LocalFileSystem.java b/src/main/java/org/dcache/simplenfs/LocalFileSystem.java
  24. index 82fcf33..af56d6b 100644
  25. --- a/src/main/java/org/dcache/simplenfs/LocalFileSystem.java
  26. +++ b/src/main/java/org/dcache/simplenfs/LocalFileSystem.java
  27. @@ -114,7 +114,7 @@ public class LocalFileSystem implements VirtualFileSystem {
  28.              if (inodeToPath.remove(inodeNumber) != path) {
  29.                  throw new IllegalStateException("cant map, rollback failed");
  30.              }
  31. -            throw new IllegalStateException("path ");
  32. +            throw new IllegalStateException("path='"+path+"', inodeNumber="+inodeNumber+", otherInodeNumber=" +otherInodeNumber);
  33.          }
  34.      }
  35.  
  36. diff --git a/src/main/java/org/dcache/simplenfs/SimpleNfsServer.java b/src/main/java/org/dcache/simplenfs/SimpleNfsServer.java
  37. index 0067f89..e26c72b 100644
  38. --- a/src/main/java/org/dcache/simplenfs/SimpleNfsServer.java
  39. +++ b/src/main/java/org/dcache/simplenfs/SimpleNfsServer.java
  40. @@ -65,12 +65,12 @@ public class SimpleNfsServer implements Closeable {
  41.                      .withExportTable(exportFile)
  42.                      .build();
  43.  
  44. -            NfsServerV3 nfs3 = new NfsServerV3(exportFile, vfs);
  45. +//            NfsServerV3 nfs3 = new NfsServerV3(exportFile, vfs);
  46.              MountServer mountd = new MountServer(exportFile, vfs);
  47.  
  48. -            nfsSvc.register(new OncRpcProgram(mount_prot.MOUNT_PROGRAM, mount_prot.MOUNT_V3), mountd);
  49. -            nfsSvc.register(new OncRpcProgram(mount_prot.MOUNT_PROGRAM, mount_prot.MOUNT_V1), mountd);
  50. -            nfsSvc.register(new OncRpcProgram(nfs3_prot.NFS_PROGRAM, nfs3_prot.NFS_V3), nfs3);
  51. +//            nfsSvc.register(new OncRpcProgram(mount_prot.MOUNT_PROGRAM, mount_prot.MOUNT_V3), mountd);
  52. +//            nfsSvc.register(new OncRpcProgram(mount_prot.MOUNT_PROGRAM, mount_prot.MOUNT_V1), mountd);
  53. +//            nfsSvc.register(new OncRpcProgram(nfs3_prot.NFS_PROGRAM, nfs3_prot.NFS_V3), nfs3);
  54.              nfsSvc.register(new OncRpcProgram(nfs4_prot.NFS4_PROGRAM, nfs4_prot.NFS_V4), nfs4);
  55.              nfsSvc.start();
  56.          } catch (IOException e) {

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at