diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-07-15 16:15:44 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-07-15 16:15:44 +0000 |
commit | 383f290b1a9399443a1f97bf7714172fc55ada78 (patch) | |
tree | 6256122dfac49a33a4d9bf23e472a5c8afa1ae13 /libdiskfs | |
parent | 9ebd2f0bc9a1fb440c24cbad8be4a9901cd828ff (diff) |
Formerly diskfs.h.~31~
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/diskfs.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index 53a65b52..331def86 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -71,7 +71,7 @@ struct node int dn_set_atime; int dn_set_mtime; int dn_stat_dirty; - + struct mutex lock; int references; /* hard references */ @@ -209,7 +209,11 @@ extern int diskfs_edit_version; /* The user may define this variable. This should be nonzero iff the filesystem format supports shortcutting symlink translation. - See also diskfs_create_symlink_hook below. */ + The library guarantees that users will not be able to read or write + the contents of the node directly, and the library will only do so + if the symlink hook functions return EINVAL or are not defined. + The library knows that the dn_stat.st_size field is the length of + the symlink, even if the hook functions are used. */ int diskfs_shortcut_symlink; /* The user may define this variable. This should be nonzero iff the @@ -445,6 +449,12 @@ void diskfs_init_completed (); then the normal method (writing the contents into the file data) is used. If it returns any other error, it is returned to the user. */ error_t (*diskfs_create_symlink_hook)(struct node *np, char *target); + +/* If this function is nonzero (and diskfs_shortcut_symlink is set) it + is called to read the contents of a symlink. If it returns EINVAL or + isn't set, then the normal method (reading from the file data) is + used. If it returns any other error, it is returned to the user. */ +error_t (*diskfs_read_symlink_hook)(struct node *np, char *target); /* The library exports the following functions for general use */ |