summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/diskfs.h10
-rw-r--r--libdiskfs/file-get-source.c2
-rw-r--r--libdiskfs/get-source.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 0e148523..40af37a9 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -586,11 +586,11 @@ error_t (*diskfs_create_symlink_hook)(struct node *np, const char *target);
error_t (*diskfs_read_symlink_hook)(struct node *np, char *target);
/* The user may define this function. The function must set source to
- the source of CRED. The function may return an EOPNOTSUPP to
- indicate that the concept of a source device is not applicable. The
- default function always returns EOPNOTSUPP. */
-error_t diskfs_get_source (struct protid *cred,
- char *source, size_t source_len);
+ the source of the translator. The function may return an EOPNOTSUPP
+ to indicate that the concept of a source device is not
+ applicable. The default function always returns diskfs_disk_name,
+ or EOPNOTSUPP if it is NULL. */
+error_t diskfs_get_source (char *source, size_t source_len);
/* Libdiskfs contains a node cache.
diff --git a/libdiskfs/file-get-source.c b/libdiskfs/file-get-source.c
index b5c31845..d983a826 100644
--- a/libdiskfs/file-get-source.c
+++ b/libdiskfs/file-get-source.c
@@ -33,5 +33,5 @@ diskfs_S_file_get_source (struct protid *cred,
|| cred->pi.class != diskfs_protid_class)
return EOPNOTSUPP;
- return diskfs_get_source (cred, source, 1024 /* XXX */);
+ return diskfs_get_source (source, 1024 /* XXX */);
}
diff --git a/libdiskfs/get-source.c b/libdiskfs/get-source.c
index 2ef8ebcd..9962ee9e 100644
--- a/libdiskfs/get-source.c
+++ b/libdiskfs/get-source.c
@@ -22,7 +22,7 @@
#include "priv.h"
error_t __attribute__ ((weak))
-diskfs_get_source (struct protid *cred, char *source, size_t source_len)
+diskfs_get_source (char *source, size_t source_len)
{
if (diskfs_disk_name == NULL)
return EOPNOTSUPP;