LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-05-2011, 12:58 AM   #1
alphy
LQ Newbie
 
Registered: Nov 2006
Posts: 16

Rep: Reputation: 0
Question Reg: /dev/loop0


Hi,

I have a query regarding /dev/loop0 device.

Let's say that I execute the following steps

root@ubuntu:/tmp# dd if=/dev/zero of=test.img bs=1024 count=300000
root@ubuntu:/tmp# losetup /dev/loop0 test.img
root@ubuntu:/tmp# mkfs -t ext3 /dev/loop0
root@ubuntu:/tmp# mount /dev/loop0 /tmp/mnt

Now, if I create & write into a file /tmp/mnt/fileOne,
will there be a any overhead compared to writing a file directly on /tmp/fileOne?

The difference is that, in the first case I am writing into the /dev/loop0 device. I understand that the /dev/loop0 will have its own inode table and other entries required to retrieve/access the file.

But would there be any difference related to read/write buffers allocated to the device.

Will there be two levels of indirection in this case?
(i,e) A separate RW buffer for /dev/loop0 taken care of by the loop device driver and another level of RW buffer for the physical harddrive?

Any pointers in this regard would be useful.

Thanks,
Alphone
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to seek on /dev/loop0 ankit_justdoit Linux - Newbie 2 11-01-2010 06:40 AM
SLE11 mount -o loop displays /dev/loop0 instead of iso file name wendycray SUSE / openSUSE 4 03-22-2010 10:20 AM
Trying to install Mint 8 but cannot mount /dev/loop0 dflo404 Linux - Laptop and Netbook 2 02-14-2010 11:13 AM
Mandriva 2006 fails install with "set_loop failed on /dev/loop0" iguest Mandriva 5 05-07-2006 01:16 PM
How can I attach a compressed file to /dev/loop0 (for filesystem image recovery)? rjlee Linux - General 0 09-26-2004 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration