Permalink
Browse files

detection.c: Clarified some commenting

  • Loading branch information...
TacoSteemers committed Apr 13, 2013
1 parent 89e9577 commit ea97035414ad2b27b2bb8b2e61bdb7708fb07b7a
Showing with 5 additions and 4 deletions.
  1. +5 −4 code/detection.c
View
@@ -32,19 +32,20 @@ void doCheck(void)
initializeRun();
directory = openDirOrHang(dirToCheck);
+ /* Proccess each partition related to a device name in /sys/block/,
+ that starts with "sd"*/
do
- { /* Proccess each item in /sys/block/ */
+ {
if ((entry = readdir(directory)) == NULL)
continue;
if(entry->d_name[0]!='s' || entry->d_name[1]!='d')
continue;
- /* sda3, sdb1, sdc5, ... */
+ /* sda, sdb, sdc, ... */
- /* We will now check via /proc/mounts
- which partitions have been mounted */
sprintf(devicePath, "/dev/%s", entry->d_name);
count = 0;
findMountedPartitions(partitions, pCount, devicePath);
+
int i;
for(i = 0; i < count; i++)
{

0 comments on commit ea97035

Please sign in to comment.