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

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

    <bug>
          <bug_id>12753</bug_id>
          
          <creation_ts>2007-09-12 00:31:46 +0400</creation_ts>
          <short_desc>Создаёт левые конфигурационные файлы в /usr в процессе работы, которые ломают конфигурацию hal</short_desc>
          <delta_ts>2008-08-23 18:57:51 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gparted</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>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sir Raorn">raorn</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>aris</cc>
    
    <cc>icesik</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55066</commentid>
    <comment_count>0</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2007-09-12 00:31:46 +0400</bug_when>
    <thetext>src/GParted_Core.cc:

GParted_Core::GParted_Core() 
{
...
	//disable automount //FIXME: temporary hack, till i find a better solution...
	std::ofstream fdi_file(
&quot;/usr/share/hal/fdi/policy/gparted-disable-automount.fdi&quot; ) ;
	if ( fdi_file )
	{
		fdi_file &lt;&lt; &quot;&lt;deviceinfo version=&apos;0.2&apos;&gt;&quot; ;
		fdi_file &lt;&lt; &quot;&lt;device&gt;&quot; ;
		fdi_file &lt;&lt; &quot;&lt;match key=&apos;@block.storage_device:storage.hotpluggable&apos;
bool=&apos;true&apos;&gt;&quot; ;
		fdi_file &lt;&lt; &quot;&lt;merge key=&apos;volume.ignore&apos; type=&apos;bool&apos;&gt;true&lt;/merge&gt;&quot; ;
		fdi_file &lt;&lt; &quot;&lt;/match&gt;&quot; ;
		fdi_file &lt;&lt; &quot;&lt;/device&gt;&quot; ;
		fdi_file &lt;&lt; &quot;&lt;/deviceinfo&gt;&quot; ;

		fdi_file .close() ;
	}	
...
}

...

GParted_Core::~GParted_Core() 
{
...
	//remove .fdi file..
	remove( &quot;/usr/share/hal/fdi/policy/gparted-disable-automount.fdi&quot; ) ;
}

И после аварийного завершения перестают автомонтироваться сменные носители...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55105</commentid>
    <comment_count>1</comment_count>
    <who name="">led</who>
    <bug_when>2007-09-13 04:24:03 +0400</bug_when>
    <thetext>Какие будут предложения?
1) Просто убрать это
2) Блокировать автомонтирование на время работы gparted через 
libhal_acquire_global_interface_lock() и линковать gparted с libhal.so
3) Сделать п.2 отциональным при сборке (--with-libhal)
?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55107</commentid>
    <comment_count>2</comment_count>
    <who name="ruslandh">ruslandh</who>
    <bug_when>2007-09-13 09:30:25 +0400</bug_when>
    <thetext>Можно сразу unlink сделать на этот файл, после его создания. реально он 
удалится после закрытия файла или при вылете программы.  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55126</commentid>
    <comment_count>3</comment_count>
    <who name="">led</who>
    <bug_when>2007-09-13 14:02:58 +0400</bug_when>
    <thetext>(In reply to comment #2)
&gt; Можно сразу unlink сделать на этот файл, после его создания. реально он 
&gt; удалится после закрытия файла или при вылете программы.  

Его вообще там нельзя создавать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55245</commentid>
    <comment_count>4</comment_count>
    <who name="">led</who>
    <bug_when>2007-09-17 01:31:33 +0400</bug_when>
    <thetext>fixed in gparted-0.3.3-alt7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>