Searched refs:rootdev (Results 1 – 1 of 1) sorted by relevance
71 static void delete_contents(const char *directory, dev_t rootdev);85 static void delete_contents(const char *directory, dev_t rootdev) in delete_contents() argument90 if (lstat(directory, &st) || st.st_dev != rootdev) in delete_contents()95 iterate_on_dir(directory, rmrf, &rootdev); in delete_contents()182 dev_t rootdev; in switch_root_main() local227 rootdev = st.st_dev; in switch_root_main()229 if (st.st_dev == rootdev) { in switch_root_main()253 delete_contents("/", rootdev); in switch_root_main()