• R/O
  • SSH
  • HTTPS

perl-fuse-fv: Commit


Commit MetaInfo

Revision68 (tree)
Zeit2011-06-05 15:56:19
Autortofjw

Log Message

documentation reached to the write method.

Ändern Zusammenfassung

Diff

--- Fuse-Class/trunk/lib/Fuse/Class.pm (revision 67)
+++ Fuse-Class/trunk/lib/Fuse/Class.pm (revision 68)
@@ -234,7 +234,7 @@
234234
235235 =head2 getdir(DIRECTORY_NAME)
236236
237-Returns a list of file/directory names and errno (0 if success).
237+Returns a list of file/directory names and an errno (0 if success).
238238 ex: ('.', 'a', 'b', 0)
239239
240240 If 'readdir' method is implemented, this function will never be called.
@@ -259,7 +259,7 @@
259259 Returns an errno (0 if success).
260260 This method is called to remove a directory.
261261
262-=head2 symlink(PATH_NAME, SYMLINK_NAME)
262+=head2 symlink(EXISTING_PATH_NAME, SYMLINK_NAME)
263263
264264 Returns an errno (0 if success).
265265 This method is called to create a symbolic link.
@@ -269,7 +269,55 @@
269269 Returns an errno (0 if success).
270270 This method is called to rename/move a entity.
271271
272+=head2 link(EXISTING_PATH_NAME, HADLINK_NAME)
272273
274+Return an errno (0 if success).
275+This method is called to create a hard link.
276+
277+=head2 chmod(PATH_NAME, MODE).
278+
279+Return an errno (0 if success).
280+This method is called to change permissions on a entity.
281+
282+=head2 chown(PATH_NAME, UID, GID).
283+
284+Return an errno (0 if success).
285+This method is called to change ownership of a entity.
286+
287+=head2 truncate(PATH_NAME, OFFSET).
288+
289+Return an errno (0 if success).
290+This method is called to truncate a file at the given offset.
291+
292+=head2 utime(PATH_NAME, ACCESS_TIME, MODIF_TIME).
293+
294+Return an errno (0 if success).
295+This method is called to change atime/mtime on a entity.
296+
297+=head2 open(PATH_NAME, FLAGS, FILE_INFO)
298+
299+Returns an errno, and a file handle (optional)
300+
301+FLAGS is an OR-combined value of flags (O_RDONLY, O_SYNC, etc).
302+FILE_INFO is a hashref.
303+
304+Returned file handle will be passed to subsequent method call
305+to operate on opend file.
306+
307+=head2 read(PATH_NAME, SIZE, OFFSET, FILE_HANDLE)
308+
309+Returns an errno, or string scalar of read data.
310+
311+This method is called to read data (SIZE bytes)
312+at the given offset of opened file.
313+
314+=head2 write(PATH_NAME, BUFFER, OFFSET, FILE_HANDLE)
315+
316+Returns a written byte size or an errno.
317+
318+This method is called to write data (BUFFER)
319+at the given offset of opened file.
320+
273321 =head2 statfs
274322
275323 Same as Fuse. By default implementation, returns -ENOANO.
Show on old repository browser