Score:0

How to catch access/request to an (non-existent) directory under a base path?

cn flag

I would like to reproduce the autofs capability to detect the access to a sub-path of a base path and call the corresponding handler. The motive is that autofs cannot set (nor keep) the shared or rshared property of the mountpoint. While systemd have the path,mount and automount type of units and i could use generators, i failed to find a way to catch the request to an non-{existent,mounted yet} directory under a base path e.g: if the request is to anything under /cvmfs/unpacked.cern.ch/some_other_dir_in_hierarchy to catch that the request is relative to /cvmfs and call the mount handler for /cvmfs/unpacked.cern.ch Is there a solution to this? (and it should be available under centos 7)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.