<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'using open(), etc. to move data on a disk with mounted partitions' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'using open(), etc. to move data on a disk with mounted partitions' posted on the 'LINUX programming' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 05:52:07 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 05:52:07 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>using open(), etc. to move data on a disk with mounted partitions</title>
      <link>http://www.programmersheaven.com/mb/Linux/431087/431087/using-open-etc-to-move-data-on-a-disk-with-mounted-partitions/</link>
      <description>I need to be able to move data around a disk that has mounted&lt;br /&gt;
partitions on Linux. I am not touching data inside the mounted&lt;br /&gt;
partitions or the MBR, only the free space around it or unmounted&lt;br /&gt;
partitions. So, for example, I would need access to "/dev/sdb" while&lt;br /&gt;
"/dev/sdb1" is mounted.&lt;br /&gt;
      &lt;br /&gt;
  Currently I am using libparted functions but the move is giving me&lt;br /&gt;
corruption when the disk is busy. Would the system call open(pathname,&lt;br /&gt;
flags) work here? If I use open() are there any major gotchas I should&lt;br /&gt;
be aware of? Also, what flags would be a good idea?  I'll need&lt;br /&gt;
O_LARGEFILE and O_NOATIME but I am wondering about O_DIRECT for&lt;br /&gt;
example.&lt;br /&gt;
&lt;br /&gt;
Thank you.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/431087/431087/using-open-etc-to-move-data-on-a-disk-with-mounted-partitions/</guid>
      <pubDate>Sun, 27 Jan 2013 12:57:10 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
  </channel>
</rss>