[Bug 212700] [patch] Implement BLKGETSIZE ioctl() for Linux compat

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Sep 15 12:04:38 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212700

            Bug ID: 212700
           Summary: [patch] Implement BLKGETSIZE ioctl() for Linux compat
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: erik at cederstrand.dk
          Keywords: patch

Created attachment 174794
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=174794&action=edit
Patch for linux_ioctl.c

Every time I run the Oracle database client "sqlplus" under Linux compat, I get
this message in /var/log/messages:

  kernel: linux: pid 92000 (sqlplus): ioctl fd=3, cmd=0x1268 ('',104) is not
implemented

0x1268 is BLKSSZGET according to linux_ioctl.h.

Attached is a patch against 10.3-RELEASE source which implements BLKSSZGET in
the Linux compat layer. Should apply on CURRENT, too. Runtested with sqlplus
resulting in a working sqlplus and no more messages to /var/log/messages.

Test machine:
$ uname -a
FreeBSD garfield.example.com 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat
May 28 12:23:44 UTC 2016    
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list