aboutsummaryrefslogtreecommitdiff
path: root/libtrivfs/trivfs.h
diff options
context:
space:
mode:
authorLuca Dariz <luca.dariz@gmail.com>2017-01-26 22:36:16 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-22 23:59:28 +0200
commit6d3b4cea78b22a6562eef4256cfcc40a8d372194 (patch)
treee788d824c27d299fdc20eceefa64d910591adc95 /libtrivfs/trivfs.h
parent4f653341476e7bd81475ea29316d59254d8b957e (diff)
downloadhurd-6d3b4cea78b22a6562eef4256cfcc40a8d372194.tar.gz
hurd-6d3b4cea78b22a6562eef4256cfcc40a8d372194.tar.bz2
hurd-6d3b4cea78b22a6562eef4256cfcc40a8d372194.zip
Add trivfs_startup_debug() for easier translator development
Basically it is an automation of this: http://walfield.org/pub/people/neal/papers/hurd-misc/manual-bootstrap.txt To launch a storeio translator on FILE: $ storeio -d FILE -T TYPE ARG Message-Id: <20170126213616.26846-1-luca.dariz@gmail.com>
Diffstat (limited to 'libtrivfs/trivfs.h')
-rw-r--r--libtrivfs/trivfs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h
index c9e5defa..4802f5fc 100644
--- a/libtrivfs/trivfs.h
+++ b/libtrivfs/trivfs.h
@@ -174,6 +174,17 @@ error_t trivfs_startup (mach_port_t bootstrap, int flags,
struct port_bucket *protid_bucket,
struct trivfs_control **control);
+/* Start in debug mode, no need to be called by settrans. Common options are
+ the same as in trivfs_startup. FILE_NAME is the path of the node where the
+ translator is set*/
+error_t
+trivfs_startup_debug(const char *file_name,
+ struct port_class *control_class,
+ struct port_bucket *control_bucket,
+ struct port_class *protid_class,
+ struct port_bucket *protid_bucket,
+ struct trivfs_control **control);
+
/* Create a new trivfs control port, with underlying node UNDERLYING, and
return it in CONTROL. CONTROL_CLASS & CONTROL_BUCKET are passed to
the ports library to create the control port, and PROTID_CLASS &