ntfsmount: fix nr_links for directories.
parent
cebd8ec132
commit
fd2e6eb09d
|
@ -22,6 +22,7 @@ xx/xx/xxxx - 1.12.0-WIP
|
|||
wasn't in use. (Szaka)
|
||||
- Fix ntfs_attr_p{read,write} to not return less bytes if trapped on
|
||||
unmapped runlist region. (Yura)
|
||||
- Make find work correctly on volumes mounted by ntfsmount. (Yura)
|
||||
|
||||
20/07/2005 - 1.11.1 - Fix several ntfsmount bugs.
|
||||
|
||||
|
|
|
@ -264,6 +264,7 @@ static int ntfs_fuse_getattr(const char *org_path, struct stat *stbuf)
|
|||
stbuf->st_size = 0;
|
||||
stbuf->st_blocks = 0;
|
||||
}
|
||||
stbuf->st_nlink = 1; /* Needed for correct find work. */
|
||||
} else {
|
||||
stbuf->st_mode = S_IFREG | (0777 & ~ctx->fmask);
|
||||
na = ntfs_attr_open(ni, AT_DATA, stream_name,
|
||||
|
@ -279,11 +280,11 @@ static int ntfs_fuse_getattr(const char *org_path, struct stat *stbuf)
|
|||
if (stream_name_len)
|
||||
res = -ENOENT;
|
||||
}
|
||||
stbuf->st_nlink = le16_to_cpu(ni->mrec->link_count);
|
||||
}
|
||||
stbuf->st_uid = ctx->uid;
|
||||
stbuf->st_gid = ctx->gid;
|
||||
stbuf->st_ino = ni->mft_no;
|
||||
stbuf->st_nlink = le16_to_cpu(ni->mrec->link_count);
|
||||
stbuf->st_atime = ni->atime;
|
||||
stbuf->st_ctime = ni->ctime;
|
||||
stbuf->st_mtime = ni->mtime;
|
||||
|
|
Loading…
Reference in New Issue