What are the “non-extended attributes” (as opposed to “extended attributes”) in Linux?

Clash Royale CLAN TAG#URR8PPP
Linux has what is called "extended attributes", but I am wondering what are the "non-extended attributes", I am assuming they are things like the file permissions, file owner, file dates, etc.
Am I correct? and is there a documentation that lists all of the "non-extended attributes"?
linux
add a comment |
Linux has what is called "extended attributes", but I am wondering what are the "non-extended attributes", I am assuming they are things like the file permissions, file owner, file dates, etc.
Am I correct? and is there a documentation that lists all of the "non-extended attributes"?
linux
All those attributes that are not name:value pair should be considered non-extended, notice this is API level, the actual data structure storage form can be very complex and filesystem dependent. See man7.org/linux/man-pages/man7/xattr.7.html, all things that are not able to read/write using xatrr API should be considered non-extended.
– 炸鱼薯条德里克
Feb 20 at 3:16
add a comment |
Linux has what is called "extended attributes", but I am wondering what are the "non-extended attributes", I am assuming they are things like the file permissions, file owner, file dates, etc.
Am I correct? and is there a documentation that lists all of the "non-extended attributes"?
linux
Linux has what is called "extended attributes", but I am wondering what are the "non-extended attributes", I am assuming they are things like the file permissions, file owner, file dates, etc.
Am I correct? and is there a documentation that lists all of the "non-extended attributes"?
linux
linux
asked Feb 20 at 2:31
JohnJohn
23119
23119
All those attributes that are not name:value pair should be considered non-extended, notice this is API level, the actual data structure storage form can be very complex and filesystem dependent. See man7.org/linux/man-pages/man7/xattr.7.html, all things that are not able to read/write using xatrr API should be considered non-extended.
– 炸鱼薯条德里克
Feb 20 at 3:16
add a comment |
All those attributes that are not name:value pair should be considered non-extended, notice this is API level, the actual data structure storage form can be very complex and filesystem dependent. See man7.org/linux/man-pages/man7/xattr.7.html, all things that are not able to read/write using xatrr API should be considered non-extended.
– 炸鱼薯条德里克
Feb 20 at 3:16
All those attributes that are not name:value pair should be considered non-extended, notice this is API level, the actual data structure storage form can be very complex and filesystem dependent. See man7.org/linux/man-pages/man7/xattr.7.html, all things that are not able to read/write using xatrr API should be considered non-extended.
– 炸鱼薯条德里克
Feb 20 at 3:16
All those attributes that are not name:value pair should be considered non-extended, notice this is API level, the actual data structure storage form can be very complex and filesystem dependent. See man7.org/linux/man-pages/man7/xattr.7.html, all things that are not able to read/write using xatrr API should be considered non-extended.
– 炸鱼薯条德里克
Feb 20 at 3:16
add a comment |
1 Answer
1
active
oldest
votes
The basic attributes are those that you can retrieve with the stat(2) system call.
struct stat
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* Inode number */
mode_t st_mode; /* File type and mode */
nlink_t st_nlink; /* Number of hard links */
uid_t st_uid; /* User ID of owner */
gid_t st_gid; /* Group ID of owner */
dev_t st_rdev; /* Device ID (if special file) */
off_t st_size; /* Total size, in bytes */
blksize_t st_blksize; /* Block size for filesystem I/O */
blkcnt_t st_blocks; /* Number of 512B blocks allocated */
/* Since Linux 2.6, the kernel supports nanosecond
precision for the following timestamp fields.
For the details before Linux 2.6, see NOTES. */
struct timespec st_atim; /* Time of last access */
struct timespec st_mtim; /* Time of last modification */
struct timespec st_ctim; /* Time of last status change */
#define st_atime st_atim.tv_sec /* Backward compatibility */
#define st_mtime st_mtim.tv_sec
#define st_ctime st_ctim.tv_sec
;
unlikestatx, it seems unable to get file attributes, see man7.org/linux/man-pages/man2/ioctl_iflags.2.html This seems not be the extended attributes, they're not name: value pairs
– 炸鱼薯条德里克
Feb 20 at 3:11
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501754%2fwhat-are-the-non-extended-attributes-as-opposed-to-extended-attributes-in%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The basic attributes are those that you can retrieve with the stat(2) system call.
struct stat
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* Inode number */
mode_t st_mode; /* File type and mode */
nlink_t st_nlink; /* Number of hard links */
uid_t st_uid; /* User ID of owner */
gid_t st_gid; /* Group ID of owner */
dev_t st_rdev; /* Device ID (if special file) */
off_t st_size; /* Total size, in bytes */
blksize_t st_blksize; /* Block size for filesystem I/O */
blkcnt_t st_blocks; /* Number of 512B blocks allocated */
/* Since Linux 2.6, the kernel supports nanosecond
precision for the following timestamp fields.
For the details before Linux 2.6, see NOTES. */
struct timespec st_atim; /* Time of last access */
struct timespec st_mtim; /* Time of last modification */
struct timespec st_ctim; /* Time of last status change */
#define st_atime st_atim.tv_sec /* Backward compatibility */
#define st_mtime st_mtim.tv_sec
#define st_ctime st_ctim.tv_sec
;
unlikestatx, it seems unable to get file attributes, see man7.org/linux/man-pages/man2/ioctl_iflags.2.html This seems not be the extended attributes, they're not name: value pairs
– 炸鱼薯条德里克
Feb 20 at 3:11
add a comment |
The basic attributes are those that you can retrieve with the stat(2) system call.
struct stat
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* Inode number */
mode_t st_mode; /* File type and mode */
nlink_t st_nlink; /* Number of hard links */
uid_t st_uid; /* User ID of owner */
gid_t st_gid; /* Group ID of owner */
dev_t st_rdev; /* Device ID (if special file) */
off_t st_size; /* Total size, in bytes */
blksize_t st_blksize; /* Block size for filesystem I/O */
blkcnt_t st_blocks; /* Number of 512B blocks allocated */
/* Since Linux 2.6, the kernel supports nanosecond
precision for the following timestamp fields.
For the details before Linux 2.6, see NOTES. */
struct timespec st_atim; /* Time of last access */
struct timespec st_mtim; /* Time of last modification */
struct timespec st_ctim; /* Time of last status change */
#define st_atime st_atim.tv_sec /* Backward compatibility */
#define st_mtime st_mtim.tv_sec
#define st_ctime st_ctim.tv_sec
;
unlikestatx, it seems unable to get file attributes, see man7.org/linux/man-pages/man2/ioctl_iflags.2.html This seems not be the extended attributes, they're not name: value pairs
– 炸鱼薯条德里克
Feb 20 at 3:11
add a comment |
The basic attributes are those that you can retrieve with the stat(2) system call.
struct stat
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* Inode number */
mode_t st_mode; /* File type and mode */
nlink_t st_nlink; /* Number of hard links */
uid_t st_uid; /* User ID of owner */
gid_t st_gid; /* Group ID of owner */
dev_t st_rdev; /* Device ID (if special file) */
off_t st_size; /* Total size, in bytes */
blksize_t st_blksize; /* Block size for filesystem I/O */
blkcnt_t st_blocks; /* Number of 512B blocks allocated */
/* Since Linux 2.6, the kernel supports nanosecond
precision for the following timestamp fields.
For the details before Linux 2.6, see NOTES. */
struct timespec st_atim; /* Time of last access */
struct timespec st_mtim; /* Time of last modification */
struct timespec st_ctim; /* Time of last status change */
#define st_atime st_atim.tv_sec /* Backward compatibility */
#define st_mtime st_mtim.tv_sec
#define st_ctime st_ctim.tv_sec
;
The basic attributes are those that you can retrieve with the stat(2) system call.
struct stat
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* Inode number */
mode_t st_mode; /* File type and mode */
nlink_t st_nlink; /* Number of hard links */
uid_t st_uid; /* User ID of owner */
gid_t st_gid; /* Group ID of owner */
dev_t st_rdev; /* Device ID (if special file) */
off_t st_size; /* Total size, in bytes */
blksize_t st_blksize; /* Block size for filesystem I/O */
blkcnt_t st_blocks; /* Number of 512B blocks allocated */
/* Since Linux 2.6, the kernel supports nanosecond
precision for the following timestamp fields.
For the details before Linux 2.6, see NOTES. */
struct timespec st_atim; /* Time of last access */
struct timespec st_mtim; /* Time of last modification */
struct timespec st_ctim; /* Time of last status change */
#define st_atime st_atim.tv_sec /* Backward compatibility */
#define st_mtime st_mtim.tv_sec
#define st_ctime st_ctim.tv_sec
;
answered Feb 20 at 2:45
PSkocikPSkocik
18.3k55199
18.3k55199
unlikestatx, it seems unable to get file attributes, see man7.org/linux/man-pages/man2/ioctl_iflags.2.html This seems not be the extended attributes, they're not name: value pairs
– 炸鱼薯条德里克
Feb 20 at 3:11
add a comment |
unlikestatx, it seems unable to get file attributes, see man7.org/linux/man-pages/man2/ioctl_iflags.2.html This seems not be the extended attributes, they're not name: value pairs
– 炸鱼薯条德里克
Feb 20 at 3:11
unlike
statx, it seems unable to get file attributes, see man7.org/linux/man-pages/man2/ioctl_iflags.2.html This seems not be the extended attributes, they're not name: value pairs– 炸鱼薯条德里克
Feb 20 at 3:11
unlike
statx, it seems unable to get file attributes, see man7.org/linux/man-pages/man2/ioctl_iflags.2.html This seems not be the extended attributes, they're not name: value pairs– 炸鱼薯条德里克
Feb 20 at 3:11
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501754%2fwhat-are-the-non-extended-attributes-as-opposed-to-extended-attributes-in%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
All those attributes that are not name:value pair should be considered non-extended, notice this is API level, the actual data structure storage form can be very complex and filesystem dependent. See man7.org/linux/man-pages/man7/xattr.7.html, all things that are not able to read/write using xatrr API should be considered non-extended.
– 炸鱼薯条德里克
Feb 20 at 3:16