hackerschoice / segfault

346 stars 38 forks source link

docker run --device-write-bps /dev/blah:1mb not working #23

Closed SkyperTHC closed 1 year ago

SkyperTHC commented 1 year ago

...if encfs is used.

In particular the example tries to limit the '/everyone/' mount point to 1mb (for the sake of testing).

The bug is somewhere that encfs is not create 'real' device. These things dont work or have no effect:

  1. passing -o fname=/dev/sec-everyone to fusemount (from encfs)
  2. Restricting /dev/fuse (that's not the I/O device anyway).
  3. Restricting the underlaying block device (/dev/sda etc)

this example wont work when device is encfs (e.g. /everyone/): https://stackoverflow.com/questions/36145817/how-to-limit-io-speed-in-docker-and-share-file-with-system-in-the-same-time