Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 706339 - open/closed files in cifs mount points
open/closed files in cifs mount points
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
5.7
Unspecified Unspecified
low Severity medium
: rc
: ---
Assigned To: Jeff Layton
Petr Beňas
:
Depends On:
Blocks: 706333
  Show dependency treegraph
 
Reported: 2011-05-20 03:29 EDT by Ivana Varekova
Modified: 2015-01-04 18:00 EST (History)
9 users (show)

See Also:
Fixed In Version: kernel-2.6.18-283.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 706333
Environment:
Last Closed: 2012-02-20 22:48:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0150 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux 5.8 kernel update 2012-02-21 02:35:24 EST

  None (edit)
Description Ivana Varekova 2011-05-20 03:29:33 EDT
Is there a way how to find out open/closed files in cifs mount point (el6 have two separate columns for Posix Opens and Posix Mkdirs, el5 version seems to report both (files and dirs) to MkDirs column.

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

el5 version:
cat /proc/fs/cifs/Stats
...snipped...
Opens: 0 Closes: 20Deletes: 10    <---- closed files
Mkdirs: 21 Rmdirs: 1              <---- opened files
...snipped...
)

+++ This bug was initially created as a clone of Bug #706333 +++

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 Jeff Layton 2011-07-08 06:53:54 EDT
I've posted a set of test kernels to my people.redhat.com page that have a patch for this issue:

    http://people.redhat.com/jlayton/

...could you test them and let me know if they resolve the issue for you?
Comment 2 RHEL Product and Program Management 2011-08-04 00:14:44 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 6 Jarod Wilson 2011-08-30 15:23:03 EDT
Patch(es) available in kernel-2.6.18-283.el5
You can download this test kernel (or newer) from http://people.redhat.com/jwilson/el5
Detailed testing feedback is always welcomed.
Comment 8 Petr Beňas 2011-10-17 03:34:11 EDT
Reproduced in 2.6.18-282.el5 and verified in 2.6.18-283.el5.
Comment 9 errata-xmlrpc 2012-02-20 22:48:24 EST
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/RHSA-2012-0150.html

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