Lines Matching +full:p +full:- +full:limit
24 fn as_int(&self) -> c_int { in as_int()
62 … /// Handles 32-bit UIDs/GIDs and quota limits up to 2<sup>32</sup> bytes/2<sup>32</sup> inodes.
66 /// Handles 32-bit UIDs/GIDs and quota limits of 2<sup>64</sup> bytes/2<sup>64</sup> inodes.
75 /// The block hard & soft limit fields.
79 /// The inode hard & soft limit fields.
83 /// The disk use time limit field.
85 /// The file quote time limit field.
91 /// The time limit fields.
104 fn default() -> Dqblk { in default()
120 /// The absolute limit on disk quota blocks allocated.
121 pub fn blocks_hard_limit(&self) -> Option<u64> { in blocks_hard_limit()
131 /// Set the absolute limit on disk quota blocks allocated.
132 pub fn set_blocks_hard_limit(&mut self, limit: u64) { in set_blocks_hard_limit()
133 self.0.dqb_bhardlimit = limit; in set_blocks_hard_limit()
136 /// Preferred limit on disk quota blocks
137 pub fn blocks_soft_limit(&self) -> Option<u64> { in blocks_soft_limit()
147 /// Set the preferred limit on disk quota blocks allocated.
148 pub fn set_blocks_soft_limit(&mut self, limit: u64) { in set_blocks_soft_limit()
149 self.0.dqb_bsoftlimit = limit; in set_blocks_soft_limit()
153 pub fn occupied_space(&self) -> Option<u64> { in occupied_space()
164 pub fn inodes_hard_limit(&self) -> Option<u64> { in inodes_hard_limit()
175 pub fn set_inodes_hard_limit(&mut self, limit: u64) { in set_inodes_hard_limit()
176 self.0.dqb_ihardlimit = limit; in set_inodes_hard_limit()
179 /// Preferred inode limit
180 pub fn inodes_soft_limit(&self) -> Option<u64> { in inodes_soft_limit()
190 /// Set the preferred limit of allocated inodes.
191 pub fn set_inodes_soft_limit(&mut self, limit: u64) { in set_inodes_soft_limit()
192 self.0.dqb_isoftlimit = limit; in set_inodes_soft_limit()
196 pub fn allocated_inodes(&self) -> Option<u64> { in allocated_inodes()
206 /// Time limit for excessive disk use.
207 pub fn block_time_limit(&self) -> Option<u64> { in block_time_limit()
217 /// Set the time limit for excessive disk use.
218 pub fn set_block_time_limit(&mut self, limit: u64) { in set_block_time_limit()
219 self.0.dqb_btime = limit; in set_block_time_limit()
222 /// Time limit for excessive files.
223 pub fn inode_time_limit(&self) -> Option<u64> { in inode_time_limit()
233 /// Set the time limit for excessive files.
234 pub fn set_inode_time_limit(&mut self, limit: u64) { in set_inode_time_limit()
235 self.0.dqb_itime = limit; in set_inode_time_limit()
239 fn quotactl<P: ?Sized + NixPath>( in quotactl()
241 special: Option<&P>, in quotactl() argument
244 ) -> Result<()> { in quotactl()
259 pub fn quotactl_on<P: ?Sized + NixPath>( in quotactl_on()
261 special: &P, in quotactl_on() argument
263 quota_file: &P, in quotactl_on() argument
264 ) -> Result<()> { in quotactl_on()
267 let p: *mut c_char = path_copy.as_mut_ptr().cast(); in quotactl_on() localVariable
272 p, in quotactl_on()
278 pub fn quotactl_off<P: ?Sized + NixPath>( in quotactl_off()
280 special: &P, in quotactl_off() argument
281 ) -> Result<()> { in quotactl_off()
290 /// Update the on-disk copy of quota usages for a filesystem.
293 pub fn quotactl_sync<P: ?Sized + NixPath>( in quotactl_sync()
295 special: Option<&P>, in quotactl_sync() argument
296 ) -> Result<()> { in quotactl_sync()
306 pub fn quotactl_get<P: ?Sized + NixPath>( in quotactl_get()
308 special: &P, in quotactl_get() argument
310 ) -> Result<Dqblk> { in quotactl_get()
322 pub fn quotactl_set<P: ?Sized + NixPath>( in quotactl_set()
324 special: &P, in quotactl_set() argument
328 ) -> Result<()> { in quotactl_set()