{"push_id":2745534646,"size":2,"distinct_size":2,"ref":"refs/heads/add-filter-for-os-disk","head":"878903dedf79485d3fce3b1a2a984a8d8db1fe74","before":"78995404bf2591957498f37d584da626e919042c","commits":[{"sha":"31a6c867d1533e0f4b90cad14d4d5625d8067c01","author":{"name":"Shovan","email":"d1c81902d7d9f226cfd1d8051d71d3bcbb0fc6e6@gmail.com"},"message":"Filter os disk while creating disk cr\n\nImplementation steps :-\n1. read /proc/self/mounts and find which partition\nis mounted on / path (ie - sda2)\n\n2. read link /sys/class/block/[partition-name]\nie - /sys/class/block/sda2 this link looks like\n\n\"/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0\n/target0:0:0/0:0:0:0/block/sda/sda2\"\n\nread / seperated entry after \"block\" that is os disk name\n\n3. we need to mount /proc/self/mounts inside container\nif we use self it points to currently running process\nso content of that file getting changed for that we need\nto mount /proc/1/mounts this is the proc file of process\n1 of host/node.\n\n4. one new attribute IgnoreDiskUuid added in Controller\nstruct at the time of event processing if the uuid of the\ndisk is present in IgnoreDiskUuid then that event will\nnot processed by event handler.\n\nChanges committed:\nmodified:   cmd/app/command/start.go\nmodified:   cmd/controller/controller.go\nnew file:   cmd/controller/filter.go\nmodified:   cmd/controller/probe.go\nnew file:   cmd/filter/filter.go\nnew file:   cmd/filter/mountutil.go\nnew file:   cmd/filter/osdiskfilter.go\nmodified:   cmd/probe/eventhandler.go\nmodified:   cmd/probe/probe.go\nmodified:   cmd/probe/udevprobe.go\nmodified:   ndm-operator.yaml\nmodified:   pkg/udev/common.go\nmodified:   samples/node-disk-manager.yaml\n\nSigned-off-by: Shovan <shovan.cse91@gmail.com>","distinct":true,"url":"https://api.github.com/repos/shovanmaity/node-disk-manager/commits/31a6c867d1533e0f4b90cad14d4d5625d8067c01"},{"sha":"878903dedf79485d3fce3b1a2a984a8d8db1fe74","author":{"name":"Shovan Maity","email":"de7e7ba21f71509930fc729ae7fe5bb5a1c4fdb1@mayadata.io"},"message":"Unit Tests for this PR.\n\nSigned-off-by: Shovan Maity <shovan.maity@mayadata.io>","distinct":true,"url":"https://api.github.com/repos/shovanmaity/node-disk-manager/commits/878903dedf79485d3fce3b1a2a984a8d8db1fe74"}]}
{"actor":{"display_login":"shovanmaity"}}