Skip to main content
NetApp Knowledge Base

4byte UTF-8 files can be created via NFSv4 which cannot be displayed

Views:
62
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:
2/21/2025, 9:35:09 AM

Applies to

  • ONTAP 9
  • UTF-8
  • NFSv4
  • NFSv3

Issue

  • UTF-8 volume allows the creation of 4byte UTF-8 characters when mounted with NFSv4
  • This is inconsistent as C.UTF-8 system does not support 4-byte UTF-8 sequences
  • This then leads to files that cannot be displayed or folders that cannot be deleted as they are not empty
::> event log show
Time Node Severity Event
------------------- ---------------- ------------- ---------------------------
11/20/2024 22:14:26 node1 ERROR wafl.bagofbits.name: Cannot provide directory entry to NFSv4 client for file ID:417 in volume twice because it contains non-Unicode characters with no NFS alternate name.
  • Show volume language
::> vol show -vserver svm1 -volume vol1-fields language vserver volume language
------- ------ --------
svm1   vol1  C.UTF-8
  • Linux client language
# echo $LANG
en_US.UTF-8
  • After mounting with NFSv4.2 a 4 byte UTF-8 character is created which then cannot be displayed
# unicode=$'uni\xc2\xa2\xf0\x90\x8d\x88d\xe2\x82\xac'
# touch $unicode
# ll
drwxr-xr-x 2 nobody nogroup 4096 Nov 20 22:14 ./ drwxrwxrwx 23 root root 8192 Nov 20 22:14 ../

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.