Lines Matching defs:path
47 static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char **fs)
57 if (!path||!mntpath||!bdev||!fs)
64 if ( sys_stat(path, &S) == -1 )
100 static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char **fs)
106 if (!path||!mntpath||!bdev||!fs)
115 if ((ret=sys_stat(path, &S))!=0) {
127 (*mntpath) = SMB_STRDUP(path);
144 static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char **fs)
148 if (!path||!mntpath||!bdev||!fs)
155 (*mntpath) = SMB_STRDUP(path);
172 int (*get_quota)(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp);
173 int (*set_quota)(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp);
181 static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp)
209 get_quota_command, path, qtype, _id);
302 static int command_set_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp)
330 set_quota_command, path, qtype, _id, dp->qflags,
339 set_quota_command, path, qtype, _id, dp->qflags,
367 int sys_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp)
376 if (!path||!dp)
379 if (command_get_quota(path, qtype, id, dp)==0) {
385 if ((ret=sys_path_to_bdev(path,&mntpath,&bdev,&fs))!=0) {
386 DEBUG(0,("sys_path_to_bdev() failed for path [%s]!\n",path));
432 int sys_set_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp)
443 if (!path||!dp)
446 if (command_set_quota(path, qtype, id, dp)==0) {
452 if ((ret=sys_path_to_bdev(path,&mntpath,&bdev,&fs))!=0) {
453 DEBUG(0,("sys_path_to_bdev() failed for path [%s]!\n",path));