<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>293914</bug_id>
          
          <creation_ts>2012-02-12 17:26:29 +0000</creation_ts>
          <short_desc>Mtab change monitoring does not work</short_desc>
          <delta_ts>2012-09-27 10:13:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>solid</product>
          <component>libsolid-fstab</component>
          <version>unspecified</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Stefan Brüns">stefan.bruens</reporter>
          <assigned_to name="Mario Bensi">nef</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1226084</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Brüns">stefan.bruens</who>
    <bug_when>2012-02-12 17:26:29 +0000</bug_when>
    <thetext>Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

/etc/mtab points to /proc/self/mounts on Linux. As inotify only works for regular files, no changes are picked up.

/proc/[self/]mounts should be monitored with select(n, ..., ..., {mounts_fd, ...} ) on Linux



Reproducible: Didn&apos;t try

Steps to Reproduce:
Mount/umount a smb/cifs/nfs network share under Linux.

Actual Results:  
no signal emitted

Expected Results:  
emit mtabChanged

See https://git.reviewboard.kde.org/r/103954/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231271</commentid>
    <comment_count>1</comment_count>
    <who name="Mario Bensi">mbensi</who>
    <bug_when>2012-02-28 15:24:50 +0000</bug_when>
    <thetext>Git commit b16cfec44104ded4a8959af4e790fe2f7d6d2745 by Mario Bensi.
Committed on 28/02/2012 at 16:22.
Pushed by bensi into branch &apos;KDE/4.8&apos;.

Fix for mtab monitoring on Linux

Add a QSocketNotifier pointing to the mtab fd.

REVIEW: 103954
Related: bug 293926

M  +15   -1    solid/solid/backends/fstab/fstabwatcher.cpp
M  +4    -0    solid/solid/backends/fstab/fstabwatcher.h

http://commits.kde.org/kdelibs/b16cfec44104ded4a8959af4e790fe2f7d6d2745</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1301016</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Brüns">stefan.bruens</who>
    <bug_when>2012-09-27 10:13:20 +0000</bug_when>
    <thetext>Fixed in 4.8.4, 4.9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>