Code Monkey home page Code Monkey logo

sys-mount's People

Contributors

gila avatar joshtriplett avatar marius851000 avatar matmoscicki avatar mmstick avatar ophilli avatar otavio avatar rrradicaledward avatar tsemczyszyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sys-mount's Issues

Please consider supporting `findmount` alike interface

Improvement request

in the unix ecosystem a tool findmnt is available to filter infomation for mounted filesystems.

It would be great to get an analogon implementation via sys-mount.

Refernece

https://github.com/karelzak/util-linux

CLI installing Issue

npm i -g loopback-cli
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: This version is no longer supported, please upgrade to 3.x
npm WARN deprecated [email protected]: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 127
npm ERR! path /root/.nvm/versions/node/v16.14.1/lib/node_modules/loopback-cli/node_modules/ejs
npm ERR! command failed
npm ERR! command sh -c node ./postinstall.js
npm ERR! sh: node: command not found

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-04-16T13_37_29_408Z-debug-0.log

Support unmounting via the device path

Currently, umount only supports unmounting by the target path where the device is mounted. Yet it should be capable of automatically discovering the target path associated with that device, and using that. This can be achieved through the use of our proc-mounts crate.

MountFlags's type should be c_ulong

On some architectures c_ulong isn't u64, resulting in build errors such as:

error[E0308]: mismatched types
   --> .../sys-mount-1.2.0/src/mount.rs:315:13
    |
315 |             flags.bits(),
    |             ^^^^^^^^^^^^ expected u32, found u64

error[E0308]: mismatched types
  --> .../sys-mount-1.2.0/src/mount.rs:20:22
   |
20 |         const BIND = MS_BIND;
   |                      ^^^^^^^ expected u64, found u32

error[E0308]: mismatched types
  --> .../sys-mount-1.2.0/src/mount.rs:24:25
   |
24 |         const DIRSYNC = MS_DIRSYNC;
   |                         ^^^^^^^^^^ expected u64, found u32

Mount capabilities for unpriviledge users

Is it possible to use this library to somehow grant unpriviledge users the ability to mount arbitrary filesystems (not necessarily in fstab), similar to what pmount does?

Loopback with offset

Is it possible to mount a loop device with a given offset? If so how might I do that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.