diff options
Diffstat (limited to 'bitbake/lib/bb/monitordisk.py')
-rw-r--r-- | bitbake/lib/bb/monitordisk.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/monitordisk.py b/bitbake/lib/bb/monitordisk.py index fca43eefd0..6b03682584 100644 --- a/bitbake/lib/bb/monitordisk.py +++ b/bitbake/lib/bb/monitordisk.py | |||
@@ -52,10 +52,10 @@ def getMountedDev(path): | |||
52 | parentDev = os.stat(path).st_dev | 52 | parentDev = os.stat(path).st_dev |
53 | currentDev = parentDev | 53 | currentDev = parentDev |
54 | # When the current directory's device is different from the | 54 | # When the current directory's device is different from the |
55 | # parrent's, then the current directory is a mount point | 55 | # parent's, then the current directory is a mount point |
56 | while parentDev == currentDev: | 56 | while parentDev == currentDev: |
57 | mountPoint = path | 57 | mountPoint = path |
58 | # Use dirname to get the parrent's directory | 58 | # Use dirname to get the parent's directory |
59 | path = os.path.dirname(path) | 59 | path = os.path.dirname(path) |
60 | # Reach the "/" | 60 | # Reach the "/" |
61 | if path == mountPoint: | 61 | if path == mountPoint: |
@@ -77,7 +77,7 @@ def getDiskData(BBDirs, configuration): | |||
77 | """Prepare disk data for disk space monitor""" | 77 | """Prepare disk data for disk space monitor""" |
78 | 78 | ||
79 | # Save the device IDs, need the ID to be unique (the dictionary's key is | 79 | # Save the device IDs, need the ID to be unique (the dictionary's key is |
80 | # unique), so that when more than one directories are located in the same | 80 | # unique), so that when more than one directory is located on the same |
81 | # device, we just monitor it once | 81 | # device, we just monitor it once |
82 | devDict = {} | 82 | devDict = {} |
83 | for pathSpaceInode in BBDirs.split(): | 83 | for pathSpaceInode in BBDirs.split(): |
@@ -187,11 +187,11 @@ class diskMonitor: | |||
187 | if self.spaceInterval and self.inodeInterval: | 187 | if self.spaceInterval and self.inodeInterval: |
188 | self.enableMonitor = True | 188 | self.enableMonitor = True |
189 | # These are for saving the previous disk free space and inode, we | 189 | # These are for saving the previous disk free space and inode, we |
190 | # use them to avoid print too many warning messages | 190 | # use them to avoid printing too many warning messages |
191 | self.preFreeS = {} | 191 | self.preFreeS = {} |
192 | self.preFreeI = {} | 192 | self.preFreeI = {} |
193 | # This is for STOPTASKS and ABORT, to avoid print the message repeatly | 193 | # This is for STOPTASKS and ABORT, to avoid printing the message |
194 | # during waiting the tasks to finish | 194 | # repeatedly while waiting for the tasks to finish |
195 | self.checked = {} | 195 | self.checked = {} |
196 | for k in self.devDict: | 196 | for k in self.devDict: |
197 | self.preFreeS[k] = 0 | 197 | self.preFreeS[k] = 0 |