start of setxattr and getxattr implementation

This commit is contained in:
Barry Tulchinsky 2013-12-19 09:05:33 -05:00
parent 9f031397e8
commit 848eb734b5
1 changed files with 16 additions and 6 deletions

View File

@ -1531,14 +1531,24 @@ define(function(require) {
});
}
function _getxattr(path, name, callback) {
// TODO
// if(!nullCheck(path, callback)) return;
function _getxattr(context, path, name, callback) {
if(!nullCheck(path, callback)) return;
}
function _setxattr(path, name, value, callback) {
// TODO
// if(!nullCheck(path, callback)) return;
function _setxattr(context, path, name, value, callback) {
if(!nullCheck(path, callback)) return;
function check_result (error) {
if (error) {
callback(error);
}
else {
callback(null);
}
};
setxattr_file (context, path, name, value, check_result);
}
function _lseek(fs, context, fd, offset, whence, callback) {