All of lore.kernel.org
 help / color / mirror / Atom feed
* udev - flag for preserving the ownership
@ 2004-06-01 15:45 Harald Hoyer
  2004-06-02 10:26 ` Harald Hoyer
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Harald Hoyer @ 2004-06-01 15:45 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

How about a config flag, which means that udev preserves the ownership 
of an already existing device node (with the correct major, minor numbers)?

Btw, we only check if the file we want to create is block or char, not 
e.g. that we want block and it is char.

if (((stats.st_mode & S_IFMT) == S_IFBLK || (stats.st_mode & S_IFMT) == 
S_IFCHR) && (stats.st_rdev == makedev(major, minor)))

should look like:

if (((stats.st_mode & S_IFMT) == mode) && (stats.st_rdev == 
makedev(major, minor)))

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-06-03 11:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-01 15:45 udev - flag for preserving the ownership Harald Hoyer
2004-06-02 10:26 ` Harald Hoyer
2004-06-02 18:21 ` Olaf Hering
2004-06-03  8:16 ` Harald Hoyer
2004-06-03 10:59 ` Olaf Hering
2004-06-03 11:03 ` Harald Hoyer
2004-06-03 11:14 ` Olaf Hering

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.