Bug 690562

Summary: cifsiostat doesn't report number of open files correctly
Product: Red Hat Enterprise Linux 6 Reporter: Branislav Náter <bnater>
Component: sysstatAssignee: Peter Schiffer <pschiffe>
Status: CLOSED ERRATA QA Contact: Branislav Náter <bnater>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: ovasik, rvokal
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 14:01:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Branislav Náter 2011-03-24 16:34:14 UTC
Description of problem:
It seams that cifsiostat doesn't report files opened on share mounted from linux machine. cifsiostat obtains values from /proc/fs/cifs/Stats. When file on linux share is opened, this action is counted as "Posix Opens" in /proc/fs/cifs/Stats file and is not reported by cifsiostat. I think cifsiostat should also take "Posix Opens" into account.

cat /proc/fs/cifs/Stats
...snipped...
Opens: 0 Closes: 1 Deletes: 0
Posix Opens: 1 Posix Mkdirs: 0
...snipped...

Version-Release number of selected component (if applicable):
sysstat-9.0.4-16.el6

How reproducible:
always

Steps to Reproduce:
1. mount writable share located on linux server
2. run "cifsiostat 1" in first terminal
3. run "touch /mounted/share/foo.txt" on second terminal
4. examine cifsiostat reports
  
Actual results:
Filesystem:      rB/s   wB/s    rops/s    wops/s   fo/s    fc/s    fd/s
\\server\share   0.00   0.00    0.00      0.00     0.00    1.00    0.00

Expected results:
Filesystem:      rB/s   wB/s    rops/s    wops/s   fo/s    fc/s    fd/s
\\server\share   0.00   0.00    0.00      0.00     1.00    1.00    0.00

Comment 2 Suzanne Logcher 2011-03-28 19:55:29 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains 
unresolved, it has been rejected as it is not proposed as an 
exception or blocker.

Red Hat invites you to ask your support representative to 
propose this request, if appropriate and relevant, in the 
next release of Red Hat Enterprise Linux.

Comment 4 RHEL Program Management 2011-07-06 00:06:15 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 10 errata-xmlrpc 2012-06-20 14:01:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0866.html