- diff --git a/pom.xml b/pom.xml
- index 6d4517b..2c346b9 100644
- --- a/pom.xml
- +++ b/pom.xml
- @@ -4,7 +4,7 @@
- <groupId>org.dcache</groupId>
- <artifactId>simple-nfs</artifactId>
- - <version>1.0-SNAPSHOT</version>
- + <version>1.1-SNAPSHOT</version>
- <name>Simple nfs server</name>
- <url>http://www.dcache.org/</url>
- @@ -65,7 +65,7 @@
- <dependency>
- <groupId>org.dcache</groupId>
- <artifactId>nfs4j-core</artifactId>
- - <version>0.23.0</version>
- + <version>0.25.0</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- diff --git a/src/main/java/org/dcache/simplenfs/LocalFileSystem.java b/src/main/java/org/dcache/simplenfs/LocalFileSystem.java
- index 82fcf33..af56d6b 100644
- --- a/src/main/java/org/dcache/simplenfs/LocalFileSystem.java
- +++ b/src/main/java/org/dcache/simplenfs/LocalFileSystem.java
- @@ -114,7 +114,7 @@ public class LocalFileSystem implements VirtualFileSystem {
- if (inodeToPath.remove(inodeNumber) != path) {
- throw new IllegalStateException("cant map, rollback failed");
- }
- - throw new IllegalStateException("path ");
- + throw new IllegalStateException("path='"+path+"', inodeNumber="+inodeNumber+", otherInodeNumber=" +otherInodeNumber);
- }
- }
- diff --git a/src/main/java/org/dcache/simplenfs/SimpleNfsServer.java b/src/main/java/org/dcache/simplenfs/SimpleNfsServer.java
- index 0067f89..e26c72b 100644
- --- a/src/main/java/org/dcache/simplenfs/SimpleNfsServer.java
- +++ b/src/main/java/org/dcache/simplenfs/SimpleNfsServer.java
- @@ -65,12 +65,12 @@ public class SimpleNfsServer implements Closeable {
- .withExportTable(exportFile)
- .build();
- - NfsServerV3 nfs3 = new NfsServerV3(exportFile, vfs);
- +// NfsServerV3 nfs3 = new NfsServerV3(exportFile, vfs);
- MountServer mountd = new MountServer(exportFile, vfs);
- - nfsSvc.register(new OncRpcProgram(mount_prot.MOUNT_PROGRAM, mount_prot.MOUNT_V3), mountd);
- - nfsSvc.register(new OncRpcProgram(mount_prot.MOUNT_PROGRAM, mount_prot.MOUNT_V1), mountd);
- - nfsSvc.register(new OncRpcProgram(nfs3_prot.NFS_PROGRAM, nfs3_prot.NFS_V3), nfs3);
- +// nfsSvc.register(new OncRpcProgram(mount_prot.MOUNT_PROGRAM, mount_prot.MOUNT_V3), mountd);
- +// nfsSvc.register(new OncRpcProgram(mount_prot.MOUNT_PROGRAM, mount_prot.MOUNT_V1), mountd);
- +// nfsSvc.register(new OncRpcProgram(nfs3_prot.NFS_PROGRAM, nfs3_prot.NFS_V3), nfs3);
- nfsSvc.register(new OncRpcProgram(nfs4_prot.NFS4_PROGRAM, nfs4_prot.NFS_V4), nfs4);
- nfsSvc.start();
- } catch (IOException e) {
simple-nfs patch 1.1
Posted by Anonymous on Sat 13th Jan 2024 02:37
raw | new post
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.