Bug 212700 - [patch] Implement BLKGETSIZE ioctl() for Linux compat
Summary: [patch] Implement BLKGETSIZE ioctl() for Linux compat
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Chagin
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-09-15 12:04 UTC by Erik Cederstrand
Modified: 2016-09-24 10:34 UTC (History)
1 user (show)

See Also:


Attachments
Patch for linux_ioctl.c (549 bytes, patch)
2016-09-15 12:04 UTC, Erik Cederstrand
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Cederstrand 2016-09-15 12:04:37 UTC
Created attachment 174794 [details]
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@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-09-17 08:10:12 UTC
A commit references this bug:

Author: dchagin
Date: Sat Sep 17 08:10:02 UTC 2016
New revision: 305896
URL: https://svnweb.freebsd.org/changeset/base/305896

Log:
  Implement BLKSSZGET ioctl for the Linuxulator.

  PR:		212700
  Submitted by:	Erik Cederstrand
  Reported by:	Erik Cederstrand
  MFC after:	1 week

Changes:
  head/sys/compat/linux/linux_ioctl.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-09-24 10:32:47 UTC
A commit references this bug:

Author: dchagin
Date: Sat Sep 24 10:32:27 UTC 2016
New revision: 306293
URL: https://svnweb.freebsd.org/changeset/base/306293

Log:
  MFC r305896:

  Implement BLKSSZGET ioctl for the Linuxulator.

  PR:		212700

Changes:
_U  stable/11/
  stable/11/sys/compat/linux/linux_ioctl.c
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-09-24 10:34:49 UTC
A commit references this bug:

Author: dchagin
Date: Sat Sep 24 10:34:35 UTC 2016
New revision: 306294
URL: https://svnweb.freebsd.org/changeset/base/306294

Log:
  MFC r305896:

  Implement BLKSSZGET ioctl for the Linuxulator.

  PR:		212700

Changes:
_U  stable/10/
  stable/10/sys/compat/linux/linux_ioctl.c