Lines Matching refs:open
33 with open(TEST_FILE, 'rb') as fh:
99 with open(filename, 'r') as fh:
102 open(filename, 'r+')
105 open(filename + 'does-not-exist', 'r+')
182 # When writeback caching is enabled, kernel has to open files for
281 with open(testfile, 'wb') as fh:
285 with open(testfile, 'rb') as fh:
316 with open(mnt_file, 'w') as fh:
325 with open(mnt_file, 'rb') as fh:
327 with open(mnt_file, 'wb') as fh:
398 open(pjoin(mnt_dir, 'null')).close()
401 open(pjoin(mnt_dir, 'null')).close()
508 fd = os.open(name, flags)
515 os.close(os.open(name, os.O_CREAT | os.O_RDWR))
523 with open(srcname, 'wb') as fh:
575 fd = os.open(fullname, os.O_CREAT | os.O_RDWR)
605 with open(pjoin(src_dir, name), 'wb') as fh_out, \
606 open(TEST_FILE, 'rb') as fh_in:
615 with open(fullname, 'wb') as fh_out, \
616 open(TEST_FILE, 'rb') as fh_in:
630 with open(fullname, 'rb') as fh:
644 with open(fullname, 'rb') as fh:
652 with open(fullname, 'wb+', buffering=0) as fh:
685 # libfuse still considers the file to be open at this point
743 with open(pjoin(src_dir, fname), 'w') as fh:
768 with open(filename, 'wb') as fh:
778 with open(filename, 'rb') as fh:
785 with open(filename, 'rb') as fh:
840 with open(src_name, 'w') as fh:
851 with open(mnt_name, 'w') as fh: