Skip to content

notify user that target location does not allow drive access #82

@jamesmarkchan

Description

@jamesmarkchan

when selecting the drive location we want to inform the users that they can not access the location if the process does not have permission to write or read the location.

See HDD - testing error

when doing a benchmark we can catch the exception shown an so invalid configs or access are understood immediately.

Aug 31, 2025 10:55:59 AM jdiskmark.BenchmarkWorker lambda$doInBackground$0
SEVERE: null
java.io.FileNotFoundException: D:\jDiskMarkData\testdata200.jdm (The system cannot find the path specified)
	at java.base/java.io.RandomAccessFile.open0(Native Method)
	at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:366)
	at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:285)
	at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:231)
	at jdiskmark.BenchmarkWorker.lambda$doInBackground$0(BenchmarkWorker.java:160)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1575)

some thoughts here are:

  • when the users starts the benchmark we can check before we start if we have read and write access to the specified location and notify that the run can not proceed until the user selects a different location.
  • to be proactive when the location is selected we can check the file access then and inform the user if access is not allowed

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions