Skip to main content
NetApp Knowledge Base

The result of the 'ls -lhs' command shows that the block size of small files is 0, even if the file has content

Views:
59
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

Applies to

  • ONTAP 9 
  • The file's size is less than 64 byte
  • Linux client

Issue

 'ls -lhs' command shows the file block size as 0.

Example:

ls -lhs
Total 4.0K
4.0K drwxr-xr-x 2 root root 4.0K Jan 24  2025 test_folder
   0 -rw-r--r-- 1 root root    37  Jan 25  2025 testfile

 

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.