All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v1 7/7] Add support for the NFSv4.2 POSIX draft ACL attributes
@ 2026-01-03  2:36 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-01-03  2:36 UTC (permalink / raw)
  To: oe-kbuild

:::::: 
:::::: Manual check reason: "high confidence checkpatch report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20260102232934.1560-8-rick.macklem@gmail.com>
References: <20260102232934.1560-8-rick.macklem@gmail.com>
TO: rick.macklem@gmail.com
TO: linux-nfs@vger.kernel.org

Hi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on trondmy-nfs/linux-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/rick-macklem-gmail-com/Add-entries-to-the-predefined-client-operations-enum/20260103-073239
base:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
patch link:    https://lore.kernel.org/r/20260102232934.1560-8-rick.macklem%40gmail.com
patch subject: [PATCH v1 7/7] Add support for the NFSv4.2 POSIX draft ACL attributes
:::::: branch date: 3 hours ago
:::::: commit date: 3 hours ago
reproduce: (https://download.01.org/0day-ci/archive/20260103/202601030331.kBvGIn1Z-lkp@intel.com/reproduce)

# many are suggestions rather than must-fix

ERROR:SWITCH_CASE_INDENT_LEVEL: switch and case should be at the same indent
#132: FILE: fs/nfs/nfs42proc.c:1724:
+	switch (status) {
+		case 0:
[...]
+		case -EPFNOSUPPORT:
+		case -EPROTONOSUPPORT:
[...]
+		case -ENOTSUPP:
[...]
+		default:

ERROR:SWITCH_CASE_INDENT_LEVEL: switch and case should be at the same indent
#291: FILE: fs/nfs/nfs42proc.c:1883:
+	switch (status) {
+		case 0:
[...]
+		case -EPFNOSUPPORT:
+		case -EPROTONOSUPPORT:
[...]
+		case -ENOTSUPP:

ERROR:SPACING: space required before the open parenthesis '('
#318: FILE: fs/nfs/nfs42proc.c:1910:
+		switch(type) {

ERROR:SPACING: space required before the open parenthesis '('
#403: FILE: fs/nfs/nfs42xdr.c:1832:
+	switch(tag) {

ERROR:SPACING: space required before the open parenthesis '('
#443: FILE: fs/nfs/nfs42xdr.c:1872:
+	switch(acep->e_tag) {

ERROR:SPACING: space required before the open parenthesis '('
#574: FILE: fs/nfs/nfs42xdr.c:2003:
+	switch(acep->e_tag) {

ERROR:SPACING: space required before the open parenthesis '('
#759: FILE: fs/nfs/nfs42xdr.c:2188:
+	switch(type) {

ERROR:SPACING: space required before the open parenthesis '('
#823: FILE: fs/nfs/nfs42xdr.c:2252:
+	switch(entry->e_tag) {

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [PATCH v1 0/7] Add NFSv4.2 POSIX ACL support to the client
@ 2026-01-02 23:29 rick.macklem
  2026-01-02 23:29 ` [PATCH v1 7/7] Add support for the NFSv4.2 POSIX draft ACL attributes rick.macklem
  0 siblings, 1 reply; 2+ messages in thread
From: rick.macklem @ 2026-01-02 23:29 UTC (permalink / raw)
  To: linux-nfs; +Cc: Rick Macklem

From: Rick Macklem <rmacklem@uoguelph.ca>

The Internet draft "POSIX Draft ACL support for
Network File System Version 4, Minor Version2"
https://datatracker.ietf.org/doc/draft-ietf-nfsv4-posix-acls/
describes an extension to NFSv4.2 so that POSIX
draft ACLs can get acquired and set directly,
without using the loosey NFSv4->POSIX draft mapping
algorith.  It extends the protocol with four new
attributes.

This patch series implements the client side of
this extension for the nfs client.  It is analogous
to the NFSACL protocol used as a sideband protocol
for NFSv3 and allows the ACLs to be acquired/set
be getfacl(1)/setfacl(1).

The current implementation may not handle the
"per file" scope, where individual file objects
store/use either an NFSv4 ACL or a POSIX draft ACL.
The only known file system that implements this
is IBM's GPFS, and only if the "all" option is
set for ACLs on it.  Until a server implements
this case, it will be difficult to implement
correct client semantics for this case.

The last patch is rather large, but I would
get either build failures or build warnings
when I broke it up into smaller chunks.

This patch series requires patch 0001 from
the server series to be applied first.

Rick Macklem (7):
  Add entries to the predefined client operations enum
  Add new entries for handling POSIX draft ACLs
  Make posix_acl_from_nfsacl() global
  Make three functions global and move them to acl.c
  Make nfs4_server_supports_acls() global
  Set SB_POSIXACL if the server supports the extension
  Add support for the NFSv4.2 POSIX draft ACL attributes

 fs/nfs/Makefile         |   2 +-
 fs/nfs/nfs.h            |   3 +
 fs/nfs/nfs34acl.c       |  40 +++
 fs/nfs/nfs3acl.c        |  44 +--
 fs/nfs/nfs42proc.c      | 304 +++++++++++++++++++
 fs/nfs/nfs42xdr.c       | 642 ++++++++++++++++++++++++++++++++++++++++
 fs/nfs/nfs4_fs.h        |   9 +
 fs/nfs/nfs4proc.c       |  18 +-
 fs/nfs/nfs4xdr.c        |   2 +
 fs/nfs/super.c          |   5 +
 fs/nfs_common/nfsacl.c  |   3 +-
 include/linux/nfs4.h    |   2 +
 include/linux/nfs_xdr.h |  51 ++++
 include/linux/nfsacl.h  |   2 +
 14 files changed, 1085 insertions(+), 42 deletions(-)
 create mode 100644 fs/nfs/nfs34acl.c

-- 
2.49.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-03  2:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-03  2:36 [PATCH v1 7/7] Add support for the NFSv4.2 POSIX draft ACL attributes kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-01-02 23:29 [PATCH v1 0/7] Add NFSv4.2 POSIX ACL support to the client rick.macklem
2026-01-02 23:29 ` [PATCH v1 7/7] Add support for the NFSv4.2 POSIX draft ACL attributes rick.macklem

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.