<div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">22.10.2018, 12:28, "jitendra kumar khasdev" <jkhasdev@gmail.com>:</div><blockquote xmlns="http://www.w3.org/1999/xhtml" type="cite"><div>Hi All,<div> </div></div></blockquote><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Hello,</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">I think you can do this but should look at the kernel/howto documents.</div><div xmlns="http://www.w3.org/1999/xhtml">dd command does not already do this? May be not write when singles and async.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Check out blkdev_write and blk_queue_write  kernel functions.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">maybe should read it:</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"><a href="https://www.kernel.org/doc/Documentation/block/stat.txt">https://www.kernel.org/doc/Documentation/block/stat.txt</a></div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">I sure you can give more details and  @Valdis have very information :)</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Ozgur</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><blockquote xmlns="http://www.w3.org/1999/xhtml" type="cite"><div><div>Is there any way, by which I could write/update the sectors of a file (which already exist or created in user space) from the block layer interfaces?</div><div> </div><div>---</div><div>Jitendra</div></div></blockquote>