copy/v86

Support changing 9p mount tag at runtime

Open

#678 opened on Jun 8, 2022

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Rust (1,353 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (19,458 stars)
PR merge metrics
 (Avg merge 8d 2h) (12 merged PRs in 30d)

Description

It would be helpful to be able to change the name of the 9p file share. https://github.com/copy/v86/blob/4eb1e5035e91490c5aeebab45553d5043cd84b95/lib/9p.js#L82

For dynamically generating mount tags:

/**
 * @param {string} mountTagName
 */
function genMountTagArray(mountTagName) {
    /**
     * @type {Number[]}
     */
    let _mountTagArray;
    Array.from(mountTagName).forEach(function(char) {
        _mountTagArray.push(char.charCodeAt(0));
    });
    return _mountTagArray;
};

Contributor guide