Commit fde87013 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfs4: include ACE flags in toString method

Motivation:
The ACE flags are missing in the result of nfsace4#toString method and
introduce a confusion during debugging.

Modification:
include ACE flags in toString method

Result:
consistent output in logs

Acked-by: Paul Millar
Acked-by: Lea Morschel
Target: master
parent 4c7e1fec
Pipeline #10814 passed with stage
in 1 minute and 44 seconds
/*
* Copyright (c) 2009 - 2012 Deutsches Elektronen-Synchroton,
* Copyright (c) 2009 - 2021 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
......@@ -76,7 +76,23 @@ public class nfsace4 implements XdrAble {
}
sb.append(':');
// flag
if ((flag.value.value & nfs4_prot.ACE4_FILE_INHERIT_ACE) == nfs4_prot.ACE4_FILE_INHERIT_ACE) {
sb.append('f');
}
if ((flag.value.value & nfs4_prot.ACE4_DIRECTORY_INHERIT_ACE) == nfs4_prot.ACE4_DIRECTORY_INHERIT_ACE) {
sb.append('d');
}
if ((flag.value.value & nfs4_prot.ACE4_INHERIT_ONLY_ACE) == nfs4_prot.ACE4_INHERIT_ONLY_ACE) {
sb.append('i');
}
if ((flag.value.value & nfs4_prot.ACE4_IDENTIFIER_GROUP) == nfs4_prot.ACE4_IDENTIFIER_GROUP) {
sb.append('g');
}
sb.append(':');
sb.append(who);
sb.append(':');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment