mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* How come dd if=/dev/zero of=/nfs/dev/null does not send packets over the network?
@ 2004-06-02 12:04 Piszcz, Justin Michael
  2004-06-02 12:13 ` Christoph Hellwig
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Piszcz, Justin Michael @ 2004-06-02 12:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: Al Piszcz

root@jpiszcz:~# mkdir /p500/dev
root@jpiszcz:~# mount 192.168.0.253:/dev /p500/dev
root@jpiszcz:~# echo blah > /p500/dev/null
root@jpiszcz:~# ls -l /p500/dev/null
crw-rw-rw-  1 root sys 1, 3 Jul 17  1994 /p500/dev/null
root@jpiszcz:~# dd if=/dev/zero of=/p500/dev/null

6179737+0 records in
6179736+0 records out

Instead it treats it as a local block device?

Kernel 2.6.5.



^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: How come dd if=/dev/zero of=/nfs/dev/null does not send packets over the network?
@ 2004-06-02 12:27 Piszcz, Justin Michael
  0 siblings, 0 replies; 8+ messages in thread
From: Piszcz, Justin Michael @ 2004-06-02 12:27 UTC (permalink / raw)
  To: Måns Rullgård, linux-kernel, Al Piszcz

Thanks, I was thinking since /dev/null isn't a ``device'' like a hard drive is; I thought this would work but I now see why it doesn't, thanks.

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Måns Rullgård
Sent: Wednesday, June 02, 2004 8:20 AM
To: linux-kernel@vger.kernel.org
Subject: Re: How come dd if=/dev/zero of=/nfs/dev/null does not send packets over the network?

"Piszcz, Justin Michael" <justin.piszcz@mitretek.org> writes:

> root@jpiszcz:~# mkdir /p500/dev
> root@jpiszcz:~# mount 192.168.0.253:/dev /p500/dev
> root@jpiszcz:~# echo blah > /p500/dev/null
> root@jpiszcz:~# ls -l /p500/dev/null
> crw-rw-rw-  1 root sys 1, 3 Jul 17  1994 /p500/dev/null
> root@jpiszcz:~# dd if=/dev/zero of=/p500/dev/null
>
> 6179737+0 records in
> 6179736+0 records out
>
> Instead it treats it as a local block device?
>
> Kernel 2.6.5.

That is how it's supposed to work.  Think about root on nfs.

-- 
Måns Rullgård
mru@kth.se

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



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

end of thread, other threads:[~2004-06-02 20:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-02 12:04 How come dd if=/dev/zero of=/nfs/dev/null does not send packets over the network? Piszcz, Justin Michael
2004-06-02 12:13 ` Christoph Hellwig
2004-06-02 12:19 ` Grzegorz Kulewski
2004-06-02 12:20 ` Måns Rullgård
2004-06-02 12:39 ` Richard B. Johnson
2004-06-02 20:37 ` Horst von Brand
2004-06-02 20:46 ` Arthur Perry
2004-06-02 12:27 Piszcz, Justin Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®