You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[O_TMPFILE] it's still short a few helpers, but infrastructure should be OK now...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -54,6 +54,18 @@ static int minix_mknod(struct inode * dir, struct dentry *dentry, umode_t mode,
|
||||
return error;
|
||||
}
|
||||
|
||||
static int minix_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode)
|
||||
{
|
||||
int error;
|
||||
struct inode *inode = minix_new_inode(dir, mode, &error);
|
||||
if (inode) {
|
||||
minix_set_inode(inode, 0);
|
||||
mark_inode_dirty(inode);
|
||||
d_tmpfile(dentry, inode);
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
||||
static int minix_create(struct inode *dir, struct dentry *dentry, umode_t mode,
|
||||
bool excl)
|
||||
{
|
||||
@@ -254,4 +266,5 @@ const struct inode_operations minix_dir_inode_operations = {
|
||||
.mknod = minix_mknod,
|
||||
.rename = minix_rename,
|
||||
.getattr = minix_getattr,
|
||||
.tmpfile = minix_tmpfile,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user