python: IOError: [Errno 36] File name too long:
<p>I want to create a file within tmpfs (under CentOS 6.5) like this:</p>

<pre><code>fpath = '/tmpfs_mounted/with/long/file/name'
with open(fpath, 'w') as fd:
    write(somedata)
...
</code></pre>

<p>But I got the <code>IOError: [Errno 36] File name too long: ...</code> error, How to fix it?</p>