mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Fix fsnotify.Remove logic function.
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
parent
832818084d
commit
f77a808105
@ -187,11 +187,11 @@ create:
|
|||||||
if !strings.HasPrefix(deviceNode, "nvidia") {
|
if !strings.HasPrefix(deviceNode, "nvidia") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if event.Op&fsnotify.Create == fsnotify.Create {
|
if event.Has(fsnotify.Create) {
|
||||||
m.logger.Infof("%s created, restarting.", event.Name)
|
m.logger.Infof("%s created, restarting.", event.Name)
|
||||||
goto create
|
goto create
|
||||||
}
|
}
|
||||||
if event.Op&fsnotify.Create == fsnotify.Remove {
|
if event.Has(fsnotify.Remove) {
|
||||||
m.logger.Infof("%s removed. Ignoring", event.Name)
|
m.logger.Infof("%s removed. Ignoring", event.Name)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user