Bug 762350 (GLUSTER-618)

Summary: CIFS volumes used space shows twice the value from linux on windows
Product: [Community] GlusterFS Reporter: Harshavardhana <fharshav>
Component: coreAssignee: Harshavardhana <fharshav>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: urgent    
Version: mainlineCC: anush, cww, gluster-bugs, pavan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Difference in used space none

Description Harshavardhana 2010-02-15 16:26:17 UTC
Created attachment 148 [details]
The kickstart file

Comment 1 Harshavardhana 2010-02-15 19:23:46 UTC
During some tests earlier with avail hardware there was an issue where in windows would show used space on a samba share reexported over glusterfs with twice the actual used value. 

This needs further investigation. Attached document clearly shows the windows "used space" value and linux side.

Comment 2 Harshavardhana 2010-02-17 10:11:23 UTC
(In reply to comment #1)
> Created an attachment (id=148) [details]
> Difference in used space

After the initial level of testing it is seen that windows on its part does a different calculation of used space rather than linux. 

Linux - CIFS kernel module calculates ((b_blocksize * b_blocks) - (b_blocksize * b_avail) - This doesn't have journalled data.

Now for CIFS on windows side its other scenario ((b_blocksize * b_blocks) - (b_blocksize * b_free)) - This also contains usage of journalled data. 

I guess this is just two way of showing used space to user.