<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>5964</bug_id>
          
          <creation_ts>2005-01-26 11:54:45 +0300</creation_ts>
          <short_desc>Add cifs support in netfs</short_desc>
          <delta_ts>2005-07-13 15:47:23 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Archive</classification>
          <product>ALT Linux 2.4</product>
          <component>net-scripts</component>
          <version>2.4</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sviatoslav Sviridov">svd</reporter>
          <assigned_to name="Denis Ovsienko">pilot</assigned_to>
          
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21372</commentid>
    <comment_count>0</comment_count>
    <who name="Sviatoslav Sviridov">svd</who>
    <bug_when>2005-01-26 11:54:45 +0300</bug_when>
    <thetext>/etc/rc.d/init.d/netfs не имеет поддержки cifs. В связи с этим попытка
размонтирования cifs происходит в тот момент, когда сеть уже остановлена,
получаем зависон...
Steps to Reproduce:
1. mount cifs share
2. shut down
3. enjoy looking on frozed umount process
4. use Alt+SysRq to continue :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21404</commentid>
    <comment_count>1</comment_count>
    <who name="Sviatoslav Sviridov">svd</who>
    <bug_when>2005-01-26 23:54:58 +0300</bug_when>
    <thetext>Вот и патчик:

--- netfs~      2005-01-26 22:49:05 +0200
+++ netfs       2005-01-26 22:52:17 +0200
@@ -22,9 +22,11 @@ LOCKFILE=/var/lock/subsys/netfs
 
 NFSFSTAB=`grep -vs &apos;^#&apos; /etc/fstab |awk &apos;{ if (($3 == &quot;nfs&quot;) &amp;&amp; ($4 !~
/noauto/)) print $2}&apos;`
 SMBFSTAB=`grep -vs &apos;^#&apos; /etc/fstab |awk &apos;{ if (($3 == &quot;smbfs&quot;) &amp;&amp; ($4 !~
/noauto/)) print $2}&apos;`
+CIFSFSTAB=`grep -vs &apos;^#&apos; /etc/fstab |awk &apos;{ if (($3 == &quot;cifs&quot;) &amp;&amp; ($4 !~
/noauto/)) print $2}&apos;`
 NCPFSTAB=`grep -vs &apos;^#&apos; /etc/fstab |awk &apos;{ if (($3 == &quot;ncpfs&quot;) &amp;&amp; ($4 !~
/noauto/)) print $2}&apos;`
 NFSMTAB=`grep -vs &apos;^#&apos; /proc/mounts |awk &apos;{ if (($3 == &quot;nfs&quot;) &amp;&amp; ($2 != &quot;/&quot;))
print $2}&apos;`
 SMBMTAB=`grep -vs &apos;^#&apos; /proc/mounts |awk &apos;{ if (($3 == &quot;smbfs&quot;) &amp;&amp; ($2 != &quot;/&quot;))
print $2}&apos;`
+CIFSMTAB=`grep -vs &apos;^#&apos; /proc/mounts |awk &apos;{ if (($3 == &quot;cifs&quot;) &amp;&amp; ($2 != &quot;/&quot;))
print $2}&apos;`
 NCPMTAB=`grep -vs &apos;^#&apos; /proc/mounts |awk &apos;{ if (($3 == &quot;ncpfs&quot;) &amp;&amp; ($2 != &quot;/&quot;))
print $2}&apos;`
 
 start()
@@ -38,6 +40,7 @@ start()
                        action &quot;Mounting NFS filesystems:&quot; mount -a -t nfs
        fi
        [ -z &quot;$SMBFSTAB&quot; ] || action &quot;Mounting SMB filesystems:&quot; mount -a -t smbfs
+       [ -z &quot;$CIFSFSTAB&quot; ] || action &quot;Mounting CIFS filesystems:&quot; mount -a -t cifs
        [ -z &quot;$NCPFSTAB&quot; ] || action &quot;Mounting NCP filesystems:&quot; mount -a -t ncpfs
 #      action &quot;Mounting other filesystems (if any):&quot; mount -a -t
noproc,nfs,smbfs,ncpfs
 
@@ -60,6 +63,13 @@ stop()
                        &quot;Unmounting SMB filesystem (retry)&quot;
        fi
 
+       if [ -n &quot;$CIFSMTAB&quot; ]; then
+               UnmountFilesystems 3 5 \
+                       &apos;$3 == &quot;cifs&quot; &amp;&amp; $2 != &quot;/&quot; {print $2}&apos; \
+                       &quot;Unmounting CIFS filesystem&quot; \
+                       &quot;Unmounting CIFS filesystem (retry)&quot;
+       fi
+
        if [ -n &quot;$NCPMTAB&quot; ]; then
                UnmountFilesystems 3 5 \
                        &apos;$3 == &quot;ncpfs&quot; &amp;&amp; $2 != &quot;/&quot; {print $2}&apos; \
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21409</commentid>
    <comment_count>2</comment_count>
    <who name="Sviatoslav Sviridov">svd</who>
    <bug_when>2005-01-27 02:16:13 +0300</bug_when>
    <thetext>Кстати, было бы неплохо, наверно, переписать netfs таким образом, чтоб можно
было проще определять (или угадывать?) какие типы файловых систем надо
размонтировать... А то тут еще в голову лезут всякие fuse, lufs/lufis...
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21547</commentid>
    <comment_count>3</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2005-02-02 11:53:12 +0300</bug_when>
    <thetext>#0 и #2 приняты</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21733</commentid>
    <comment_count>4</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2005-02-07 19:10:41 +0300</bug_when>
    <thetext>#0 пошёл в net-scripts-0.5.2, а #2 в TODO к /etc/net</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>