Bug 16014
Summary: | [Regression] `mount --bind` no longer works with files in 2.6.34 | ||
---|---|---|---|
Product: | File System | Reporter: | Adam Tkac (vonsch) |
Component: | VFS | Assignee: | fs_vfs |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | akpm, maciej.rutecki, rjw |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.34 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 15310 | ||
Attachments: | Reproducer |
Description
Adam Tkac
2010-05-20 12:53:58 UTC
(In reply to comment #0) > Steps to reproduce: > 1. $ echo 'asd' > file1 > 2. $ touch file2 > 3. $ mount --bind file1 file2 Hm, after little more inspection this is not sufficient reproducer, I will attach a script which triggers this bug. Created attachment 26457 [details]
Reproducer
This is part of the /etc/init.d/named init script used in Fedora 13 and newer.
Use it this way (on Fedora system)
1. rm -rf /var/named/chroot/
2. create non-empty files /etc/named.conf, /etc/named.dnssec.keys, /etc/named.rfc1912.zones, /etc/rndc.conf, /etc/rndc.key and /etc/named.iscdlv.key
3. create directories /etc/named, /etc/pki/dnssec-keys
4. execute the script twice
You will see following:
[root@evileye atkac]# ./reproducer
[root@evileye atkac]# ./reproducer
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
Presumably fixed in 2.6.34 (final) or 2.6.35-rc1. |