Re: [PATCH v2 2/4] src/open_by_handle: program to exercise open_by_handle_at() syscall

Rock Lee
2017-04-22T07:55:21Z

Hi, Amir:

> + /*
> + * now drop the caches so that unlinked inodes are reclaimed and
> + * buftarg page cache is emptied so that the inode cluster has to be
> + * fetched from disk again for the open_by_handle() call.
> + */
> + ret = system("echo 3 > /proc/sys/vm/drop_caches");
> + if (ret < 0) {
> + perror("drop_caches");
> + return EXIT_FAILURE;
> + }
> +

The original value of /proc/sys/vm/drop_caches is 0 in my rpi3. After
this test, it turns to 3. Is it necessary to restore it ?

--
Cheers,
Rock