Re: [PATCH] driver-core: devtmpfs - driver core maintained /dev tmpfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alan Jenkins wrote:
On 5/2/09, Kay Sievers <kay.sievers@xxxxxxxx> wrote:
[]
And it
gives a nice clean way for new initramfs' to test for this feature -
when they try to mount it, it fails.  It would seem to make for a
rather smoother migration path.
I think that is all covered just fine.

Oh, I see.

grep "/dev" /proc/mounts > /dev/null

Oh no.  This one will match all your /dev/sda1 etc too :)
What yo want to do is either

  grep -w /dev /proc/mount

or

 awk '$2 == "/dev" { exit 0; } END { exit 1; }' /proc/mounts

or something similar.  To distinguish between the following
two cases:

/dev/sda1 / ext3 rw,noatime,data=ordered 0 0
devfs /dev tmpfs rw,nosuid,size=512k,mode=755 0 0

/mjt
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux