diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-07-30 11:59:19 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-15 23:19:30 +0200 |
commit | 70b1ab5dbb8d7d1cf63ab170e0a96a03c6dd363c (patch) | |
tree | 1253d81d18b8394e0037d109e73b2ae39427fc1f /libdiskfs/diskfs.h | |
parent | 8acdc0f29b9b0b043939929b1ce3e71473b0b847 (diff) | |
download | hurd-70b1ab5dbb8d7d1cf63ab170e0a96a03c6dd363c.tar.gz hurd-70b1ab5dbb8d7d1cf63ab170e0a96a03c6dd363c.tar.bz2 hurd-70b1ab5dbb8d7d1cf63ab170e0a96a03c6dd363c.zip |
libdiskfs: add fsys_get_source
Add a user overridable function diskfs_get_source with a default
implementation returning EOPNOTSUPP. Add a server function for
fsys-get-source.
* libdiskfs/Makefile: Add fsys-get-source.c and get-source.c
* libdiskfs/diskfs.h: Add diskfs_get_source.
* libdiskfs/fsys-get-source.c: New file.
* libdiskfs/get-source.c: Likewise.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r-- | libdiskfs/diskfs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index 24895172..22262aa8 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -1,7 +1,7 @@ /* Definitions for fileserver helper functions Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2007, 2008, - 2009 Free Software Foundation, Inc. + 2009, 2013 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -567,6 +567,12 @@ error_t (*diskfs_create_symlink_hook)(struct node *np, const char *target); 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 user may define this function. The function must set source to + the source device of the filesystem. 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 (char *source); /* The library exports the following functions for general use */ |