<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5500865195691325806</id><updated>2011-04-21T15:51:24.854-07:00</updated><category term='gsoc'/><category term='monotone'/><category term='libdevmapper'/><category term='lvm'/><category term='NetBSD'/><category term='device-mapper'/><title type='text'>NetBSD blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://haadbsd.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://haadbsd.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>haad</name><uri>http://www.blogger.com/profile/15911459227537554907</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5500865195691325806.post-8742383097076527442</id><published>2008-06-10T04:34:00.000-07:00</published><updated>2008-06-10T05:25:43.931-07:00</updated><title type='text'>device-mapper and libdevmapper ioctl interface</title><content type='html'>Sorry for the silence I was busy with my GSOC project, but I have really great news for you today. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I have switched both NetBSD device-mapper and libdevmapper to new ioctl interface which uses property lists library to send/receive information.  Main motivation was &lt;/div&gt;&lt;div&gt;that old ioctl interface is really messy and hard to maintain, extend and I have had to include GPL licensed file into my driver {dm-ioct.h} and because of it there can be some licensing issues.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;New proplib interface is defined in netbsd/netbsd-dm.h file. I have added compat file which translates new proplib dictionary into struct dm_ioctl which is used in all libdevmapper this file is called libdm_netbsd.c .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I have uploaded my code to www.netbsd.org/~haad/dm20080610.tar.bz2 so everybody can review it.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5500865195691325806-8742383097076527442?l=haadbsd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haadbsd.blogspot.com/feeds/8742383097076527442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5500865195691325806&amp;postID=8742383097076527442' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/8742383097076527442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/8742383097076527442'/><link rel='alternate' type='text/html' href='http://haadbsd.blogspot.com/2008/06/device-mapper-and-libdevmapper-ioctl.html' title='device-mapper and libdevmapper ioctl interface'/><author><name>haad</name><uri>http://www.blogger.com/profile/15911459227537554907</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5500865195691325806.post-5906186589021896542</id><published>2008-05-26T14:26:00.000-07:00</published><updated>2008-05-26T14:47:28.678-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='libdevmapper'/><category scheme='http://www.blogger.com/atom/ns#' term='NetBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='gsoc'/><category scheme='http://www.blogger.com/atom/ns#' term='lvm'/><title type='text'>LVM2tools and libdevmapper update</title><content type='html'>After two of my university exams I spent this weekend with porting lvm2tools and libdevmapper to NetBSD. If you ask "Why you said that they already work before", &lt;div&gt;I have to say that they worked with to many hacks and workarounds such as:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;dependency on mounted procfs with -o linux option.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I have rewritten some lvm2tools/lib/filter/filter.c file to use NetBSD sysctl kern.drivers &lt;/div&gt;&lt;div&gt;knob instead of linux /proc/devices file. I have to say that get data with sysctl is much more easier than parsing text files from procfs .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;With all these changes in lvm2tools I can now use pv* and vg* commands to manipulate volume groups, physical volumes. There are some issues with lv* &lt;/div&gt;&lt;div&gt;commands. Problem is located somewhere in libdevmapper I have to &lt;/div&gt;&lt;div&gt;investigate this further.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In my local branch I have also propagated changes in versiom  2.02.34-cvs (2008-01-31) of lvm2tools to my org.netbsd.haad.dm.lvm2 branch. I have to fix some conflicts &lt;/div&gt;&lt;div&gt;and I will push this update to public repo.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In libdevmapper I have changed lib/ioctl/libdm_iface.c: get_proc_major to use sysctl again and not to use procfs. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All changes can be seen here &lt;span class="Apple-style-span"   style="  white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family:'Lucida Grande';font-size:14px;"&gt;http://147.175.97.81:8080/dm/.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5500865195691325806-5906186589021896542?l=haadbsd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haadbsd.blogspot.com/feeds/5906186589021896542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5500865195691325806&amp;postID=5906186589021896542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/5906186589021896542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/5906186589021896542'/><link rel='alternate' type='text/html' href='http://haadbsd.blogspot.com/2008/05/lvm2tools-and-libdevmapper-update.html' title='LVM2tools and libdevmapper update'/><author><name>haad</name><uri>http://www.blogger.com/profile/15911459227537554907</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5500865195691325806.post-7004090480647288431</id><published>2008-05-09T15:08:00.000-07:00</published><updated>2008-05-09T15:38:54.587-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NetBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='gsoc'/><category scheme='http://www.blogger.com/atom/ns#' term='device-mapper'/><title type='text'>Device-mapper driver</title><content type='html'>I want to explain in what state my driver is currently how to test etc.. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Actually I have implemented 3 simple targets[1] inside NetBSD device-mapper. I can &lt;/div&gt;&lt;div&gt;create virtual block device based on linear target(in linux LVM it is Logical volume).  &lt;/div&gt;&lt;div&gt;I can create file-system on it and mount it. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For now I have to use this command to create file-system on my dm device&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;/div&gt;&lt;div&gt;newfs -F -s {size} /dev/mapper/{char  device}&lt;/div&gt;&lt;div&gt;&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;DIOWEDGEINFO and DIOCGDINFO ioctls are not implemented now and therefore &lt;/div&gt;&lt;div&gt;newfs can find size of virtual block device. These ioctls are next on my task list.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Other more sophisticated targets like stripe, mirror, snapshot are not implemented but with help of reinoud@ I have added support for them in to C structures.  Structure layout can be found at [2].&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Yesterday I have tried lvm2tools with my current driver and they mostly refuse work on NetBSD.  I will look at this next I want to finish this before coding period for SOC project starts. Because in summer I will have no time to work on device-mapper backend I will be busy with rewriting of interface to functional state.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;[1]&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Trebuchet MS'; font-size: 16px; "&gt;http://people.redhat.com/agk/talks/FOSDEM_2005/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Trebuchet MS'; font-size: 16px;"&gt;[2]http://147.175.97.81:8080/dm/revision/file/8a70e9e68ab656befa48f3f58b08a6c65f9a2f9e/dm.h&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Trebuchet MS'; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5500865195691325806-7004090480647288431?l=haadbsd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haadbsd.blogspot.com/feeds/7004090480647288431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5500865195691325806&amp;postID=7004090480647288431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/7004090480647288431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/7004090480647288431'/><link rel='alternate' type='text/html' href='http://haadbsd.blogspot.com/2008/05/device-mapper-driver.html' title='Device-mapper driver'/><author><name>haad</name><uri>http://www.blogger.com/profile/15911459227537554907</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5500865195691325806.post-7727854038512935180</id><published>2008-05-08T13:19:00.000-07:00</published><updated>2008-05-08T13:29:11.739-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gsoc'/><category scheme='http://www.blogger.com/atom/ns#' term='monotone'/><title type='text'>Monotone VSC</title><content type='html'>&lt;div&gt;Monotone is distributed VCS with many interesting features. I use it for my projects daily.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Currently I use Monotone VCS to manage my projects. I have created monotone database where I keep my soc-project sources/history. This database is available at &lt;div&gt;mtn://147.175.97.81. If you don't have monotone installed but you want to see my &lt;/div&gt;&lt;div&gt;sources/history I have installed viewmtn for this purpose. viewmtn is available at &lt;/div&gt;&lt;div&gt;http://147.175.97.81:8080. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Because I use Monotone to manage my sources and not CVS I had to find way how &lt;/div&gt;&lt;div&gt;to push sources from monotone directly to sf netbsd-soc CVS repository. Solution for &lt;/div&gt;&lt;div&gt;this is net.venge.monotone.cvssync branch in monotone repository.  With monotone from this branch I can push, sync, takeover CVS repository. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5500865195691325806-7727854038512935180?l=haadbsd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haadbsd.blogspot.com/feeds/7727854038512935180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5500865195691325806&amp;postID=7727854038512935180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/7727854038512935180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/7727854038512935180'/><link rel='alternate' type='text/html' href='http://haadbsd.blogspot.com/2008/05/monotone-vsc.html' title='Monotone VSC'/><author><name>haad</name><uri>http://www.blogger.com/profile/15911459227537554907</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5500865195691325806.post-7389892547590915372</id><published>2008-05-02T23:20:00.000-07:00</published><updated>2008-05-02T23:21:41.695-07:00</updated><title type='text'>Welcome here!</title><content type='html'>This is my first post on my blog. I will use this blog to show my progress on my SOC project.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5500865195691325806-7389892547590915372?l=haadbsd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://haadbsd.blogspot.com/feeds/7389892547590915372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5500865195691325806&amp;postID=7389892547590915372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/7389892547590915372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5500865195691325806/posts/default/7389892547590915372'/><link rel='alternate' type='text/html' href='http://haadbsd.blogspot.com/2008/05/welcome-here.html' title='Welcome here!'/><author><name>haad</name><uri>http://www.blogger.com/profile/15911459227537554907</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
