query on VFS busy inode

Rohan Puri rohan.puri15 at gmail.com
Wed Feb 26 00:46:06 EST 2014


On Wed, Feb 26, 2014 at 1:08 AM, Abhishek Dave <cfsxdave at gmail.com> wrote:
> Hello All,
>
> Can some one please help me to understand meaning of below code
>
> <snip>
>
>         if (!list_empty(&sb->s_inodes)) {
> 406                         printk("VFS: Busy inodes after unmount of %s. "
> 407                            "Self-destruct in 5 seconds.  Have a nice
> day...\n",
> 408                            sb->s_id);
> 409                 }
>
> </snip>
>
> Are we doing here?
>
> Thanks,
>
> Dave
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

Hi Abhishek,

This code gets called during unmounting of a filesystem. During
unmounting, if there are busy inodes present in the list contained in
superblock (s_inodes field), just log the error through the printk &
go forward through the unmounting process.

- Regards,
     Rohan



More information about the Kernelnewbies mailing list