From owner-freebsd-hackers Mon Jul 17 15:57:15 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAB28279 for hackers-outgoing; Mon, 17 Jul 1995 15:57:15 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id PAA28272 for ; Mon, 17 Jul 1995 15:57:06 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA21555; Mon, 17 Jul 95 16:50:06 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9507172250.AA21555@cs.weber.edu> Subject: CDROM FS AS ROOT To: hackers@freebsd.org Date: Mon, 17 Jul 95 16:50:05 MDT X-Mailer: ELM [version 2.4dev PL52] Sender: hackers-owner@freebsd.org Precedence: bulk I'm looking at the cd9660_mountroot() function in the cd9660_vfsops.c source module. In this routine, there is an argument setting of args.flags to ISOFSMNT_ROOT, which is to say 0. This appears to be to specify ISO_FTYPE_DEFAULT? It seems that it would be more correct to specify: #ifndef ISOFSMNT_ROOT #define ISOFSMNT_ROOT ISO_FTYPE_DEFAULT /* root must be default*/ #endif instead of what is there now, which is: #ifndef ISOFSMNT_ROOT #define ISOFSMNT_ROOT 0 #endif And in fact would be cannonically more correct to throw out the dependence on the file system type in the mountroot code (or provide seperate entry points for a mountroot of each file system type)? I'm all for throwing the dependencies out the window; I think a root mount is a root mount. There are a couple of architecture changes necessary for auto-type detection, but once they're done (after the previously discussed changes), it should be possible to use any CDROM media type as a root file system without a lot of effort. What does everyone think? I need to know relatively soon so I can do the general changes correctly. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.