Bug 764390 (GLUSTER-2658)

Summary: max_file_size and min_file_size can be set to exceed cache_size
Product: [Community] GlusterFS Reporter: Joe Julian <joe>
Component: io-cacheAssignee: krishnan parthasarathi <kparthas>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.3CC: amarts, gluster-bugs, nsathyan, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joe Julian 2011-04-02 06:47:23 UTC
Unless I'm just missing it, neither file size parameter is checked to see if it exceeds the cache size in io-cache.c:validate_options.

Comment 1 krishnan parthasarathi 2011-04-27 07:36:14 UTC
max_file_size and min_file_size are bounds on the size of files that the user wants glusterfs to cache. Its a way by which user can selectively turn caching off.
OTOH, cache_size is the amount of memory user sets aside for glusterfs to use for caching files. {min, max}_file_size and cache_size are independent of each other. Closing the bug as invalid.