tester-technology

Value too large for defined data

2018-12-30  本文已影响22人  testerzhang

问题引入:

linux编程出错: Value too large for defined data type

本地硬盘没问题,挂载的盘报此错

# mount 

挂载的盘属性是inode64类型

理论依据

man xfs

 

inode32|inode64

       When inode32 is specified, it indicates that XFS limits inode creation to locations which will not result in inode numbers with more than 32 bits of  signifi‐

       cance.

 

       When  inode64  is  specified,  it indicates that XFS is allowed to create inodes at any location in the filesystem, including those which will result in inode

       numbers occupying more than 32 bits of significance.

 

       inode32 is provided for backwards compatibility with older systems and applications, since 64 bits inode numbers might cause problems  for  some  applications

       that cannot handle large inode numbers.  If applications are in use which do not handle inode numbers bigger than 32 bits, the inode32 option should be speci‐

       fied.

 

       For kernel v3.7 and later, inode64 is the default.

解决方案

参考文章:

https://blog.csdn.net/benkaoya/article/details/47260731

上一篇 下一篇

猜你喜欢

热点阅读