)]}'
{
  "commit": "e9aba5158a80098447ff207a452a3418ae7ee386",
  "tree": "fb6dd19824f908746d597128d34093a301c005e7",
  "parents": [
    "a4834c102f4a46808630cad1a545cb0706b3b0a2"
  ],
  "author": {
    "name": "Konstantin Khlebnikov",
    "email": "khlebnikov@openvz.org",
    "time": "Thu Jan 05 13:06:11 2012 +0400"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@suse.de",
    "time": "Tue Jan 24 14:01:01 2012 -0800"
  },
  "message": "tty: rework pty count limiting\n\nAfter adding devpts multiple-insrances sysctl kernel.pty.max limit pty count for\neach devpts instance independently, while kernel.pty.nr shows total pty count.\n\nThis patch restores sysctl kernel.pty.max as global limit (4096 by default),\nadds pty reseve for main devpts (mounted without \"newinstance\" argument),\nand new sysctl to tune it: kernel.pty.reserve (1024 by default)\n\nAlso it adds devpts mount option \"max\u003d%d\" to limit pty count for each devpts\ninstance independently. (by default NR_UNIX98_PTY_MAX \u003d\u003d 2^20)\n\nThus devpts instances in containers cannot eat up all available pty even if we didn\u0027t\nset any limits, while with \"max\" argument we can adjust limits more precisely.\n\nPlus, now open(\"/dev/ptmx\") return -ENOSPC in case lack of pty indexes,\nthis is more informative than -EIO.\n\nSigned-off-by: Konstantin Khlebnikov \u003ckhlebnikov@openvz.org\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c2c7317d56872efcdc71fe9588b2598c07d2fc01",
      "old_mode": 33188,
      "old_path": "fs/devpts/inode.c",
      "new_id": "1c6f908e38caa8283d8b7dddaa9596de7329cbae",
      "new_mode": 33188,
      "new_path": "fs/devpts/inode.c"
    },
    {
      "type": "modify",
      "old_id": "d3ebd765b548660f96a54d7e7e4b8e560d62380d",
      "old_mode": 33188,
      "old_path": "include/linux/tty.h",
      "new_id": "d40774188203c8b03d6dc0c626af95de7bcb9a43",
      "new_mode": 33188,
      "new_path": "include/linux/tty.h"
    }
  ]
}
