Overview
| Artifact ID: | 3103c870ce16dd3ecc3cca94f03f150189cefbf9 |
|---|---|
| Ticket: | 800106ffffffffffffffffffffffffffffffffff
Incorrect treatment of mounted file by glob. |
| User & Date: | andreas_kupries on 2003-09-04 23:06:15 |
Changes
- icomment:
Logged In: YES user_id=75003 Regarding: glob -types d hackomatic.kit % package require vfs::mk4 1.9 % vfs::mk4::Mount hackomatic.kit hackomatic.kit -readonly mk4vfs1 % glob -types d hackomatic.kit @@handler: mk4vfs1 - matchindirectory - /nfs/crimper/home/andreask/trans/hackomatic.kit - - hackomatic.kit - {} 4 @@handler: mk4vfs1 - stat - /nfs/crimper/home/andreask/trans/hackomatic.kit - - hackomatic.kit - hackomatic.kit % The @@ lines are on stderr, tracing. So yes, this does access the vfs, and it does report the correct thing. As you said below, the solution I envisioned was to determine if there are mountpoints in a directory currently searched. These have to be reported as directories, and excluded from reporting as files, and have to be used for recursive matching, i.e. patterns like foo/*/*. Secondly, as you rightly note, a file in some directory which is the origin of a mount has to be surpressed from its directory too, so we have to ask during matching if something is the origin of a mount. both queries should be possible, and available on the level of the API to the whole FS code. The filesystems themselves require no changes. This query operates purely on the core structures (hashtables I presume) recording mountpoints and their origins. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"