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

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

    <bug>
          <bug_id>10434</bug_id>
          
          <creation_ts>2006-12-15 21:35:30 +0300</creation_ts>
          <short_desc>mount-2.12r-alt3 does not pass the &quot;quiet&quot; option to vfat properly</short_desc>
          <delta_ts>2007-02-23 20:15:42 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mount</component>
          <version>unstable</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>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Vlasov">vsu</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>mike</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43116</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2006-12-15 21:35:30 +0300</bug_when>
    <thetext>Between mount-2.12r-alt1 and mount-2.12r-alt3 handling of the &quot;quiet&quot; mount
option for vfat filesystem has been broken (/etc/mtab shows the &quot;quiet&quot; option,
but actually it is not enabled).

Steps to Reproduce:
With mount-2.12r-alt1:
# strace -q -e mount -s 1024 mount -t vfat -o quiet /dev/sdb1 /mnt/disk
mount(&quot;/dev/sdb1&quot;, &quot;/mnt/disk&quot;, &quot;vfat&quot;, MS_MGC_VAL, &quot;quiet&quot;) = 0

With mount-2.12r-alt3:
# strace -q -e mount -s 1024 mount -t vfat -o quiet /dev/sdb1 /mnt/disk
mount(&quot;/dev/sdb1&quot;, &quot;/mnt/disk&quot;, &quot;vfat&quot;, MS_MGC_VAL|MS_VERBOSE, &quot;&quot;) = 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43118</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-12-15 22:26:27 +0300</bug_when>
    <thetext>Between alt1 and alt2 (very likely) or between alt2 and alt3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43121</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2006-12-15 22:33:45 +0300</bug_when>
    <thetext>Seems that the problem is caused by the addition of MS_SILENT to kernel headers:

http://lkml.org/lkml/2006/3/14/112

Rebuilding mount-2.12r-alt1 package fails for me due to broken chstk on x86_64,
but the mount binary which gets built is broken in the same way (eats the
&quot;quiet&quot; option).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43124</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-12-15 22:43:54 +0300</bug_when>
    <thetext>Yes, regression is due to rebuild.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43125</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-12-16 00:03:10 +0300</bug_when>
    <thetext>Looks like MS_SILENT handling in mount is wrong:

#ifdef MS_SILENT
if (om-&gt;mask == MS_SILENT &amp;&amp; om-&gt;inv)  {
        mount_quiet = 1;
        verbose = 0;
}

i.e. MS_SILENT meaning is reverted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43126</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-12-16 00:22:45 +0300</bug_when>
    <thetext>Cited hunk (while buggy) is not relevant to the problem.

I wonder how mount should work when &quot;quiet&quot; option is given.
Should it set MS_SILENT (== MS_VERBOSE) flag in mount(2) call?
Should it pass &quot;quiet&quot; option to mount(2) call?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44864</commentid>
    <comment_count>6</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2007-01-29 02:18:45 +0300</bug_when>
    <thetext>Возможно ли решить данную неприятную проблему в ближайшие сроки?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44869</commentid>
    <comment_count>7</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2007-01-29 05:14:00 +0300</bug_when>
    <thetext>+1 к предыдущему комментатору.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44896</commentid>
    <comment_count>8</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2007-01-29 17:45:07 +0300</bug_when>
    <thetext>Я бы хотел услышать предложения возможных решений.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44987</commentid>
    <comment_count>9</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2007-02-02 03:31:34 +0300</bug_when>
    <thetext>Disabled MS_SILENT support in 2.12r-alt5.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>