<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Pierre Schweitzer's Blog</title>
	<atom:link href="http://www.pschweitzer.fr/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.pschweitzer.fr</link>
	<description>Various topics about programming</description>
	<pubDate>Sat, 12 Jan 2013 13:12:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Using VMware Player with libvirt</title>
		<link>http://www.pschweitzer.fr/?p=22</link>
		<comments>http://www.pschweitzer.fr/?p=22#comments</comments>
		<pubDate>Sat, 12 Jan 2013 13:12:24 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[Linux Programming]]></category>

		<category><![CDATA[ReactOS]]></category>

		<category><![CDATA[bootstrap]]></category>

		<category><![CDATA[framebuffer]]></category>

		<category><![CDATA[libvirt]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Player]]></category>

		<category><![CDATA[regression]]></category>

		<category><![CDATA[serial]]></category>

		<category><![CDATA[testbot]]></category>

		<category><![CDATA[virtual]]></category>

		<category><![CDATA[VMware]]></category>

		<category><![CDATA[x]]></category>

		<category><![CDATA[xvfb]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=22</guid>
		<description><![CDATA[In order to catch any regression in ReactOS, but also to develop ReactOS using test-driven development method, ReactOS devs were using two testbots. One was running all the tests in a ReactOS virtual machine run by KVM under Linux, while the second one was running them in a ReactOS virtual machine run by Virtual Box [...]]]></description>
			<content:encoded><![CDATA[<p>In order to catch any regression in ReactOS, but also to develop ReactOS using test-driven development method, ReactOS devs were using two testbots. One was running all the tests in a ReactOS virtual machine run by KVM under Linux, while the second one was running them in a ReactOS virtual machine run by Virtual Box under Windows.</p>
<p>The fact is that, under Linux, to achieve such work, we are using an application developed internally named <a title="sysreg2" href="http://svn.reactos.org/svn/project-tools/trunk/sysreg2/" target="_blank">sysreg2</a>. This one, uses the libvirt API to create a KVM domain, to start it, and to check the serial output of the VM, to get the results of the tests run in ReactOS.</p>
<p>We recently decided that another testbot could be handy. It has been decided that as a first step, using VMware Player under Linux would provide interesting results. In order to keep the behavior of the testbots unified, sysreg2 was to be adapted to also manage this VM.</p>
<p>Fortunately, libvirt also provides a compatibility layer with VMware Player. The API is still the same, so, normally, it would not have required that many efforts to get the switch, as long as, the good connection address is provided for libvirt to the hypervisor: vmwareplayer:///session, in our case. Then, internally, libvirt simply convert its XML domains to VMX domains and uses VMware tools: vmplayer and vmrun.</p>
<p>But actually, it did not work that easily. First, VMware Player tools were silently failing at startup. A simple strace shown that the tools were trying to load several X11 libraries. And when those had been installed, the tools were lacking a DISPLAY. Installing a complete X11 server and client just for VMware would have been kind of overkill method.</p>
<p>The solution used has been to make usage of two bootstrap scripts for VMware tools and of XVFB. XVFB is an X virtual frame buffer. So that, the applications run within this VFB just think and act as if they had a display, whereas they actually do not really have. So, once installed, the bootstrap scripts were basically just issuing a xvfb-run of the VMware tool with its args.</p>
<p>Expect for vmrun. Two other issues raised. First, it needed a complete X11 install along with GTK to be able to display the VM window. The solution here has been to append, at the end of the run command the &#8220;nogui&#8221; instruction. So that vmrun does not try to display anything. The bootstrap script was modified that way, as we cannot really manage the libvirt commands issued to those tools. The other issues also came from libvirt commands. When libvirt tries to destroy a domain, it asks VMware to do a &#8220;soft&#8221; shutdown of the machine. In case (and it happens with ReactOS&#8230;) where the machine is totally locked, this is pointless. There, the bootstrap script has been modified again to force to &#8220;hard&#8221; any shutdown instruction it was receiving before passing to the real tool.</p>
<p>Also, VMware and KVM do not exactly support same kind of hardware, especially for serial devices. So, it has required rethink and rework about the way sysreg2 and VMware can communicate. Finally, the adopted solution was to make sysreg2 create an Unix socket so that virtual machine can connect on it and write (also read).</p>
<p>We got a testbot working successfully :-).</p>
<blockquote><p><span id="more-22"></span></p></blockquote>
<p>The vmplayer bootstrap script:</p>
<blockquote><p>#!/bin/sh</p>
<p>xvfb-run /usr/bin/vmplayer $@</p></blockquote>
<p>The vmrun boostrap script:</p>
<blockquote><p>#!/bin/bash</p>
<p>stop=0</p>
<p>line=&#8221;"</p>
<p>while (( &#8220;$#&#8221; )); do</p>
<p>arg=&#8221;$1&#8243;</p>
<p>if [ &#8220;$arg&#8221; == &#8220;stop&#8221; ]; then</p>
<p>stop=1</p>
<p>fi</p>
<p>if [ &#8220;$arg&#8221; == &#8220;soft&#8221; ]; then</p>
<p>if [ $stop -eq 1 ]; then</p>
<p>arg=&#8221;hard&#8221;</p>
<p>fi</p>
<p>fi</p>
<p>line=&#8221;$line $arg&#8221;</p>
<p>shift</p>
<p>done</p>
<p>xvfb-run /usr/bin/vmrun $line nogui</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=22</wfw:commentRss>
		</item>
		<item>
		<title>Experimenting AOP with code profiling</title>
		<link>http://www.pschweitzer.fr/?p=21</link>
		<comments>http://www.pschweitzer.fr/?p=21#comments</comments>
		<pubDate>Wed, 12 Dec 2012 22:26:50 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[Linux Programming]]></category>

		<category><![CDATA[AOP]]></category>

		<category><![CDATA[Aspect]]></category>

		<category><![CDATA[Code]]></category>

		<category><![CDATA[experiment]]></category>

		<category><![CDATA[join]]></category>

		<category><![CDATA[Oriented]]></category>

		<category><![CDATA[point]]></category>

		<category><![CDATA[pointcut]]></category>

		<category><![CDATA[profiler]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=21</guid>
		<description><![CDATA[During my studies at the ISIMA, I have been quickly presented MDE (Model Driven Engineering). We went through AOP (Aspect Oriented Programming), which is somehow a superset of OOP (Object Oriented Programming). With your objects, you can describe aspects and this will help you write simpler code, and more easily maintenable code. It also allows [...]]]></description>
			<content:encoded><![CDATA[<p>During my studies at the ISIMA, I have been quickly presented MDE (Model Driven Engineering). We went through AOP (Aspect Oriented Programming), which is somehow a superset of OOP (Object Oriented Programming). With your objects, you can describe aspects and this will help you write simpler code, and more easily maintenable code. It also allows cutting in a clear way the application into modules. Some modules being generated during the complete build of the project.</p>
<p>So, with AOP, you can define points (known as pointcuts) in code where you will add other code, developed in parallel, responding to an aspect. This allow to do transerval checks or treatment to the application. Needless to say that it is really useful for applications security and stability. This is where the idea of code profiling is born.</p>
<p>It is possible with AOP to define pointcuts at the begin of a function execution and at the end of its execution. So, if you are able to match any function, it is virtually possible to add a pointcut to any function begin and end. Furthermore, once you know when a function starts and ends you can calculate how much time it needs.</p>
<p>This is what I do in my simple (for the moment?) framework. It just consists in an header for <a title="AspectC++" href="http://www.aspectc.org/" target="_blank">AspectC++</a> that will define two pointcuts: one before the begin of the execution of any function (be it a function for a class, an operator, or whatever) and at the end of the execution. Then, using the Linux system call time, it will get the time at which those operations occurs to gather data. The time resolution is low for the moment, the only purpose being to validate the concept. Once it is done with the execution of the function, it will store all the data into a structure remembering number of calls and total length for all the calls. This does not provide that many information for the moment, but it has proven to be working.</p>
<p>The strength of such approach is that it makes the whole code generic. There is no need to modify the code that has to be profiled to get it profiled. It just need to be parsed with the profiling header and then compiled. The code itself for profiling is pretty simple for the moment (as its output).</p>
<p>An example of execution works as following:</p>
<p>$ ./main<br />
You want number of primes lower than? 999999<br />
Result: 78498<br />
Function: int main(int,char **), calls: 1, total time: 6<br />
Function: unsigned int FrequencyOfPrimes(unsigned int), calls: 1, total time: 3</p>
<p>This is still work in progress for the moment, and the idea would be to get more features like better timer resolution, real support for recursive calls. But it keeps being a good beginning to show what are the features offered by the AOP.</p>
<p>You&#8217;ll be able to find the example code on <a title="acprof" href="https://github.com/HeisSpiter/acprof" target="_blank">GitHub.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=21</wfw:commentRss>
		</item>
		<item>
		<title>IPv6 Launch Day at the ReactOS Foundation</title>
		<link>http://www.pschweitzer.fr/?p=20</link>
		<comments>http://www.pschweitzer.fr/?p=20#comments</comments>
		<pubDate>Thu, 19 Apr 2012 21:55:08 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[Linux Programming]]></category>

		<category><![CDATA[ReactOS]]></category>

		<category><![CDATA[DenyHosts]]></category>

		<category><![CDATA[Foundation]]></category>

		<category><![CDATA[GitHub]]></category>

		<category><![CDATA[GPL]]></category>

		<category><![CDATA[ipv6]]></category>

		<category><![CDATA[Launch]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=20</guid>
		<description><![CDATA[On the 6th of June 2012, the Internet Society has decided to start an important and world wide event: the IPv6 Launch. This means that on this days, several Internet actors (website editors, network operators, hardware ventors) will make what they own IPv6 compatible (in a transparent way!). And will ensure it will stay that [...]]]></description>
			<content:encoded><![CDATA[<p>On the 6th of June 2012, the Internet Society has decided to start an important and world wide event: the <a title="World IPv6 Launch" href="http://www.worldipv6launch.org/" target="_blank">IPv6 Launch</a>. This means that on this days, several Internet actors (website editors, network operators, hardware ventors) will make what they own IPv6 compatible (in a transparent way!). And will ensure it will stay that way. This is not the IPv6 day.</p>
<p>Regarding Internet then, this is a major event. And an agreement to get IPv6 launch is a great decision. This is why we [The ReactOS Foundation] decided to associate our name to this event. This means that several of the ReactOS servers will be compatible with IPv6 (not the OS itself!). A lot of work will have to be done (even if it was already done partly previously) to ensure everything gets ready on the 6th of June. A kind of roadmap is available here: <a title="IPv6" href="http://reactos.org/wiki/IPv6" target="_blank">IPv6</a>.</p>
<p>This actually requires work. Not only to update configurations (this could be the easier part&#8230;). The real problems come from software that don&#8217;t support IPv6 properly and that need a rewrite or even worse a full rewrite. This is what I will be working on up to the 6th of June to get everything fully functional.</p>
<p>As an example, in order to &#8220;help&#8221; DenyHosts (which doesn&#8217;t handle IPv6 even with custom regexp), a new <a title="ForbidHostsv6" href="https://github.com/HeisSpiter/forbidhostsv6" target="_blank">tool</a> has been developed to run <span>nearby it. It will catch all the non-allowed connections from an IPv6 address to SSH and will drop the IP in /etc/hosts.deny. All the tools that may be developed will be dropped at <a title="GitHub" href="https://github.com" target="_blank">GitHub</a> under GPL licence (ForbidHostsv6 is already there, follow the link). To permit everyone to make use of them, in case they also need them for the switch.</span></p>
<p>Let&#8217;s share our knowledge about that switch, to make it as easier as possible (and the smoother possible as well!).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=20</wfw:commentRss>
		</item>
		<item>
		<title>Nagios plugins</title>
		<link>http://www.pschweitzer.fr/?p=19</link>
		<comments>http://www.pschweitzer.fr/?p=19#comments</comments>
		<pubDate>Mon, 27 Feb 2012 22:35:44 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[ReactOS]]></category>

		<category><![CDATA[icinga]]></category>

		<category><![CDATA[nagios]]></category>

		<category><![CDATA[nrpge]]></category>

		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=19</guid>
		<description><![CDATA[All the servers we have at the ReactOS Foundation are monitored with Icinga (a Nagios fork). Icinga is compatible with both nagios plugins and NRPE (Nagios Remote Plugin Executor). If Nagios plugins are enough to monitor basic services on our servers, with specific services and value to monitor, those are not covering enough. So, as [...]]]></description>
			<content:encoded><![CDATA[<p>All the servers we have at the ReactOS Foundation are monitored with <a title="Icinga" href="http://www.icinga.org" target="_blank">Icinga</a> (a <a title="Nagios" href="http://www.nagios.org" target="_blank">Nagios</a> fork). Icinga is compatible with both nagios plugins and NRPE (Nagios Remote Plugin Executor). If Nagios plugins are enough to monitor basic services on our servers, with specific services and value to monitor, those are not covering enough. So, as many system administrators (I believe), I went to <a title="Nagios exchange" href="http://exchange.nagios.org/directory/Plugins" target="_blank">Nagios exchange</a> to get more plugins to have those matching up our needs.</p>
<p>First problem is that with those plugins, most of the time you have overkill plugins, that do much more than what is required. They also not necessarily match what you need (best example is our hardware raid, I had to modify a script from nagios-exchange).</p>
<p>Second major problem is that those plugins are most of the time (not to say all the time) scripts written either in bash/python/perl. If that&#8217;s suitable for small monitoring, it comes to be a problem with larger solutions (~1000 nodes).</p>
<p>Even if at the Foundation we don&#8217;t have 1000+ nodes (yet? - unbelievable), I really wanted we had native plugins, written in either C/C++ to match specifically our needs (and kick out some problems). This lead to the development of plugins. While our internal scripts plugins were private, I decided to release those to the outside to allow everyone having the same issue to enjoy those.</p>
<p>Those always match name and behavior (arguments and return - especially in performance data) of the previous scripts we were using.</p>
<p>For the moment, only check_ram (100% internal one), check_acpupsd, and check_mountpoints are currently available (the only ones to have been developed yet). More are to come.</p>
<p>You can find them at: <a href="http://svn.reactos.org/svn/project-tools/trunk/nagios/">http://svn.reactos.org/svn/project-tools/trunk/nagios/</a></p>
<p>Feel free to comment or to sent patches to improve them!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=19</wfw:commentRss>
		</item>
		<item>
		<title>ReactOS plans for 2012</title>
		<link>http://www.pschweitzer.fr/?p=18</link>
		<comments>http://www.pschweitzer.fr/?p=18#comments</comments>
		<pubDate>Sun, 22 Jan 2012 14:50:46 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[ReactOS]]></category>

		<category><![CDATA[CMake]]></category>

		<category><![CDATA[cppcheck]]></category>

		<category><![CDATA[ESX]]></category>

		<category><![CDATA[Player]]></category>

		<category><![CDATA[rbuild]]></category>

		<category><![CDATA[RosBE]]></category>

		<category><![CDATA[sixgill]]></category>

		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=18</guid>
		<description><![CDATA[This year, instead of looking back on previous year to sum up what has been done, I will speak about what is planned.
First thing is the long awaited 0.3.14 release. It is on the way to be released and has been branched. This will be an important ReactOS release. We took time to prepare it, [...]]]></description>
			<content:encoded><![CDATA[<p>This year, instead of looking back on previous year to sum up what has been done, I will speak about what is planned.</p>
<p>First thing is the long awaited 0.3.14 release. It is on the way to be released and has been branched. This will be an important ReactOS release. We took time to prepare it, and it comes with numerous and great <a title="ChangeLog-0.3.14" href="http://reactos.org/wiki/ChangeLog-0.3.14" target="_blank">changes</a>. Unfortunately, as several rewrites took place, some regressions are to be expected. And some people may not be able to install ReactOS any longer. In case it happens (in VMs), change your virtualisation software (or downgrade it in case it is Virtual Box). We know that is a real problem. But in spite of our efforts, we could not kick it out. It will require huge work. But, as expressed there are ways to work around.</p>
<p>Most of my work on ReactOS will take place in background. In 2011, I became one of the ReactOS systems administrators. Which means, ensuring servers are running properly and up to date, but also deploy new things to make developers everyday life easier. This year, we plan to deploy two more test bots. One on VMware ESX, another on VMware Player on Linux. Both handled through libvirt and our sysreg tool. I already started implementing the support in our tool.</p>
<p>Another thing will be the (also long awaited) switch to CMake. We will drop support for our own solution (rbuild) to use CMake to handle ReactOS builds. This has been postponed until release and until <a title="Build Environment" href="http://reactos.org/wiki/Build_Environment" target="_blank">ReactOS Build Environments</a> (RosBEs) are ready. Both are about to be completed. On RosBE-Unix, I took over on Colin, as he has less time to give to ReactOS. We also have a last build slave running rbuild builds. Once CMake switch will be done, it will be time to tell him good bye. It will be a real switch for the project. The last rbuild builder has done more than 10k builds!</p>
<p>I also plan to deploy another static analysis tool on our server to check ReactOS code quality. We already have <a title="cppcheck" href="http://fezile.reactos.org/cppcheck" target="_blank">cppcheck</a> (with quite huge configuration, by the way&#8230;) that returns pretty good results. We also make use of Coverity with success. The idea would be to add another and rather different tool: <a title="sixgill" href="http://sixgill.org/" target="_blank">sixgill</a>. This tool appears to be successfully used by the Mozilla Foundation.</p>
<p>The Foundation also have a Windows Server 2003 license that we would like to use to set up a test environment for developers. That way, they could write tests for functions, run them on Windows 2003, and implement/fix the right way on ReactOS. Method which is also called: test-driven development. Rather useful for us!</p>
<p>Finally, if I have still a bit of time (looks difficult!), I would like to finish all the things I have started/planned last year on ReactOS. But I guess it will not be that easy&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=18</wfw:commentRss>
		</item>
		<item>
		<title>Introducing the PierreFS file system</title>
		<link>http://www.pschweitzer.fr/?p=17</link>
		<comments>http://www.pschweitzer.fr/?p=17#comments</comments>
		<pubDate>Sat, 26 Nov 2011 22:28:11 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[FUSE]]></category>

		<category><![CDATA[Linux Programming]]></category>

		<category><![CDATA[PierreFS]]></category>

		<category><![CDATA[cern]]></category>

		<category><![CDATA[copyup]]></category>

		<category><![CDATA[driver]]></category>

		<category><![CDATA[file]]></category>

		<category><![CDATA[hat]]></category>

		<category><![CDATA[icalepcs]]></category>

		<category><![CDATA[lhcb]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[metadata]]></category>

		<category><![CDATA[red]]></category>

		<category><![CDATA[system]]></category>

		<category><![CDATA[union]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=17</guid>
		<description><![CDATA[It&#8217;s been a long time since the last blog update. One of the reasons for such an absence was that I was really busy at CERN. During my internship there (at LHCb experiment), my mission was to improve the way their diskless farm is working.
It was previously relying on the Red Hat diskless tools to [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time since the last blog update. One of the reasons for such an absence was that I was really busy at CERN. During my internship there (at LHCb experiment), my mission was to improve the way their diskless farm is working.</p>
<p>It was previously relying on the Red Hat diskless tools to allow ~15 nodes to run without disk, gathering their OS &amp; their data from another server. But, this system and its implementation by Red Hat is really limited. Furthermore, starting with RHEL6 (Red Hat Enterprise Linux 6), the support for those tools has been dropped. The LHCb was to switch to another method.</p>
<p>One of the solution that was immediately looked at is file systems union. File systems union allow merging several directories (called branches) into one, in a transparent way. Some of those directories can be in read-only mode. Then, changes will only be applied to the writeable directories. So, for LHCb, the underlying idea was to use file systems union to provide easily manageable nodes. One shared root file system would be managed, and then snapshots (one per node) would be merged with shared root into different directories (one per node). And then nodes would boot on their directory. That was, you have each node with its personality and own file system easily. Without the constraints of the Red Hat tools.</p>
<p>We evaluated several file systems union drivers to select the one that was fitting our needs the best. Unfortunately, if several weren&#8217;t that easy to deploy, they were even worse to use. They were designed for totally different use (like, for example, LiveCD).</p>
<p>This is why, during a weekend, I designed a new union file system that would match their needs. As I was more creative for concepts than for names, I temporarily called it &#8220;PierreFS&#8221;. Feel free to find another one. If this file system takes most of its concept from the legacy <a title="UnionFS file system" href="http://unionfs.filesystems.org" target="_blank">UnionFS file system</a>, it adds more features that are designed to highly reduce useless/redundant copyups (ie, files that were copied from read-only branch to read-write one, to be editable). One of the major feature of the PierreFS file system is its ability to split data &amp; metadata when performing a copyup. It can handle both separately, to prevent data redundancy and allow easy updates of data, while metadata are modified. It has also a feature that permits the deletion of some copyups when it detected their are useless. Finally, this file system comes with some limitations since it&#8217;s targeting specific configurations. It can only merge one read-only &amp; one writeable branches.</p>
<p>All the features described upper (including those from UnionFS) were implemented as a FUSE file system, to test viability of the file system and to validate the concepts. Unfortunately, this doesn&#8217;t include all the thought features. Some more like caching were first considered (and are still not dropped yet). The driver successfully passed our tests, and met LHCb expectations.</p>
<p>I&#8217;ve started portage to the Linux kernel as a driver for CERN. I hope I&#8217;ll be able to release it quickly. This work is once again based on UnionFS team work. This is a good basis to learn and understand.</p>
<p>You can find the FUSE driver at <a title="sourceforge.net" href="http://sourceforge.net/projects/pierrefs/" target="_blank">sourceforge.net</a> (no packaging has been done - won&#8217;t be done).</p>
<p>This file system has been presented during the <a title="ICALEPCS11" href="http://icalepcs2011.esrf.eu/" target="_blank">ICALEPCS11</a> conference at Grenoble, and has been described in the WEMMU05 paper &amp; poster (with a comparison with the other file systems). All the conference material will be available on the conference site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=17</wfw:commentRss>
		</item>
		<item>
		<title>ReactOS &#038; GSoC (and all the rest&#8230;)</title>
		<link>http://www.pschweitzer.fr/?p=16</link>
		<comments>http://www.pschweitzer.fr/?p=16#comments</comments>
		<pubDate>Tue, 22 Mar 2011 09:30:59 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[ReactOS]]></category>

		<category><![CDATA[Code]]></category>

		<category><![CDATA[Google]]></category>

		<category><![CDATA[ISIMA]]></category>

		<category><![CDATA[mentor]]></category>

		<category><![CDATA[PDF]]></category>

		<category><![CDATA[Presntation]]></category>

		<category><![CDATA[student]]></category>

		<category><![CDATA[Summer]]></category>

		<category><![CDATA[video]]></category>

		<category><![CDATA[Vimeo]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=16</guid>
		<description><![CDATA[The 18th of March has been quite a great day for the ReactOS project. Indeed, on that day, Google released the list of the accepted mentoring organisation for the Summer of Code. And for 2011, ReactOS is in. Last time the ReactOS project was accepted was in 2006. So, this has been something quite magic [...]]]></description>
			<content:encoded><![CDATA[<p>The 18th of March has been quite a great day for the ReactOS project. Indeed, on that day, Google released the list of the accepted mentoring organisation for the <a title="Google Summer of Code 2011 Home Page" href="http://www.google-melange.com/" target="_blank">Summer of Code</a>. And for 2011, ReactOS is in. Last time the ReactOS project was accepted was in 2006. So, this has been something quite magic for the project.</p>
<p>But, you may wonder: what are Google Summer of Code? The idea is simple. Each year, Google will select organisations (ie, Free Open Source Software projects) based on applications they send. Then, those organisations, called mentoring applications, will be able to ask &#8220;slots&#8221;. Those slots are students that the organisation will mentor on a project, an idea. The important part is that, to ensure students will come (and organisations will apply), Google is offering $5500 per completely finished mission ($5000 go to the student, and $500 to the organisation). That way, students who don&#8217;t have any internship can earn money during the summer, and FOSS organisations can earn money as well.</p>
<p>This year, the ReactOS will host 5 slots. Which means that we will welcome 5 five students. You can find some ideas of projects to work on <a title="Google Summer of Code 2011 Ideas" href="http://www.reactos.org/wiki/Google_Summer_of_Code_2011_Ideas" target="_blank">here</a>. But students are free to purpose another subject when sending an application. Students can&#8217;t apply yet and have to wait until the 28th of March (before, they have to learn a bit about the projects).</p>
<p>Mentors you may except to have on ReactOS aren&#8217;t known yet. But, you&#8217;re likely to find Aleksey Bragin in the list (it would be weird if he wasn&#8217;t in!). Actually, list will be known once students and projects will have been chosen. This is done that way to ensure that mentors will match at best subjects (and prevent any issue with the mentor). Anyway, several ReactOS developers already applied to be mentor. So no shortage of mentors in sight!</p>
<p>Another topic regarding ReactOS: I&#8217;ve been presenting ReactOS at the ISIMA on the 17th of February. Part of the presentation has been shot and you can find the uploaded video <a title="ReactOS presentation at the ISIMA" href="http://www.vimeo.com/20995856" target="_blank">here</a>. I may do another ReactOS presentation in France this year, but nothing has been confirmed yet. So, follow the ReactOS news for the moment!</p>
<p>I hope you&#8217;ll enjoy the video and the information given in. If you want to get the PDF used for the ReactOS presentation, you can find them <a title="[press-media] Index of /trunk/Events/2011 - ISIMA/Presentation" href="http://svn.reactos.org/svn/press-media/trunk/Events/2011%20-%20ISIMA/Presentation/" target="_blank">here</a>.</p>
<p>That&#8217;s all for the moment (nothing related to development yet). More will follow (about dev &amp; GSoC). And don&#8217;t hesitate to join the ReactOS project. GSoC are a great opportunity!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=16</wfw:commentRss>
		</item>
		<item>
		<title>Let&#8217;s go back to 2010</title>
		<link>http://www.pschweitzer.fr/?p=15</link>
		<comments>http://www.pschweitzer.fr/?p=15#comments</comments>
		<pubDate>Fri, 07 Jan 2011 11:20:16 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Linux Programming]]></category>

		<category><![CDATA[ReactOS]]></category>

		<category><![CDATA[Win32 Programming]]></category>

		<category><![CDATA[C++]]></category>

		<category><![CDATA[CC]]></category>

		<category><![CDATA[corruption]]></category>

		<category><![CDATA[FastFAT]]></category>

		<category><![CDATA[freeldr]]></category>

		<category><![CDATA[FsRtl]]></category>

		<category><![CDATA[heisspiter.net]]></category>

		<category><![CDATA[ipv6]]></category>

		<category><![CDATA[IRC]]></category>

		<category><![CDATA[IRCd]]></category>

		<category><![CDATA[manager]]></category>

		<category><![CDATA[memory]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[notifications]]></category>

		<category><![CDATA[NTFS]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=15</guid>
		<description><![CDATA[Indeed, now 2010 is over, it may be interesting to go back to it. Not for the same reasons that led the ReactOS to go back to 2010 (cf: r50529, a revert needed due to a bug on boot image handling). In fact, it is interesting to go back to 2010, just to see what [...]]]></description>
			<content:encoded><![CDATA[<p>Indeed, now 2010 is over, it may be interesting to go back to it. Not for the same reasons that led the ReactOS to go back to 2010 (cf: <a title="[reactps] Revision 50529)" href="http://svn.reactos.org/svn/reactos/?view=rev&amp;revision=50259" target="_blank">r50529</a>, a revert needed due to a bug on boot image handling). In fact, it is interesting to go back to 2010, just to see what has been done, what was planned, what has failed. Finally, what we can say and remember about that year.</p>
<p>First of all, I would like to speak about my servers. As you may know (or not) I currently own two servers, known as <a title="www.heisspiter.net" href="http://www.heisspiter.net" target="_blank">www.heisspiter.net</a> and <a title="www2.heisspiter.net" href="http://www2.heisspiter.net" target="_blank">www2.heisspiter.net</a>, and I also rent a third server at <a title="HÃ©bergement et solutions internet" href="http://www.ovh.com" target="_blank">OVH</a>, called <a title="www3.heisspiter.net" href="http://www3.heisspiter.net" target="_blank">www3.heisspiter.net</a>. I was not speaking about them, because I was not really taking care of them. And this led to many and important issues (bad performances, bots, and so on). During a weekend, I decided to switch www3 to ipv6, which finally worked. But, it made me understand that my servers needed love, somehow. So, now, I am working back on them. The idea that they have reached some maturity point and can work alone is definitely wrong.Â  Indeed, 2009 was already a pretty bad year for heisspiter.net and 2010 was terrible. No evolution, several issues, servers down, &#8230; A quick look at statistics show that people also stop coming on the server. And I cannot blame them. 2010 was a really bad year for heisspiter.net, and 2011 cannot be worse. I will just do my best not to make it the same.<br />
An encouraging note regarding heisspiter.net, at least. Some evolutions have started. I was talking about ipv6, but also a webmail for users arrived, <a title="www.heisspiter.net -&gt; upload" href="http://www.heisspiter.net/upload" target="_blank">upload service</a> is back, mail server has been fixed, servers software have been updated, and heisspiter.net internal tools fixed. This actually explains why heisspiter.net is more stable since December!</p>
<p>Other major point&#8230; Of course, ReactOS! You may have seen, reading my other posts that the project did important step into stability and features. Some rewrites, some parts becoming more mature. MM rewrite, with Heap rewrite (for user-mode land) force developers to fix the ReactOS code to corrupt less memory (or to less corrupt memory?). And this works. Especially when fixes are applied to those rewrites. This also comes after some hard year for ReactOS, with no releases, and nothing to release, due to broken trunk. But, here, it is past!<br />
My modest goal, for 2011, is to prove that ReactOS has gained some maturity now. Some testers are already pushing to get 0.4, and I would like to show we are not that far. And I will try to show it on my domain of work on ReactOS, ie filesystems and kernel. With the help of Johannes Anderwald, and Art Yerkes, I attempt to make ReactOS boot from Microsoft FastFAT driver. Johannes has brought some code for tunnels handling in FsRtl, Art code for MCBs and CC. Finally, I come with notifications (still) and motivation to make all that stuff working together (which is not, at the moment). This is a very, very interesting experiment since it kinda stresses ReactOS and forces me to work on ReactOS part I promised I would never work on (I am speaking of CC!). On another side, I will also keep on working on other parts of the kernel as I did previously, trying to improve it and match Windows 2003. I will also switch a bit on FreeLDR, some bugs are calling me there!</p>
<p>About personal projects, I have been quite active during 2010, even if I did not publish about them. One of the project I wanted to publish about before I forgot is a C++ garbage collector. I designed it for several uses, and finally it is more a memory manager than a garbage collector. Its purpose is simple: giving you memory whenever you need it and keeping track about it. It can also performs some operations on it to make your program debug easier such as: memory marking, memory zone tagging. It can also allocate non-paged memory, check against corruption, and so on. It has been designed to work in multi-threaded environment and provides functions for that. For example, when you share memory zones between threads, sometimes you even do not recall who is using what, how long. Here garbage collector becomes useful. Each threads when it uses a zone just needs to reference the memory zone. And once it is done, it dereferences it. Simple mechanism, but that ensure the memory zone will be released once every thread is done with it.<br />
I am not totally done with that project (that is perhaps why I did not publish about it yet) and I plan to finish it and make it a bit closer to a garbage collector. And giving it the ability to allocate and release objects.</p>
<p>Other project I have been working on (and I am still actively working on) is an IRCd &#8220;new generation&#8221; written in C++. Its purpose is quite simple, implementing the five RFC concerning IRC, optionally adding extra often used/needed features. But, the new thing is that it comes with services implemented in (if built with, of course!). This is quite new, and interesting in my opinion. When you need to rapidly deploy an IRCd, configuring both IRCd, services (when you found the good ones!) can be a pain. With that IRCd, everything comes in. Thus it makes services really efficient as they directly communicate with the server (in a proper way, nothing messy!). And there is no need for SVSMODE, SVSJOIN, etc, commands or equivalents, here you just use services. At the moment, the core IRCd is almost complete and works really well. Services are mostly non existant (excepted OpServ, obviously).<br />
For 2011, I plan to finish that IRCd, and perhaps to use it on heisspiter.net. Time will tell.</p>
<p>Finally, this is the shortened version, but there would be so much to say&#8230; Best thing is to keep reading ReactOS&#8217; mailing-lists and this blog to keep informed!</p>
<p>Happy new year ;).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=15</wfw:commentRss>
		</item>
		<item>
		<title>Coming this autumn in ReactOS</title>
		<link>http://www.pschweitzer.fr/?p=14</link>
		<comments>http://www.pschweitzer.fr/?p=14#comments</comments>
		<pubDate>Wed, 22 Sep 2010 22:02:35 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[ReactOS]]></category>

		<category><![CDATA[ARC]]></category>

		<category><![CDATA[BSOD]]></category>

		<category><![CDATA[EFI]]></category>

		<category><![CDATA[freeldr]]></category>

		<category><![CDATA[FSTUB]]></category>

		<category><![CDATA[GPT]]></category>

		<category><![CDATA[initialisation]]></category>

		<category><![CDATA[Io]]></category>

		<category><![CDATA[Kernel]]></category>

		<category><![CDATA[Loader]]></category>

		<category><![CDATA[manager]]></category>

		<category><![CDATA[mount]]></category>

		<category><![CDATA[names]]></category>

		<category><![CDATA[ntldr]]></category>

		<category><![CDATA[ntoskrnl]]></category>

		<category><![CDATA[partition]]></category>

		<category><![CDATA[PnP]]></category>

		<category><![CDATA[table]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=14</guid>
		<description><![CDATA[If you are following the ReactOS community, you may have spotted some information about my recent work there. Nothing linked to notifications that time. Let&#8217;s come back on how I had the idea to work on that part of ReactOS&#8230;
While looking at regressions, I found an interesting issue in the bug #5145. In fact, it [...]]]></description>
			<content:encoded><![CDATA[<p>If you are following the ReactOS community, you may have spotted some information about my recent work there. Nothing linked to notifications that time. Let&#8217;s come back on how I had the idea to work on that part of ReactOS&#8230;</p>
<p>While looking at regressions, I found an interesting issue in the <a title="REGRESSION: ReactOS crashes on real hw with 0x7b bugcheck, when CDROM is set to SLAVE" href="http://www.reactos.org/bugzilla/show_bug.cgi?id=5145" target="_blank">bug #5145</a>. In fact, it was not the issue itself, but the way it was appearing. It was producing a BSOD with bug check code <span title="REGRESSION: ReactOS crashes on real hw with 0x7b bugcheck, when CDROM is set to SLAVE">0&#215;7B (INACCESSIBLE_BOOT_DEVICE), I deeply had the feeling it should have failed earlier with the bug described. So, I looked down in the code and spotted why it was not failing earlier. Indeed, our ARC names handling was pretty old and not returning appropriate information (it was designed in a NT4.0 way, and not returning whether it had failed).</span></p>
<p>When booting, both ReactOS and Windows need a bootloader. On Windows, it&#8217;s called ntldr (up to Windows 2003; starting with Windows Vista, Microsoft switched to winload &amp; bootmgr) and on ReactOS it&#8217;s called FreeLdr (or even WinLdr). This loader is in charge of loading the kernel (ntoskrnl or ntkrnlmp on MP architectures) into memory to process to system boot. While starting the kernel it also provides a <a title="LOADER_PARAMETER_BLOCK" href="http://doxygen.reactos.org/dd/d1f/structLOADER__PARAMETER__BLOCK.html" target="_blank">LOADER_PARAMETER_BLOCK</a>. This structure contains some important information about the system state, especially the partition from which its starts and on which the system is located, and its disks. But, the loader is providing those booting data using ARC names (example of ARC name: multi(0)disk(0)rdisk(0)partition(2)). You may have already seen that Windows is not using such names (nor is ReactOS). It is using \Device\Harddisk0\Partition2. So, that ARC names handling is responsible for: linking ARC names and &#8220;Windows&#8221; names, but also for finding on which device (and more specifically, on which partition) the system is booting. If it cannot find it, boot process is aborted, and system is gracefully shut down by a bug check using code 0&#215;69 (IO1_INITIALIZATION_FAILED). This means that IO Initialisation Phase 1 failed. That was the error I was excepting to show up, instead of that inaccessible boot device (which means that boot device has been found&#8230;).</p>
<p>That is why, when looking at ReactOS ARC names handling code (populated with FIXMEs and hacks), I took an important decision: rewriting it properly, and in a Windows NT5 way. It was important, because the purpose was switching our kernel from a major revision to another higher revision. From NT4.0 to NT5.2 (Windows 2003). But that version change was partly due to two new things: Windows Mount Manager and <a title="Technical Note TN2166: Secrets of the GPT" href="http://developer.apple.com/library/mac/#technotes/tn2006/tn2166.html" target="_blank">GPT</a> handling. Indeed starting with Windows 2000 (NT5.0), Windows has been using a Mount Manager, used to mount volumes in a PNP way, and that was already creating them their device name (plus referencing them to registry). So, new ARC names handling is taking advantage of that mount manager to do less work. And it is also using new kernel functions (old one having been extended) to manage partitions (as partition table can be either in MBR format or in GPT format).</p>
<p>So, that rewrite started being a real challenge. Especially since I wanted to adopt a serious implementation way. I was implementing ALL called functions, in order to provide a clean implementation, and also a working one, that would not come with a bunch of stubs. Luckily (or smartly, depends on the way you see it), Microsoft guys left in ARC names handling a legacy mode (coming from NT4.0) in case some drivers would not answer to Mount Manager PNP requests. This meant I did not need to implement the whole Mount Manager in ReactOS (we read an empty registry table) and ReactOS can still boot using legacy mode! First issue avoided. But next issues could not be avoided. ARC names handling is calling <a title="IoReadPartitionTableEx (Windows Driver Kit)" href="http://msdn.microsoft.com/en-us/library/ff561454%28v=VS.85%29.aspx" target="_blank">IoReadPartitionTableEx</a>() responsible for reading both MBR &amp; GPT. So, I had to implement it&#8230; And to add some new features to ReactOS.</p>
<p>I guess you know understand what will come soon in ReactOS. Yes, the ReactOS kernel will now handle properly the GPT. Do not misread me, I am only talking about the kernel. All the other parts of the OS, not relying on the kernel are still unaware about what GPT is. I recently showed my results through a screenshot you can find <a href="http://pierre.heisspiter.net/rostests/EFI_GPT.png" target="_blank">here</a>. On that screen, you can see ReactOS booting on CD to permit its install, but you can see new IoReadPartitionTableEx() in action, first displaying the four partitions it found in MBR on first disk, and then displaying the two partitions (over 128) it found on GPT with their information. As you may have read, everything is not working yet, it is also is bit hacked to produce such result (GPT partition table checksum computation just fails, as error message shows). Once I was done with ARC names handling, and needed functions with GPT, as trunk was still locked, I decided to finish implementing all the missing FSTUB API. In fact, were missing all functions that were dealing with GPT. So finally, that &#8220;small&#8221; patch that aimed to rewrite a part of the kernel to fix some bugs and provide a proper implementation ended in a full implementation of a package in the kernel.</p>
<p>But, everything is not that great. First of all, an issue raised in the early while implementing GPT in ReactOS kernel, which made me <a title="[ros-dev] A room for improvement?" href="http://reactos.org/archives/public/ros-dev/2010-September/013392.html" target="_blank">mail</a> the ros-dev mailing-list. Is there a room for improvement? I do think so, especially since I am nearly done with it. Microsoft is not really matching the EFI standard (and not only on the point I explained in my mail) and ReactOS could implement it properly. It would be a nice advert for the project. Furthermore, to manage GPT properly, ReactOS would need a better storage stack. Most of our current storage stack comes from NT4 DDK (as license permitted it). But if kernel drops NT4 compatibility, it needs a bit more from storage stack. I quickly implemented basic needs. But I could not implement deeper needs. Those are just hacked away in the storage stack at the moment. And since no one in the project really understands how storage stack works, it will be a blocking issue. Finally, I still need to fix some issues in the code I implemented to make it working properly. This may take some more time&#8230;</p>
<p>Anyway, in spite of those issues, I really hope I will able to commit a first patch with basic features working in ReactOS this autumn. Only advice I can give you about that is to follow ReactOS&#8217; life, not to miss that. Talking of which, looks like a release is coming for ReactOS <img src='http://www.pschweitzer.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=14</wfw:commentRss>
		</item>
		<item>
		<title>React0S&#8217; status</title>
		<link>http://www.pschweitzer.fr/?p=13</link>
		<comments>http://www.pschweitzer.fr/?p=13#comments</comments>
		<pubDate>Thu, 19 Aug 2010 15:35:54 +0000</pubDate>
		<dc:creator>pschweitzer</dc:creator>
		
		<category><![CDATA[ReactOS]]></category>

		<category><![CDATA[blockers]]></category>

		<category><![CDATA[cache]]></category>

		<category><![CDATA[CC]]></category>

		<category><![CDATA[corruption]]></category>

		<category><![CDATA[Filesystem]]></category>

		<category><![CDATA[FSD]]></category>

		<category><![CDATA[FsRtl]]></category>

		<category><![CDATA[memory]]></category>

		<category><![CDATA[MM]]></category>

		<category><![CDATA[notifications]]></category>

		<category><![CDATA[PnP]]></category>

		<category><![CDATA[release]]></category>

		<category><![CDATA[rewrite]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.pschweitzer.fr/?p=13</guid>
		<description><![CDATA[It&#8217;s been a long since I last wrote about ReactOS. This was mainly due to me being away from the project. Or, at least, passive. I was working on notifications, used by FSD (File System Driver). I finally ended my awayness period by writing a documentation about notifications, contenting all the information I gathered during [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long since I last wrote about ReactOS. This was mainly due to me being away from the project. Or, at least, passive. I was working on notifications, used by FSD (File System Driver). I finally ended my awayness period by writing a documentation about notifications, contenting all the information I gathered during my research about them. Then, I actively started working on them, coding them into ReactOS.</p>
<p>First of all, let&#8217;s quickly sum up what notifications are. To make it short, notifications purpose is to notify someone when a change occurs. In an OS, it means you can notify when a volume is mounted, when a file is added to a directory, when a directory is deleted, and so on. There are two ways to deal with those notifications in Windows/ReactOS. State notifications (mount, unmount, lock, unlock) are handled by PnP manager. On disk data changes are handled by both the FSD and FsRtl through a package of functions. So, how to use them? A client application (mostly in user-mode) registers a notification and waits for it to be complete. That&#8217;s that easy. Internally, things are getting harder, but the system are equivalent. For state notifications, PnP manager maintain a list of registered notifications. Each time a state change occurs, the driver (or even the kernel) responsible for that change has to call a PnP function which is IoReportTargetDeviceChange() or its asynchronous implementation: IoReportTargetDeviceChangeAsynchronous(). For FSD, there&#8217;s even an easier way to notify which is calling FsRtlNotifyVolumeEvent() giving the event that occured. FsRtl will do all the needed stuff and call PnP manager. Once PnP manager is called with a reported change, it just browses the notifications list, finds those that matches the report, and complete them. Caller is then informed about the change. What about on disk changes now? It works the same, just replace PnP with FsRtl. FsRtl maintains the list on FSD demand, browse notifications, takes reports and so on. To register a notification, FSD just calls FsRtlNotifyFullChangeDirectory(), and to report a change: FsRtlNotifyFullReportChange(). It doesn&#8217;t have to do more.</p>
<p>So, now, what&#8217;s present in ReactOS, and what&#8217;s not?</p>
<p>That question is hard to answer. But, let&#8217;s try to make the answer as clear as possible.</p>
<ul>
<li>About state changes notifications, technically, everything&#8217;s present in ReactOS kernel since revision <a title="r47837" href="http://svn.reactos.org/svn/reactos?view=rev&amp;revision=47837" target="_blank">r47837</a>. It isn&#8217;t implemented as it&#8217;s in Windows, but that&#8217;s already a good begin for having such notifications. I also added some reports. For example, FAT driver reports when it successfully mounts a volume. But, in fact, nothing works. For the simple reason that, IoReport* functions need a PDO (Physical Device Object) to perform the report. Or, Windows (and ReactOS as well) calls the drivers to get the given PDO. In fact, you have a stack of drivers. Higher level is FSD, and lower level is the one that communicates with disk. So, to get the PDO, Windows calls the higher level driver, to ask for relations, and PDO. Then, drivers pass the request to the driver lower they know about in the stack until the last one which complete the request, giving the PDO. It goes down the stack. This side of notifications isn&#8217;t implemented as it&#8217;s done using PNP requests, and our drivers doesn&#8217;t handle them. I recently implemented that support to our FAT driver (<a title="r48560" href="http://svn.reactos.org/svn/reactos?view=rev&amp;revision=48560" target="_blank">r48560</a>), but as the rest of the drivers doesn&#8217;t handle it, it does fix nothing. Work will have to be done!</li>
<li>About on disk changes notifications, that&#8217;s the exact contrary. They work, but aren&#8217;t implemented. That could look a bit weird, but that&#8217;s not. In fact, those notifications are working in my working copy, but I didn&#8217;t release them yet, to have time fixing them. You may have already seen the screens I published about them: <a title="First test" href="http://pierre.heisspiter.net/rostests/notifications.png" target="_blank">http://pierre.heisspiter.net/rostests/notifications.png</a> &amp; <a title="Third test" href="http://pierre.heisspiter.net/rostests/notifications3.png" target="_blank">http://pierre.heisspiter.net/rostests/notifications3.png</a>. First was the earliest test I did that worked. Full of bugs, of leakages, but it worked. In fact, it&#8217;s showing a Microsoft applications designed to test notifications (why using something else? :P) that you can find <a title="Obtaining Directory Change Notifications" href="http://msdn.microsoft.com/en-us/library/aa365261%28v=VS.85%29.aspx" target="_blank">here</a>. The way it works is easy. You start it giving a directory, and it will register notification on that directory for files changes. And a notification in root directory, for directories changes. So, on first screenshot, you see the application monitoring C:\ drive, and me saving a new file to C:\ called newfile.txt. The application successfully got the report. But given the code, that time, I was really lucky it worked! Second screen comes later, and shows the both notifications working. Saving two files, creating a directory, and the applications (same app started twice with two different directories) printing about both. There, code was getting cleaner and cleaner. Now, code is in a consolidation state. Which means I&#8217;m trying to make it rock solid, and I also try to understand details I still don&#8217;t get. I hope I may commit that code soon. First, notifications won&#8217;t be as complete as in Windows, but it&#8217;s a good step into having them. Only issue is that nothing is using them on ReactOS. No application (even not explorer) is registering notifications, and no driver is reporting changes (ie FastFAT/CDFS). So, something will have to be done there as well.</li>
</ul>
<p>Now, what else? After having fought to get a trunk freeze, I switched to fixing ReactOS instead of keeping on working on notifications. As you might have noticed if you follow the project, the OS recently regressed to a state ever reached. Only a few applications are working, having ReactOS booting is hard, it appears those are due to some memory corruption, deep in the OS. Knowing the origin of such corruptions is quite hard. Indeed, recently, MM (Memory Manager) has been rewritten, and made less permissive than the version we had previously. So, we&#8217;ve got three choices: or new MM is broken, or rewrite throw some light on defecting ReactOS components (even in the kernel), or&#8230; both! Personally, I tend to believe that the last solution is ours. Even if that sucks. Such <a title="r48562" href="http://svn.reactos.org/svn/reactos?view=rev&amp;revision=48562" target="_blank">revisions</a> show that MM is responsible for a part. Now, what? All the rest is OK? I don&#8217;t think so, either think Aleksey Bragin, coordinator of the project, and developer as well. We both agree after short talk that our memory corrupter could be FSD. Indeed, those have been designed and coded in the early ages of ReactOS, when kernel was poor. And then, they have been more hacked than improved to take advantage of kernel new features. I would even go farther actually. Saying that FSD and kernel are both responsible for that status. FSD drivers for calling the kernel with bad/broken parameters and the kernel for lacking proper checks. I&#8217;m thinking to a particular part of the kernel here. I&#8217;m talking about CC (Cache Controller). This part is involved in caching data, delaying read/write to the disk. So, it&#8217;s a heavy MM client. Our current implementation is really poor due to the complexity of the caching process. Checks are low. So, this plus broken driver can make huge damages. I think that&#8217;s the situation we&#8217;re in. Time will tell. I&#8217;m currently trying to track any (really, many are&#8230; Only a bit!) broken call to CC by our FSD that might have side effects. And I&#8217;m as well thinking about a hackish solution that may be found. For whatever reason, my working copy, with all the changes to FSD and kernel it has (and even to user-mode components!) is largely more stable than trunk. Why? I don&#8217;t know. But an hackish solution could be found in, just to help releasing and pushing fastfat_new to replace our current old fastfat driver. But, I&#8217;ll talk about fastfat_new and all the projects we (Aleksey and I) have about it in another entry.</p>
<p>Just keep in touch with the project, we&#8217;ll keep impressing you, in spite of those&#8230; blockers! Once those will be fixed, next release will be great. Really.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschweitzer.fr/?feed=rss2&amp;p=13</wfw:commentRss>
		</item>
	</channel>
</rss>
