Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d0af8376
Commit
d0af8376
authored
Aug 07, 2003
by
Steve French
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs
parents
9c89bd10
140cb159
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
0 deletions
+119
-0
fs/cifs/cifsfs.c
fs/cifs/cifsfs.c
+102
-0
fs/cifs/cifspdu.h
fs/cifs/cifspdu.h
+17
-0
No files found.
fs/cifs/cifsfs.c
View file @
d0af8376
...
...
@@ -247,6 +247,108 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
return
0
;
}
int
cifs_xquota_set
(
struct
super_block
*
sb
,
int
quota_type
,
qid_t
qid
,
struct
fs_disk_quota
*
pdquota
)
{
int
xid
;
int
rc
=
0
;
struct
cifs_sb_info
*
cifs_sb
=
CIFS_SB
(
sb
);
struct
cifsTconInfo
*
pTcon
;
if
(
cifs_sb
)
pTcon
=
cifs_sb
->
tcon
;
else
return
-
EIO
;
xid
=
GetXid
();
if
(
pTcon
)
rc
=
-
EIO
;
else
{
}
FreeXid
(
xid
);
return
rc
;
}
int
cifs_xquota_get
(
struct
super_block
*
sb
,
int
quota_type
,
qid_t
qid
,
struct
fs_disk_quota
*
pdquota
)
{
int
xid
;
int
rc
=
0
;
struct
cifs_sb_info
*
cifs_sb
=
CIFS_SB
(
sb
);
struct
cifsTconInfo
*
pTcon
;
if
(
cifs_sb
)
pTcon
=
cifs_sb
->
tcon
;
else
return
-
EIO
;
xid
=
GetXid
();
if
(
pTcon
)
rc
=
-
EIO
;
else
{
}
FreeXid
(
xid
);
return
rc
;
}
int
cifs_xstate_set
(
struct
super_block
*
sb
,
unsigned
int
flags
,
int
operation
)
{
int
xid
;
int
rc
=
0
;
struct
cifs_sb_info
*
cifs_sb
=
CIFS_SB
(
sb
);
struct
cifsTconInfo
*
pTcon
;
if
(
cifs_sb
)
pTcon
=
cifs_sb
->
tcon
;
else
return
-
EIO
;
xid
=
GetXid
();
if
(
pTcon
)
rc
=
-
EIO
;
else
{
}
FreeXid
(
xid
);
return
rc
;
}
int
cifs_xstate_get
(
struct
super_block
*
sb
,
struct
fs_quota_stat
*
qstats
)
{
int
xid
;
int
rc
=
0
;
struct
cifs_sb_info
*
cifs_sb
=
CIFS_SB
(
sb
);
struct
cifsTconInfo
*
pTcon
;
if
(
cifs_sb
)
pTcon
=
cifs_sb
->
tcon
;
else
return
-
EIO
;
xid
=
GetXid
();
if
(
pTcon
)
rc
=
-
EIO
;
else
{
}
FreeXid
(
xid
);
return
rc
;
}
static
struct
quotactl_ops
cifs_quotactl_ops
=
{
.
set_xquota
=
cifs_xquota_set
,
.
get_xquota
=
cifs_xquota_set
,
.
set_xstate
=
cifs_xstate_set
,
.
get_xstate
=
cifs_xstate_get
,
};
struct
super_operations
cifs_super_ops
=
{
.
read_inode
=
cifs_read_inode
,
.
put_super
=
cifs_put_super
,
...
...
fs/cifs/cifspdu.h
View file @
d0af8376
...
...
@@ -68,6 +68,8 @@
#define NT_TRANSACT_NOTIFY_CHANGE 0x04
#define NT_TRANSACT_RENAME 0x05
#define NT_TRANSACT_QUERY_SECURITY_DESC 0x06
#define NT_TRANSACT_GET_USER_QUOTA 0x07
#define NT_TRANSACT_SET_USER_QUOTA 0x08
#define MAX_CIFS_HDR_SIZE 256
/* chained NTCreateXReadX will probably be biggest */
...
...
@@ -878,6 +880,21 @@ struct reparse_data {
char
LinkNamesBuf
[
1
];
};
struct
cifs_quota_data
{
__u32
rsrvd1
;
/* 0 */
__u32
sid_size
;
__u64
rsrvd2
;
/* 0 */
__u64
space_used
;
__u64
soft_limit
;
__u64
hard_limit
;
char
sid
[
1
];
/* variable size? */
};
/* quota sub commands */
#define QUOTA_LIST_CONTINUE 0
#define QUOTA_LIST_START 0x100
#define QUOTA_FOR_SID 0x101
typedef
union
smb_com_transaction2
{
struct
{
struct
smb_hdr
hdr
;
/* wct = 14+ */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment