Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715673

devtmpfs: regular files

From Sami Kerola <kerolasa@iki.fi>
Newsgroups linux.kernel
Subject devtmpfs: regular files
Date 2017-08-19 17:00 +0200
Message-ID <ugdod-2zE-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

Is there some reason why devtmpfs allows creation of regular files? I
think it would be nice if /dev would behave same way as /proc, that
is:

$ echo example > /proc/regular-file.txt
-bash: /proc/regular-file.txt: No such file or directory

That would make users who rm /dev/null to notice something is wrong
before all space is taken by some rubbish writer. Secondly when /dev/
is used for pairing daemons with fifo this would make incorrect start
order to fail without intervention needed - no more writer creating a
file, and reader that wants to use same path for fifo being unable to
do so.

This could be a mount option. Something like nofile in spirit of nodev
but with opposite effect. My assumption is that changing default
behavior is unlikely to be approvable.

-- 
Sami Kerola
http://www.iki.fi/kerolasa/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

devtmpfs: regular files Sami Kerola <kerolasa@iki.fi> - 2017-08-19 17:00 +0200

csiph-web