[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 25/53: nfs: implement netfs_get_source
From: |
Samuel Thibault |
Subject: |
[hurd] 25/53: nfs: implement netfs_get_source |
Date: |
Thu, 20 Mar 2014 02:23:51 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 8eb1240c18062bd3614ecba31f4c6a2dc6ea980d
Author: Justus Winter <address@hidden>
Date: Mon Feb 10 15:02:15 2014 +0100
nfs: implement netfs_get_source
Implement netfs_get_source so that nfs translators show up in
/proc/mounts.
* nfs/main.c (netfs_get_source): New function.
---
nfs/main.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/nfs/main.c b/nfs/main.c
index 3ce75a9..cd1c29a 100644
--- a/nfs/main.c
+++ b/nfs/main.c
@@ -269,6 +269,20 @@ netfs_append_args (char **argz, size_t *argz_len)
return err;
}
+/* 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
+netfs_get_source (struct protid *cred, char *source, size_t source_len)
+{
+ if (! cred)
+ return EOPNOTSUPP;
+
+ snprintf (source, source_len, "%s:%s", host, remote_fs);
+ return 0;
+}
+
/* Extract the host and remote filesystem names from SPEC, which should use
either HOST:FS or address@hidden notation. Returns the malloced storage
into
which both REMOTE_FS and HOST point, or 0 if SPEC is invalid. */
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 16/53: pfinet: set a non-zero ports management timeout, (continued)
- [hurd] 16/53: pfinet: set a non-zero ports management timeout, Samuel Thibault, 2014/03/19
- [hurd] 14/53: libstore: fixed some pointer-sign related warnings, Samuel Thibault, 2014/03/19
- [hurd] 22/53: mach-defpager: add function mig_reply_setup, Samuel Thibault, 2014/03/19
- [hurd] 17/53: exec: provide a meaningful name for new tasks, Samuel Thibault, 2014/03/19
- [hurd] 20/53: libpager: improve the pager_demuxer function, Samuel Thibault, 2014/03/19
- [hurd] 21/53: mach-defpager: fix definition of seqnos_memory_object_data_unlock, Samuel Thibault, 2014/03/19
- [hurd] 23/53: mach-defpager: improve the default_pager_demux_object function, Samuel Thibault, 2014/03/19
- [hurd] 18/53: Fix fakeroot and remap parsing corner cases, Samuel Thibault, 2014/03/19
- [hurd] 15/53: libports: work around bugs in server termination, Samuel Thibault, 2014/03/19
- [hurd] 27/53: tmpfs: set diskfs_disk_name to "none", Samuel Thibault, 2014/03/19
- [hurd] 25/53: nfs: implement netfs_get_source,
Samuel Thibault <=
- [hurd] 26/53: trans/mtab: ignore translators that do not implement file_get_source, Samuel Thibault, 2014/03/19
- [hurd] 08/53: Add --font-width option to force 8/9 pixel font width, Samuel Thibault, 2014/03/19
- [hurd] 36/53: term: fix receiver lookups in the tioctl server functions, Samuel Thibault, 2014/03/19
- [hurd] 29/53: New RPCs, fix build, Samuel Thibault, 2014/03/19
- [hurd] 24/53: hurd: fix the get-children and get-source procedures, Samuel Thibault, 2014/03/19
- [hurd] 12/53: libstore: replaced gz decompression code with libz, Samuel Thibault, 2014/03/19
- [hurd] 02/53: Replaced bz2 decompression code with libbz2, Samuel Thibault, 2014/03/19