def fgetattr(self): uid = os.getuid() gid = os.getgid() if (self.node.stat.st_uid != -1): uid = self.node.stat.st_uid if (self.node.stat.st_gid != -1): gid = self.node.stat.st_gid rostat = fs45gROStat(self.node.stat, uid, gid) return rostat
def getattr(self, path): findnode = self.FSData.findNode(path) if findnode == None: return -errno.ENOENT uid = findnode.stat.st_uid gid = findnode.stat.st_gid if (uid == -1): uid = os.getuid() if (gid == -1): gid = os.getgid() return fs45gROStat(findnode.stat, uid, gid)