[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 05/64: Make procfs appear in /proc/mounts
From: |
Samuel Thibault |
Subject: |
[hurd] 05/64: Make procfs appear in /proc/mounts |
Date: |
Wed, 10 Dec 2014 15:17:03 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 324c9cdbcd3644a0f8eb467b1ea61b9ff889ae7a
Author: Samuel Thibault <address@hidden>
Date: Tue Nov 11 22:43:22 2014 +0100
Make procfs appear in /proc/mounts
d-i needs to be able to check whether /proc is mounted or not.
* procfs/main.c (netfs_get_source): New function.
---
procfs/main.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/procfs/main.c b/procfs/main.c
index 54e9682..a620ba1 100644
--- a/procfs/main.c
+++ b/procfs/main.c
@@ -259,6 +259,18 @@ 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, "proc");
+ return 0;
+}
error_t
root_make_node (struct ps_context *pc, struct node **np)
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 63/64: fakeroot: Fix initializing default faked field of nodes, (continued)
- [hurd] 63/64: fakeroot: Fix initializing default faked field of nodes, Samuel Thibault, 2014/12/10
- [hurd] 60/64: hurd: add intranpayload functions to all hurd types, Samuel Thibault, 2014/12/10
- [hurd] 33/64: Add atomicity support to fshelp_acquire_lock, Samuel Thibault, 2014/12/10
- [hurd] 59/64: utils/rpctrace: make `trace_and_forward' payload-aware, Samuel Thibault, 2014/12/10
- [hurd] 53/64: term: add a payload-aware intrans function, Samuel Thibault, 2014/12/10
- [hurd] 57/64: trans/streamio: make the translator payload-aware, Samuel Thibault, 2014/12/10
- [hurd] 64/64: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2014/12/10
- [hurd] 04/64: Fix mach-defpager's kalloc values, Samuel Thibault, 2014/12/10
- [hurd] 06/64: utils/rpctrace: fix crash while printing messages, Samuel Thibault, 2014/12/10
- [hurd] 03/64: Avoid hitting VM_MAX_ADDRESS, Samuel Thibault, 2014/12/10
- [hurd] 05/64: Make procfs appear in /proc/mounts,
Samuel Thibault <=
- [hurd] 08/64: Fix recording complete path of passive relative translators, Samuel Thibault, 2014/12/10
- [hurd] 07/64: Let pty readers always read end of writer output, Samuel Thibault, 2014/12/10
- [hurd] 54/64: trans/fakeroot: make the demuxer payload-aware, Samuel Thibault, 2014/12/10
- [hurd] 01/64: Deal with odd kernel behavior, Samuel Thibault, 2014/12/10
- [hurd] 02/64: Deal with odd kernel behavior, Samuel Thibault, 2014/12/10