Description of problem: ----------------------- cache-priority comes in to play while replacing the existing contents of the cache for giving way for the new entries. Its forms a base for retaining the files in cache based on the file types We usually associate the ranking with the type of extensions gluster volume set cache-priority <vol-name> "html:10,txt:5" Currently the value for cache-priority is not validated. It would be good to validate the values as user may accidentally provide wrong values. Version-Release number of selected component (if applicable): ------------------------------------------------------------- mainline How reproducible: ----------------- Always Steps to Reproduce: ------------------- 1. gluster volume set cache-priority <vol-name> '\n' Actual results: --------------- value for cache-priority is not validated Expected results: ----------------- value for cache-priority could be validated Additional info: