waltligon / orangefs

Official repository for PVFS/OrangeFS
Other
62 stars 7 forks source link

Ftruncate failed when the size is not a multiple of 4KB. #82

Open my-HenryS opened 4 years ago

my-HenryS commented 4 years ago

Hi,

I have encountered an issue where ftruncate will fail when the size is not a multiple of 4KB. For instance, truncate -s 32K /mnt/orangefs/foo will succeed while truncate -s 45048 /mnt/orangefs/foo will fail.

OrangeFS is configured with stripe size 128KB and direct-io as the TroveMethod. Just wanted to make sure if this is a bug or something has already mentioned in the documentation.

Thanks, Jinghan