PPT Slide
for (;;) {
/* look up first N-1 components of pathname */
if (dentry exists && is a symlink)
goto readlink;
err = lookup_open(filename, flags);
if (err != -ELOOP)
return err;
/* if –ELOOP, instantiate a dentry for the symlink*/
readlink:
if (++safeguard > 10)
return -ELOOP; /* loop count exceeded */
->readlink(dentry);
}
Previous slide
Next slide
Back to first slide
View graphic version