)]}'
{
  "commit": "d7853d1f8932c847a8d7b3b38e6baedf77148cfb",
  "tree": "7307493afd5fd728150c1848509942461064ea5f",
  "parents": [
    "237fc6e7a35076f584b9d0794a5204fe4bd9b9e5"
  ],
  "author": {
    "name": "Laurent Vivier",
    "email": "Laurent.Vivier@bull.net",
    "time": "Wed Apr 30 00:55:06 2008 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Apr 30 08:29:53 2008 -0700"
  },
  "message": "brd: modify ramdisk device to be able to manage partitions\n\nThis patch adds partition management for Block RAM Device (BRD).\n\nThis patch is done to keep in sync BRD and loop device drivers.\n\nThis patch adds a parameter to the module, max_part, to specify\nthe maximum number of partitions per RAM device.\n\nExample:\n\n# modprobe brd max_part\u003d63\n# ls -l /dev/ram*\nbrw-rw---- 1 root disk 1,   0 2008-04-03 13:39 /dev/ram0\nbrw-rw---- 1 root disk 1,  64 2008-04-03 13:39 /dev/ram1\nbrw-rw---- 1 root disk 1, 640 2008-04-03 13:39 /dev/ram10\nbrw-rw---- 1 root disk 1, 704 2008-04-03 13:39 /dev/ram11\nbrw-rw---- 1 root disk 1, 768 2008-04-03 13:39 /dev/ram12\nbrw-rw---- 1 root disk 1, 832 2008-04-03 13:39 /dev/ram13\nbrw-rw---- 1 root disk 1, 896 2008-04-03 13:39 /dev/ram14\nbrw-rw---- 1 root disk 1, 960 2008-04-03 13:39 /dev/ram15\nbrw-rw---- 1 root disk 1, 128 2008-04-03 13:39 /dev/ram2\nbrw-rw---- 1 root disk 1, 192 2008-04-03 13:39 /dev/ram3\nbrw-rw---- 1 root disk 1, 256 2008-04-03 13:39 /dev/ram4\nbrw-rw---- 1 root disk 1, 320 2008-04-03 13:39 /dev/ram5\nbrw-rw---- 1 root disk 1, 384 2008-04-03 13:39 /dev/ram6\nbrw-rw---- 1 root disk 1, 448 2008-04-03 13:39 /dev/ram7\nbrw-rw---- 1 root disk 1, 512 2008-04-03 13:39 /dev/ram8\nbrw-rw---- 1 root disk 1, 576 2008-04-03 13:39 /dev/ram9\n# fdisk /dev/ram0\nDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel\nBuilding a new DOS disklabel. Changes will remain in memory only,\nuntil you decide to write them. After that, of course, the previous\ncontent won\u0027t be recoverable.\n\nWarning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)\n\nCommand (m for help): o\nBuilding a new DOS disklabel. Changes will remain in memory only,\nuntil you decide to write them. After that, of course, the previous\ncontent won\u0027t be recoverable.\n\nWarning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)\n\nCommand (m for help): n\nCommand action\n   e   extended\n   p   primary partition (1-4)\np\nPartition number (1-4): 1\nFirst cylinder (1-2, default 1): 1\nLast cylinder or +size or +sizeM or +sizeK (1-2, default 2): 2\n\nCommand (m for help): w\nThe partition table has been altered!\n\nCalling ioctl() to re-read partition table.\nSyncing disks.\n# ls -l /dev/ram0*\nbrw-rw---- 1 root disk 1, 0 2008-04-03 13:40 /dev/ram0\nbrw-rw---- 1 root disk 1, 1 2008-04-03 13:40 /dev/ram0p1\n# mkfs /dev/ram0p1\nmke2fs 1.40-WIP (14-Nov-2006)\nFilesystem label\u003d\nOS type: Linux\nBlock size\u003d1024 (log\u003d0)\nFragment size\u003d1024 (log\u003d0)\n4016 inodes, 16032 blocks\n801 blocks (5.00%) reserved for the super user\nFirst data block\u003d1\nMaximum filesystem blocks\u003d16515072\n2 block groups\n8192 blocks per group, 8192 fragments per group\n2008 inodes per group\nSuperblock backups stored on blocks:\n\t8193\n\nWriting inode tables: done\nWriting superblocks and filesystem accounting information: done\n\nThis filesystem will be automatically checked every 26 mounts or\n180 days, whichever comes first.  Use tune2fs -c or -i to override.\n# mount /dev/ram0p1 /mnt\ndf /mnt\nFilesystem           1K-blocks      Used Available Use% Mounted on\n/dev/ram0p1              15521       138     14582   1% /mnt\n# ls -l /mnt\ntotal 12\ndrwx------ 2 root root 12288 2008-04-03 13:41 lost+found\n# umount /mnt\n# rmmod brd\n\nSigned-off-by: Laurent Vivier \u003cLaurent.Vivier@bull.net\u003e\nAcked-by: Nick Piggin \u003cnickpiggin@yahoo.com.au\u003e\nCc: Al Viro \u003cviro@zeniv.linux.org.uk\u003e\nCc: Jens Axboe \u003cjens.axboe@oracle.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e8e38faeafd8774d423366424ee60cf33c99338f",
      "old_mode": 33188,
      "old_path": "drivers/block/brd.c",
      "new_id": "a196ef7f147fa234ead35696b8c115dd9ea69927",
      "new_mode": 33188,
      "new_path": "drivers/block/brd.c"
    }
  ]
}
