All of lore.kernel.org
 help / color / mirror / Atom feed
* writes to unmounted partitions
@ 2012-11-17 10:29 Prashant Shah
       [not found] ` <50A7BD65.9030703@gmail.com>
  2012-11-18  1:59 ` Mulyadi Santosa
  0 siblings, 2 replies; 4+ messages in thread
From: Prashant Shah @ 2012-11-17 10:29 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I am confused on how does Linux kernel handle writes done directly to
the /dev/sda3 partitions which is not even mounted.

Is the kernel even aware of such writes, does it go though the request
queue, I/O scheduler, etc ? Is it possible to monitor such writes ?

Regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* writes to unmounted partitions
       [not found] ` <50A7BD65.9030703@gmail.com>
@ 2012-11-17 18:41   ` Prashant Shah
  0 siblings, 0 replies; 4+ messages in thread
From: Prashant Shah @ 2012-11-17 18:41 UTC (permalink / raw)
  To: kernelnewbies

Hi Asutosh,

> It does a raw read and write. The I/O operations go through request queue
> and I/O scheduler but not through any file-system. The writes and reads
> would start from the offset that is provided in the read and write call.
>
>>> Is it possible to monitor such writes ?
> Please explain what you mean by monitor ?

I meant how can I track the reads/writes happening to the unmounted
partitions from within a kernel module ? I can do that easily when the
partition is mounted.

Regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* writes to unmounted partitions
  2012-11-17 10:29 writes to unmounted partitions Prashant Shah
       [not found] ` <50A7BD65.9030703@gmail.com>
@ 2012-11-18  1:59 ` Mulyadi Santosa
  2012-11-19  4:54   ` Prashant Shah
  1 sibling, 1 reply; 4+ messages in thread
From: Mulyadi Santosa @ 2012-11-18  1:59 UTC (permalink / raw)
  To: kernelnewbies

Hi..

On Sat, Nov 17, 2012 at 5:29 PM, Prashant Shah <pshah.mumbai@gmail.com> wrote:
> Hi,
>
> I am confused on how does Linux kernel handle writes done directly to
> the /dev/sda3 partitions which is not even mounted.
>
> Is the kernel even aware of such writes, does it go though the request
> queue, I/O scheduler, etc ? Is it possible to monitor such writes ?

IIRC, blktrace is designed to monitor such I/O events at the block
level. Try it :)

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* writes to unmounted partitions
  2012-11-18  1:59 ` Mulyadi Santosa
@ 2012-11-19  4:54   ` Prashant Shah
  0 siblings, 0 replies; 4+ messages in thread
From: Prashant Shah @ 2012-11-19  4:54 UTC (permalink / raw)
  To: kernelnewbies

Hi,

> IIRC, blktrace is designed to monitor such I/O events at the block
> level. Try it :)

Ok I will try that. I was thinking about it and something that made it
clear to me is : "Since its writing to the actual disk through
/dev/sdaX the kernel knows about it, since its the one that is
translating the writes from the /dev/sdaX file to the actual disk"

Regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-19  4:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-17 10:29 writes to unmounted partitions Prashant Shah
     [not found] ` <50A7BD65.9030703@gmail.com>
2012-11-17 18:41   ` Prashant Shah
2012-11-18  1:59 ` Mulyadi Santosa
2012-11-19  4:54   ` Prashant Shah

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.