Just use ntfs_attr_add() since the non_resident version doesn't seem to work, can't remember why I wanted to force non-resident attributes in the first place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43000 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
500b53f5db
commit
cba6e1d06d
@ -285,11 +285,12 @@ fs_create_attrib(fs_volume *_vol, fs_vnode *_node, const char* name,
|
||||
strerror(result));
|
||||
goto exit;
|
||||
}
|
||||
if (ntfs_non_resident_attr_record_add(ni, AT_DATA, uname, ulen, 0, 32,
|
||||
0) < 0) {
|
||||
//if (ntfs_non_resident_attr_record_add(ni, AT_DATA, uname, ulen, 0, 32,
|
||||
// 0) < 0) {
|
||||
if (ntfs_attr_add(ni, AT_DATA, uname, ulen, NULL, 0) < 0) {
|
||||
result = errno;
|
||||
ERROR("%s - ntfs_non_resident_attr_record_add: %s\n",
|
||||
__FUNCTION__, strerror(result));
|
||||
//ERROR("%s - ntfs_non_resident_attr_record_add: %s\n",
|
||||
ERROR("%s - ntfs_attr_add: %s\n", __FUNCTION__, strerror(result));
|
||||
goto exit;
|
||||
}
|
||||
na = ntfs_attr_open(ni, AT_DATA, uname, ulen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user