RE: How come dd if=/dev/zero of=/nfs/dev/null does not send packets over the network?

From: Piszcz, Justin Michael
Date: Wed Jun 02 2004 - 07:29:36 EST


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@xxxxxxxxxxxxxxx [mailto:linux-kernel-owner@xxxxxxxxxxxxxxx] On Behalf Of Måns Rullgård
Sent: Wednesday, June 02, 2004 8:20 AM
To: linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: How come dd if=/dev/zero of=/nfs/dev/null does not send packets over the network?

"Piszcz, Justin Michael" <justin.piszcz@xxxxxxxxxxxx> 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@xxxxxx

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


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