lkml.org 
[lkml]   [2006]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: CD writing in future Linux (stirring up a hornets' nest)
On Fri, Feb 10, 2006 at 03:32:28PM +0100, Joerg Schilling wrote:
> > Chapter and verse, please?
> >
> > Can you please list the POSIX standard, section, and line number which
> > states that a particular device must always have the same st_rdev
> > across reboots, and hot plugs/unplugs?
>
> A particular file on the system must not change st_dev while the system
> is running.
>
> http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html

1) File != device.

2) st_dev != st_rdev

3) The reference you specified says nothing about st_dev (or st_rdev)
being invariant while the system is runnning. Line number, please?

4) POSIX/SUS is very careful not to define what dev_t. Use of mknod to
create block/chracter devices, and depending on any properties of
dev_t is likely to get you into trouble.

5) The st_rdev of a particular file, like /dev/hda *does* remain
invariant. The device which it points to may change, but that's a
different matter --- and POSIX/SUS is very deliberately silent on your
subject.
THEREFORE, your claim that Linux's behaviour violates POSIX/SUS is
demonstrably false. Quod erat demonstratum.

- Ted
-
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/

\
 
 \ /
  Last update: 2006-02-10 15:55    [from the cache]
©2003-2011 Jasper Spaans