Skip to content

Commit

Permalink
Merge pull request noobaa#8734 from shirady/nsfs-nc-expand-disk-list
Browse files Browse the repository at this point in the history
NC | Related to Issue 8598 | generate_entropy() - Add Disks (Temporary and Partial Fix)
  • Loading branch information
shirady authored Jan 30, 2025
2 parents f32827b + eabccad commit ad2cbb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/nb_native.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ async function generate_entropy(loop_cond) {
const count = 32;
let disk;
let disk_size;
for (disk of ['/dev/sda', '/dev/vda', '/dev/xvda', '/dev/dasda']) {
// this is as a temporary and partial solution -
// adding the NVMe disk with namespace
for (disk of ['/dev/sda', '/dev/vda', '/dev/xvda', '/dev/dasda', '/dev/nvme0n1', '/dev/nvme1n1']) {
try {
const res = await async_exec(`blockdev --getsize64 ${disk}`);
disk_size = res.stdout;
Expand Down

0 comments on commit ad2cbb6

Please sign in to comment.