• Home
  • Raw
  • Download

Lines Matching +full:p +full:- +full:limit

25     fn as_int(&self) -> c_int {  in as_int()
63 … /// Handles 32-bit UIDs/GIDs and quota limits up to 2<sup>32</sup> bytes/2<sup>32</sup> inodes.
67 /// Handles 32-bit UIDs/GIDs and quota limits of 2<sup>64</sup> bytes/2<sup>64</sup> inodes.
76 /// The block hard & soft limit fields.
80 /// The inode hard & soft limit fields.
84 /// The disk use time limit field.
86 /// The file quote time limit field.
92 /// The time limit fields.
105 fn default() -> Dqblk { in default()
121 /// The absolute limit on disk quota blocks allocated.
122 pub fn blocks_hard_limit(&self) -> Option<u64> { in blocks_hard_limit()
132 /// Set the absolute limit on disk quota blocks allocated.
133 pub fn set_blocks_hard_limit(&mut self, limit: u64) { in set_blocks_hard_limit()
134 self.0.dqb_bhardlimit = limit; in set_blocks_hard_limit()
137 /// Preferred limit on disk quota blocks
138 pub fn blocks_soft_limit(&self) -> Option<u64> { in blocks_soft_limit()
148 /// Set the preferred limit on disk quota blocks allocated.
149 pub fn set_blocks_soft_limit(&mut self, limit: u64) { in set_blocks_soft_limit()
150 self.0.dqb_bsoftlimit = limit; in set_blocks_soft_limit()
154 pub fn occupied_space(&self) -> Option<u64> { in occupied_space()
165 pub fn inodes_hard_limit(&self) -> Option<u64> { in inodes_hard_limit()
176 pub fn set_inodes_hard_limit(&mut self, limit: u64) { in set_inodes_hard_limit()
177 self.0.dqb_ihardlimit = limit; in set_inodes_hard_limit()
180 /// Preferred inode limit
181 pub fn inodes_soft_limit(&self) -> Option<u64> { in inodes_soft_limit()
191 /// Set the preferred limit of allocated inodes.
192 pub fn set_inodes_soft_limit(&mut self, limit: u64) { in set_inodes_soft_limit()
193 self.0.dqb_isoftlimit = limit; in set_inodes_soft_limit()
197 pub fn allocated_inodes(&self) -> Option<u64> { in allocated_inodes()
207 /// Time limit for excessive disk use.
208 pub fn block_time_limit(&self) -> Option<u64> { in block_time_limit()
218 /// Set the time limit for excessive disk use.
219 pub fn set_block_time_limit(&mut self, limit: u64) { in set_block_time_limit()
220 self.0.dqb_btime = limit; in set_block_time_limit()
223 /// Time limit for excessive files.
224 pub fn inode_time_limit(&self) -> Option<u64> { in inode_time_limit()
234 /// Set the time limit for excessive files.
235 pub fn set_inode_time_limit(&mut self, limit: u64) { in set_inode_time_limit()
236 self.0.dqb_itime = limit; in set_inode_time_limit()
240 fn quotactl<P: ?Sized + NixPath>( in quotactl()
242 special: Option<&P>, in quotactl() argument
245 ) -> Result<()> { in quotactl()
260 pub fn quotactl_on<P: ?Sized + NixPath>( in quotactl_on()
262 special: &P, in quotactl_on() argument
264 quota_file: &P, in quotactl_on() argument
265 ) -> Result<()> { in quotactl_on()
268 let p: *mut c_char = path_copy.as_mut_ptr() as *mut c_char; in quotactl_on() localVariable
273 p, in quotactl_on()
279 pub fn quotactl_off<P: ?Sized + NixPath>( in quotactl_off()
281 special: &P, in quotactl_off() argument
282 ) -> Result<()> { in quotactl_off()
291 /// Update the on-disk copy of quota usages for a filesystem.
294 pub fn quotactl_sync<P: ?Sized + NixPath>( in quotactl_sync()
296 special: Option<&P>, in quotactl_sync() argument
297 ) -> Result<()> { in quotactl_sync()
307 pub fn quotactl_get<P: ?Sized + NixPath>( in quotactl_get()
309 special: &P, in quotactl_get() argument
311 ) -> Result<Dqblk> { in quotactl_get()
323 pub fn quotactl_set<P: ?Sized + NixPath>( in quotactl_set()
325 special: &P, in quotactl_set() argument
329 ) -> Result<()> { in quotactl_set()