Make ino_resolve() shared so that we can call it at snapshot diff module. Signed-off-by: Jie Liu <jeff.liu@oracle.com> --- btrfs-list.c | 3 +-- btrfs-list.h | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 btrfs-list.h diff --git a/btrfs-list.c b/btrfs-list.c index c53d016..75681e1 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -474,8 +474,7 @@ char *build_name(char *dirid, char *name) * cache the results so we can avoid tree searches if a later call goes * to the same directory or file name */ -static char *ino_resolve(int fd, u64 ino, u64 *cache_dirid, char **cache_name) - +char *ino_resolve(int fd, u64 ino, u64 *cache_dirid, char **cache_name) { u64 dirid; char *dirname; diff --git a/btrfs-list.h b/btrfs-list.h new file mode 100644 index 0000000..70b2078 --- /dev/null +++ b/btrfs-list.h @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2007 Oracle. All rights reserved. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ + +#ifndef __BTRFS_LIST_ +#define __BTRFS_LIST_ +char *ino_resolve(int fd, u64 ino, u64 *cache_dirid, char **cache_name); +#endif -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html