Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350708

(fc) Investigate revising the BlockDeviceSize test not to require extra privileges

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • core-libs
    • generic
    • linux

      The test java/nio/channels/FileChannel/BlockDeviceSize.java attempts to access block devices such as /dev/sda1 which typically are readable only by the owner and group members. For example:

      $ ls -l /dev/sda[12]
      brw-rw---- 1 root disk 8, 1 Feb 25 15:40 /dev/sda1
      brw-rw---- 1 root disk 8, 2 Feb 25 15:40 /dev/sda2

      It would be better if a test could be devised which did not require extra permission.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: