Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Mar 2003 18:14:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Mar 2003 18:14:48 -0500 Received: from smtpzilla5.xs4all.nl ([194.109.127.141]:30726 "EHLO smtpzilla5.xs4all.nl") by vger.kernel.org with ESMTP id ; Thu, 20 Mar 2003 18:13:10 -0500 Date: Fri, 21 Mar 2003 00:23:59 +0100 (CET) From: Roman Zippel X-X-Sender: roman@serv To: Andries.Brouwer@cwi.nl cc: Joel.Becker@oracle.com, , , , Linus Torvalds Subject: Re: major/minor split In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1074 Lines: 34 Hi, On Thu, 20 Mar 2003 Andries.Brouwer@cwi.nl wrote: > > There is a point I'd like to get clear: where should the > > 16bit<->32bit dev_t conversion happen? > > I am not sure I understand the question, but if I do > the answer is "nowhere", there is no conversion > (other than the lengthening that happens when one > casts an unsigned short to an unsigned int). Let's look at ext2: if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) raw_inode->i_block[0] = cpu_to_le32(kdev_t_to_nr(inode->i_rdev)); Should the saved device number be a 16bit or a 32bit device number? Has the user any control over it? > > how can software create nodes for a specific device? > > You do not mean using mknod? I mean via mknod, e.g. if the user has a major/minor number, how should it be converted to a dev_t number? bye, Roman - 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/