X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fntfs%2Fnamei.c;h=6a62738119622f4b89e4960941189803a6183498;hb=4e4f43fe003969bdaa246374b90e16708a22ef79;hp=bc251eb82e248e1e3d3c8da1160626c6e83609d6;hpb=86090fcac5e27b630656fe3d963a6b80e26dac44;p=linux-2.6.git diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c index bc251eb82..6a6273811 100644 --- a/fs/ntfs/namei.c +++ b/fs/ntfs/namei.c @@ -1,6 +1,6 @@ /* * namei.c - NTFS kernel directory inode operations. Part of the Linux-NTFS - * project. + * project. * * Copyright (c) 2001-2004 Anton Altaparmakov * @@ -9,13 +9,13 @@ * by the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * - * This program/include file is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty + * This program/include file 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 (in the main directory of the Linux-NTFS + * along with this program (in the main directory of the Linux-NTFS * distribution in the file COPYING); if not, write to the Free Software * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ @@ -98,7 +98,7 @@ static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, { ntfs_volume *vol = NTFS_SB(dir_ino->i_sb); struct inode *dent_inode; - uchar_t *uname; + ntfschar *uname; ntfs_name *name = NULL; MFT_REF mref; unsigned long dent_ino; @@ -177,7 +177,7 @@ handle_name: nls_name.name = NULL; if (name->type != FILE_NAME_DOS) { /* Case 2. */ nls_name.len = (unsigned)ntfs_ucstonls(vol, - (uchar_t*)&name->name, name->len, + (ntfschar*)&name->name, name->len, (unsigned char**)&nls_name.name, 0); kfree(name); } else /* if (name->type == FILE_NAME_DOS) */ { /* Case 3. */ @@ -221,14 +221,14 @@ handle_name: goto eio_err_out; fn = (FILE_NAME_ATTR*)((u8*)ctx->attr + le16_to_cpu( ctx->attr->data.resident.value_offset)); - if ((u32)(fn->file_name_length * sizeof(uchar_t) + + if ((u32)(fn->file_name_length * sizeof(ntfschar) + sizeof(FILE_NAME_ATTR)) > val_len) goto eio_err_out; } while (fn->file_name_type != FILE_NAME_WIN32); /* Convert the found WIN32 name to current NLS code page. */ nls_name.len = (unsigned)ntfs_ucstonls(vol, - (uchar_t*)&fn->file_name, fn->file_name_length, + (ntfschar*)&fn->file_name, fn->file_name_length, (unsigned char**)&nls_name.name, 0); put_attr_search_ctx(ctx);