Skip to content Skip to sidebar Skip to footer

What Is Happening When This Code Calls FUSE Like This?

I am working through another person's implementation of file system with python fuse. I am trying to understand the flow of the program. When the code's main method is called it so

Solution 1:

In the Fuse.py is the definition of the class FUSE.

class FUSE(object):

    """This class is the lower level interface and should not be subclassed

       under normal use. Its methods are called by fuse.

       Assumes API version 2.6 or later."""



    def __init__(self, operations, mountpoint, raw_fi=False, **kwargs):

        """Setting raw_fi to True will cause FUSE to pass the fuse_file_info

           class as is to Operations, instead of just the fh field.

           This gives you access to direct_io, keep_cache, etc."""

You're just calling the init method implicitly.


Post a Comment for "What Is Happening When This Code Calls FUSE Like This?"