Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2006 23:18:48 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Jaye Mathisen <mrcpu@mathisen.org>
Cc:        hackers@freebsd.org
Subject:   Re: fdescfs functional in 6.1?
Message-ID:  <20060729041848.GC15827@dan.emsphone.com>
In-Reply-To: <20060729034359.GL15569@main.mathisen.org>
References:  <20060729034359.GL15569@main.mathisen.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 28), Jaye Mathisen said:
> devfs is mounted, fdesc is unmounted:
> 
> s2# ls -l /dev/fd
> total 0
> crw-rw-rw-  1 root  wheel  250,   0 Jul 25 03:25 0
> crw-rw-rw-  1 root  wheel  250,   1 Jul 25 03:28 1
> crw-rw-rw-  1 root  wheel  250,   2 Jul 25 03:27 2
> 
> Looks just like I think it should.
> 
> Then:
> s2# mount -t fdescfs fdescfs /dev/fd
> s2# ls -l /dev/fd
> total 16
> crw--w----  1 root      tty         5,   1 Jul 28 18:01 0
> crw--w----  1 root      tty         5,   1 Jul 28 18:01 1
> crw--w----  1 root      tty         5,   1 Jul 28 18:01 2
> d-w-------  1 mailnull  mailnull       512 Jul 23 00:01 3
> d---------  1 root      wheel          512 Jul 25 03:25 4
> s2# umount /dev/fd
> 
> This thing is all over the map.. permissions changed, a *directory*
> for fd's 3 and 4?  

What do you expect ls to open to print a *directory* listing? :)

fd's 0, 1, and 2 are /dev/tty, and the permissions look fine.

fd 3 is your current directory (so I guess you're in some smtp-related
directory?), and fd 4 is the directory on the commandline (/dev/fd).

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060729041848.GC15827>