ap in lfs_truncate renamed inp because of name conflict with vnode arguments pointer...