copy/v86

Support changing 9p mount tag at runtime

Open

#678 建立於 2022年6月8日

在 GitHub 查看
 (10 留言) (0 反應) (0 負責人)Rust (1,353 fork)batch import
enhancementgood first issue

倉庫指標

Star
 (19,458 star)
PR 合併指標
 (平均合併 8天 2小時) (30 天內合併 12 個 PR)

描述

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;
};

貢獻者指南