{"id":431,"date":"2020-08-18T19:23:47","date_gmt":"2020-08-18T20:23:47","guid":{"rendered":"http:\/\/www.linux-tutorial.info\/?page_id=77"},"modified":"2020-08-22T19:26:40","modified_gmt":"2020-08-22T20:26:40","slug":"this-is-the-page-title-toplevel-264","status":"publish","type":"page","link":"http:\/\/www.linux-tutorial.info\/?page_id=431","title":{"rendered":"Unmounting a File System"},"content":{"rendered":"\n<title>Unmounting a File System<\/title>\n<p>\nThe workshop manual for my MG usually describes assembly as the reverse of\ndisassembly and the reverse is more or less true for unmounting a file system.\n<p>\nA file system cannot be unmounted if something in the system is using one of its\nfiles.\nSo, for example, you cannot umount <directory>\/mnt\/cdrom<\/directory> if a process is using that\ndirectory or any of its children.\nIf anything is using the file system to be unmounted there may be VFS inodes\nfrom it in the VFS inode cache, and the code checks for this by looking through\nthe list of inodes looking for inodes owned by the device that this file system\noccupies.\nIf the VFS superblock for the mounted file system is dirty, that is it has\nbeen modified, then it must be written back to the file system on disk.\nOnce it has been written to disk, the memory occupied by the VFS superblock\nis returned to the kernel&#8217;s free pool of memory.\nFinally the vfsmount data structure for this mount is unlinked from\nvfsmntlist and freed.\n","protected":false},"excerpt":{"rendered":"<p>Unmounting a File System The workshop manual for my MG usually describes assembly as the reverse of disassembly and the reverse is more or less true for unmounting a file system. A file system cannot be unmounted if something in &hellip; <a href=\"http:\/\/www.linux-tutorial.info\/?page_id=431\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-431","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=431"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/431\/revisions"}],"predecessor-version":[{"id":772,"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=\/wp\/v2\/pages\/431\/revisions\/772"}],"wp:attachment":[{"href":"http:\/\/www.linux-tutorial.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}