Skip to content

Commit

Permalink
nfs: add v4.2 operation numbers
Browse files Browse the repository at this point in the history
Add constants to match operation numbers defined in nfsv4.2 (rfc7862).

Target: master
Acked-by; Paul Millar
  • Loading branch information
kofemann committed Jun 22, 2018
1 parent 3c7164a commit 6c295d6
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion core/src/main/java/org/dcache/nfs/v4/xdr/nfs_opnum4.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009 - 2015 Deutsches Elektronen-Synchroton,
* Copyright (c) 2009 - 2018 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -80,6 +80,19 @@ public final class nfs_opnum4 {
public static final int OP_WANT_DELEGATION = 56;
public static final int OP_DESTROY_CLIENTID = 57;
public static final int OP_RECLAIM_COMPLETE = 58;
public static final int OP_ALLOCATE = 59;
public static final int OP_COPY = 60;
public static final int OP_COPY_NOTIFY = 61;
public static final int OP_DEALLOCATE = 62;
public static final int OP_IO_ADVISE = 63;
public static final int OP_LAYOUTERROR = 64;
public static final int OP_LAYOUTSTATS = 65;
public static final int OP_OFFLOAD_CANCEL = 66;
public static final int OP_OFFLOAD_STATUS = 67;
public static final int OP_READ_PLUS = 68;
public static final int OP_SEEK = 69;
public static final int OP_WRITE_SAME = 70;
public static final int OP_CLONE = 71;
public static final int OP_ILLEGAL = 10044;

private nfs_opnum4() {
Expand Down Expand Up @@ -200,6 +213,32 @@ public static String toString(int opnum) {
return "DESTROY_CLIENTID";
case nfs_opnum4.OP_RECLAIM_COMPLETE:
return "RECLAIM_COMPLETE";
case nfs_opnum4.OP_ALLOCATE:
return "ALLOCATE";
case nfs_opnum4.OP_COPY:
return "COPY";
case nfs_opnum4.OP_COPY_NOTIFY:
return "COPY_NOTIFY";
case nfs_opnum4.OP_DEALLOCATE:
return "DEALLOCATE";
case nfs_opnum4.OP_IO_ADVISE:
return "IO_ADVISE";
case nfs_opnum4.OP_LAYOUTERROR:
return "LAYOUTERROR";
case nfs_opnum4.OP_LAYOUTSTATS:
return "LAYOUTSTATS";
case nfs_opnum4.OP_OFFLOAD_CANCEL:
return "OFFLOAD_CANCEL";
case nfs_opnum4.OP_OFFLOAD_STATUS:
return "OFFLOAD_STATUS";
case nfs_opnum4.OP_READ_PLUS:
return "READ_PLUS";
case nfs_opnum4.OP_SEEK:
return "SEEK";
case nfs_opnum4.OP_WRITE_SAME:
return "WRITE_SAME";
case nfs_opnum4.OP_CLONE:
return "CLONE";
case nfs_opnum4.OP_ILLEGAL:
return "ILLEGAL";
default:
Expand Down

0 comments on commit 6c295d6

Please sign in to comment.