gendisk: Avoid partition scan when GENHD_FL_NO_PART_SCAN is set
authorSeshagiri Holi <sholi@nvidia.com>
Mon, 18 Nov 2013 08:20:13 +0000 (13:20 +0530)
committerSeshagiri Holi <sholi@nvidia.com>
Thu, 29 May 2014 09:02:54 +0000 (02:02 -0700)
commit4c35747fd4e6c926426ab613b54b007665b23683
tree8037a941191f5fcde2d4f00869b431e19e7e2895
parent868d5ae7f01041a7baecd20b22374748c2353ddb
gendisk: Avoid partition scan when GENHD_FL_NO_PART_SCAN is set

The RPMB partitions should have authenticated
 read/write requests. Any regular read/write request
 will prompt errors.

mmc driver will set block device of RPMB type
 to GENHD_FL_NO_PART_SCAN.

With this patch rpmb partition are not listed in
 /proc/partition so that fdisk command will not
 process for read request.

Bug 1367536

Change-Id: I13d02c4c810fcfe4627ef949efbf51f484b27a7f
Signed-off-by: Seshagiri Holi <sholi@nvidia.com>
Reviewed-on: http://git-master/r/388056
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
block/genhd.c