Mitko Haralanov schrieb: > Hi, I am trying to find a way to figure out whether a certain remote > filesystem is mounted using tcp vs. udp in Python. I've looked at the > statvfs call and module but they don't give me anything useful (the > F_FLAGS field for both a tcp and a udp filesystem is the same. > > I could, of course, get the output of mount and parse that but I would > prefer something more elegant.
I'm not quite sure what you want to achieve. You are on machine B, and you want to find out whether a remote file system (on machine A) is mounted remotely (say, from machine C)? How do you answer that question with mount(8)? Also, what is a tcp filesystem? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list