Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 1998 15:17:16 -0400 (EDT)
From:      Simon Shapiro <shimon@simon-shapiro.org>
To:        Alfred Perlstein <bright@hotjobs.com>
Cc:        current@FreeBSD.ORG
Subject:   RE: DEVFS questions.
Message-ID:  <XFMail.980911151716.shimon@simon-shapiro.org>
In-Reply-To: <Pine.BSF.3.96.980911101848.694E-100000@bright.fx.genx.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Alfred Perlstein, On 11-Sep-98 you wrote:
>  
>  is there a way to perhaps mount_union over devfs to keep symlinks and
>  such?
>  
>  also, is there a way to preserve permission changes between reboots?
>  maybe
>  a script that would do it based on a file...

Put in /etc/rc:

if [ -f /etc/dev_modes ]
  then
    while read line
      do
        node=`echo ${line} | cut -d ' ' -f xxxx`
        mode=`echo ${line} | cut -d ' ' -f yyyy`
        type=`echo ${line ....

        if [ ! -e /dev/${node} ]
          then
            mknod ${type} ${major} ${minor} /dev/${node}
            chmod ${mode} /dev/${node}
>  
>  libdisk is still broken with DEVFS/SLICE, barfs on: 
>  ioctl: : Inappropriate ioctl for device
>  failed on IOCTL disk = /dev/rwd0 errno = 25      
>  
>  (i added some debugging stuff to the code)
>  
>  disklabel is also b0rked, will not write out to the disk.
>  
>  (not being sarcastic) i know DEVFS is quite new, but is it expected to
>  be
>  used? or is it something akin to kernfs?
>  
>  thanks,
>  Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com
>  -- There are operating systems, and then there's FreeBSD.
>  -- http://www.freebsd.org/                        3.0-current
>  
>  
>  To Unsubscribe: send mail to majordomo@FreeBSD.org
>  with "unsubscribe freebsd-current" in the body of the message



Sincerely Yours,                 Shimon@Simon-Shapiro.ORG
                                             770.265.7340
Simon Shapiro

Unwritten code has no bugs and executes at twice the speed of mouth


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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