Menu

#39 Docs don't explain meaning of access codes

open
5
2017-01-24
2004-11-18
No

The access handler method takes a mode argument which
is an integer. This can be resolved by the utility
command accessMode to a string, one of F, X, W, XW, R,
RX, and RW. The doc entry for accessMode does not
explain the meanings of these strings; they can be
guessed, except "F", which is a mystery. Since the
only combination of permissions not obviously
represented in this set is RWX, one might deduce that
"F" is a stand-in for "RWX" (i.e. "Full"?). However,
feedback from a previously reported bug (#1068494)
reveals that this deduction is incorrect, that "F"
seems to stand for "existence".

The docs do not state this, and as far as I can see
accessMode is not used in any of the example virtual
filesystems distributed with the package.

A simple explanation of the meanings of the strings
returned by accessMode or an example of their
application would be extremely helpful.

Discussion

  • Vince Darley

    Vince Darley - 2004-11-23
    • assigned_to: nobody --> andreas_kupries
     
  • Ashok P. Nadkarni

    F stands for existence check. However, as the OP stated, the RWX value is missing from accessMode. I don't know if this is a bug or whether RWX is an "impossible" value (can't imagine why). Best to just use the integer bitmask values: Value 0->F (existence only), Bits 0-2 -> XWR respectively.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.