From 127d183ef8167b511a2c6e1d9162a3b1d86c342c Mon Sep 17 00:00:00 2001 From: "flatcap.org!ntfs" Date: Fri, 10 Oct 2003 21:42:48 +0000 Subject: [PATCH] added MAX_PATH (for ntfsls) (Logical change 1.192) --- ntfsprogs/utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ntfsprogs/utils.h b/ntfsprogs/utils.h index 14b20b00..733c2892 100644 --- a/ntfsprogs/utils.h +++ b/ntfsprogs/utils.h @@ -1,7 +1,7 @@ /* * utils.h - Part of the Linux-NTFS project. * - * Copyright (c) 2002 Richard Russon + * Copyright (c) 2002-2003 Richard Russon * * A set of shared functions for ntfs utilities * @@ -36,6 +36,7 @@ extern const char *ntfs_home; extern const char *ntfs_gpl; #define PATH_SEP '/' +#define MAX_PATH 1024 #define GEN_PRINTF(NAME, STREAM, CONTROL, TRIGGER) \ __attribute__ ((format (printf, 1, 2))) \ @@ -72,6 +73,7 @@ int utils_attr_get_name (ntfs_volume *vol, ATTR_RECORD *attr, char *buffer, int int utils_cluster_in_use (ntfs_volume *vol, long long lcn); int utils_mftrec_in_use (ntfs_volume *vol, MFT_REF mref); int utils_is_metadata (ntfs_inode *inode); +ntfs_inode * utils_pathname_to_inode (ntfs_volume *vol, ntfs_inode *parent, const char *pathname); time_t ntfs2utc (s64 time); s64 utc2ntfs (time_t time);