Commit graph

28 commits

Author SHA1 Message Date
Elan Ruusamäe
c46bcf36ee Remove trailing space in python source 2024-02-17 14:29:31 +02:00
Elan Ruusamäe
e6c876f94e
python-3 compatible example/cups.py, and associated documentation imported from the wiki (Closes: #54)
* Add README.cupsfs.md

Imported from Wiki: Initial Home page

Co-authored-by: Elan Ruusamäe <glen@delfi.ee>

* Extract cups.py to example directory

* Add python3 fixes

* Apply 2to3 fixes

* Format and re-indent to satisfy flake8

* Avoid star import as unable to detect undefined names

* Fix py3 issues in README.cups.md

* Apply spelling fixes to README.cups.md

* Cleanup un-needed trailing whitespace

* Fix &gt; in README.cups.md

It's rendered raw, no need to escape ">"

---------

Co-authored-by: Nikolaus Rath <Nikolaus@rath.org>
2023-12-15 08:45:54 +01:00
Elan Ruusamäe
891dc5c2f2 Cleanup unused os import from example/_find_fuse_parts.py 2023-12-04 01:46:58 +02:00
Elan Ruusamäe
259d23bc52 Fix spelling errors in example/xmp.py 2023-12-04 01:46:47 +02:00
Carl Drougge
80be99f817 Fix file write under Python 2 in xmp.py
I broke it with my locking fixes, apparently I only tested reading under
Python 2. (In Python 3 file.write returns the length, so I thought that
was true in Python 2 as well.) Sorry.
2021-02-18 20:21:25 +01:00
Carl Drougge
d2e922b774 Fix race in xmp.py (Closes: #18)
Using os.pread/os.pwrite is the easy and obvious fix, but unfortunately
those are not available in Python 2, so fall back to a per file lock.
2021-02-17 20:41:21 +01:00
Carl Drougge
1006867eb3 Make xmp.py work on Python 2 again. 2021-02-17 20:40:52 +01:00
David Lechner
f81a45e79a use bytes objects for read and write data
This changes the data type for the buffer of the read and write syscalls
from string to bytes. On Python 2, this has no effect. On Python 3, it
is a breaking change, but fixes a serious usibility bug that limits file
data to valid UTF-8 data. With these changes, files can contain arbitrary
data.
2019-03-14 17:51:30 -05:00
Cédric CARRÉE
f8f420f3b1 FiocFS.write() should return number of bytes wrote
Otherwise EIO is returned by write() syscall
2018-04-18 11:25:11 +02:00
Cédric CARRÉE
f1125562cc Update signature of FiocFS.write in IOCTL example 2018-04-18 10:57:39 +02:00
Cédric CARRÉE
c243247146 Description: Fix typo in 'truncate' function name 2018-04-18 10:12:34 +02:00
Cédric CARRÉE
8c95e3b76b Merge remote-tracking branch 'upstream/master'
Now using python3 and make IOCTL works again
2018-04-16 12:26:42 +02:00
Sébastien Delafond
40815de4dd Handle new Python 3 API 2018-02-17 14:42:49 +01:00
Sébastien Delafond
323099c361 Initial 2to3 pass 2018-02-17 09:12:24 +01:00
Cédric CARRÉE
d25420acfc Revert test done on hello.py while testing IOCTL feature 2016-02-23 15:31:40 +01:00
Cédric CARRÉE
26655db177 Added IOCTL support to python-fuse 2016-02-23 15:21:44 +01:00
dzsekijo
447091d9c9 defining fuse_python_api made mandatory 2007-05-18 14:21:29 +00:00
dzsekijo
222eed33fa further distribution streamlinining 2007-05-18 13:43:15 +00:00
dzsekijo
d36a421687 added support for utimens and bmap methods 2007-05-11 13:23:06 +00:00
dzsekijo
a8a22c55a0 add support for advisory locking ("lock" filesystem method) 2007-05-07 21:46:44 +00:00
dzsekijo
bc6033be23 Fix flush and fsync in xmp.py.
- Don't call file.flush() if file is not open for writing
  (a fix for OS-es which adhere more to POSIX than Linux in this respect,
  eg. *BSD).
- Do call file.flush() both from both of fsync and flush methods because data
  is to be flushed out from userspace cache anyway before we can go on.
2007-05-07 21:03:34 +00:00
dzsekijo
4ca78fbdad make fuse-python API explicitly specifiable instead of just having a compat hook 2006-10-14 15:57:15 +00:00
dzsekijo
be44e3c941 emit a more useful error message when examples fail to import fuse 2006-10-12 23:53:50 +00:00
dzsekijo
2d0e9dc6aa added support for init and destroy FUSE operations 2006-10-12 23:24:38 +00:00
dzsekijo
6c1743d646 nitpick about some subtleties in xmp.py 2006-06-19 23:13:45 +00:00
dzsekijo
5138d0eb30 set True as the default value of the `fetch_mp' parser option 2006-06-06 22:24:57 +00:00
dzsekijo
9a004ad3cc Restructured source tree / II.:
- Created fuseparts package
 - <generic opt parsing code> -> fuseparts/subbedoptparse.py
 - _fusemeta.py -> fuseparts/__init__.py
 - _fusemodule.c -> fuseparts/_fusemodule.c
2006-06-06 20:19:10 +00:00
dzsekijo
8c4546ecbf Restructured source tree, updated docs/metainformation.
Source tree changes:
 - README -> README.historic
 - xmp.py -> example/xmp.py
 - added example/hello.py (contributed by Andrew Straw)
 - added example/_find_fuse_parts.py (aux script)
2006-06-06 18:39:03 +00:00