Bug 706333 - cifsiostat doesn't report number of open files correctly
Summary: cifsiostat doesn't report number of open files correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sysstat
Version: 5.7
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Peter Schiffer
QA Contact: Branislav Náter
URL:
Whiteboard:
Depends On: 706339
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-20 06:56 UTC by Branislav Náter
Modified: 2013-04-12 20:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 706339 (view as bug list)
Environment:
Last Closed: 2012-08-29 18:38:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:1219 0 normal SHIPPED_LIVE sysstat bug fix update 2012-08-29 22:37:52 UTC

Description Branislav Náter 2011-05-20 06:56:36 UTC
Description of problem:
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 "Mkdirs" in
/proc/fs/cifs/Stats.


Version-Release number of selected component (if applicable):
sysstat-7.0.2-6.el5

How reproducible:
always

Steps to Reproduce:
1. mount samba share from linux machine
2. open /proc/fs/cifs/Stats
3. run "touch file.txt" on share mounted in step 1.
  
Actual results:
Mkdirs and Closes values are increment by one:

Opens: 0 Closes: 1Deletes: 0
Mkdirs: 1 Rmdirs: 0

Expected results:
Opens and Closes values are increment by one:

Opens: 1 Closes: 1Deletes: 0
Mkdirs: 0 Rmdirs: 0


Additional info:
2) \\linuxmachine\linuxshare
SMBs: 865 Oplock Breaks: 0
Reads:  480 Bytes: 7847956
Writes: 184 Bytes: 10268672
Flushes: 0
Locks: 0 HardLinks: 0 Symlinks: 0
Opens: 0 Closes: 20Deletes: 10    <---- closed files
Mkdirs: 21 Rmdirs: 1              <---- opened files
<snip>

Comment 1 Ivana Varekova 2011-06-08 12:47:49 UTC
This bug can be fixed without the changes in kernel api in /proc/fs/cifs/Stats
files - there is kernel bug for it (706339) which blocks this one.

Comment 2 Ivana Varekova 2011-06-08 13:13:16 UTC
ops "can be"-> "can't be"

Comment 3 RHEL Program Management 2011-09-23 00:30:38 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.

Comment 4 RHEL Program Management 2012-04-19 11:48:32 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 12 errata-xmlrpc 2012-08-29 18:38:46 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-1219.html


Note You need to log in before you can comment on or make changes to this bug.