Turned get_device_and_inode_string() into a function.