equal
deleted
inserted
replaced
239 TInt r; |
239 TInt r; |
240 |
240 |
241 TUint32 mode=aRequest->Message().Int1(); |
241 TUint32 mode=aRequest->Message().Int1(); |
242 if (anOpen==EFileCreate || anOpen==EFileReplace) |
242 if (anOpen==EFileCreate || anOpen==EFileReplace) |
243 { |
243 { |
244 r = CheckDiskSpace(0, aRequest); |
244 r = CheckDiskSpace(KMinFsCreateObjTreshold, aRequest); |
245 if(r != KErrNone) |
245 if(r != KErrNone) |
246 return r; |
246 return r; |
247 |
247 |
248 mode|=EFileWrite; |
248 mode|=EFileWrite; |
249 } |
249 } |
599 // Create a temporary file. |
599 // Create a temporary file. |
600 // |
600 // |
601 { |
601 { |
602 __PRINT(_L("TFsFileTemp::DoRequestL(CFsRequest* aRequest)")); |
602 __PRINT(_L("TFsFileTemp::DoRequestL(CFsRequest* aRequest)")); |
603 |
603 |
604 TInt r = CheckDiskSpace(0, aRequest); |
604 TInt r = CheckDiskSpace(KMinFsCreateObjTreshold, aRequest); |
605 if(r != KErrNone) |
605 if(r != KErrNone) |
606 return r; |
606 return r; |
607 |
607 |
608 TFileName n; |
608 TFileName n; |
609 TInt h; |
609 TInt h; |
1650 // Set the file attributes. |
1650 // Set the file attributes. |
1651 // |
1651 // |
1652 { |
1652 { |
1653 __PRINT(_L("TFsFileSetAtt::DoRequestL(CSessionFs* aSession)")); |
1653 __PRINT(_L("TFsFileSetAtt::DoRequestL(CSessionFs* aSession)")); |
1654 |
1654 |
1655 TInt r = CheckDiskSpace(0, aRequest); |
1655 TInt r = CheckDiskSpace(KMinFsCreateObjTreshold, aRequest); |
1656 if(r != KErrNone) |
1656 if(r != KErrNone) |
1657 return r; |
1657 return r; |
1658 |
1658 |
1659 CFileShare* share=(CFileShare*)aRequest->ScratchValue(); |
1659 CFileShare* share=(CFileShare*)aRequest->ScratchValue(); |
1660 r=share->CheckMount(); |
1660 r=share->CheckMount(); |
1715 // Set the modified date and time. |
1715 // Set the modified date and time. |
1716 // |
1716 // |
1717 { |
1717 { |
1718 __PRINT(_L("TFsFileSetModified::DoRequestL(CFsRequest* aRequest)")); |
1718 __PRINT(_L("TFsFileSetModified::DoRequestL(CFsRequest* aRequest)")); |
1719 |
1719 |
1720 TInt r = CheckDiskSpace(0, aRequest); |
1720 TInt r = CheckDiskSpace(KMinFsCreateObjTreshold, aRequest); |
1721 if(r != KErrNone) |
1721 if(r != KErrNone) |
1722 return r; |
1722 return r; |
1723 |
1723 |
1724 |
1724 |
1725 CFileShare* share=(CFileShare*)aRequest->ScratchValue(); |
1725 CFileShare* share=(CFileShare*)aRequest->ScratchValue(); |
1755 // Set the attributes and the modified date and time. |
1755 // Set the attributes and the modified date and time. |
1756 // |
1756 // |
1757 { |
1757 { |
1758 __PRINT(_L("TFsFileSet::DoRequestL(CFsRequest* aRequest)")); |
1758 __PRINT(_L("TFsFileSet::DoRequestL(CFsRequest* aRequest)")); |
1759 |
1759 |
1760 TInt r = CheckDiskSpace(0, aRequest); |
1760 TInt r = CheckDiskSpace(KMinFsCreateObjTreshold, aRequest); |
1761 if(r != KErrNone) |
1761 if(r != KErrNone) |
1762 return r; |
1762 return r; |
1763 |
1763 |
1764 CFileShare* share=(CFileShare*)aRequest->ScratchValue(); |
1764 CFileShare* share=(CFileShare*)aRequest->ScratchValue(); |
1765 r=share->CheckMount(); |
1765 r=share->CheckMount(); |
1880 // Rename the file if it was openned EFileShareExclusive |
1880 // Rename the file if it was openned EFileShareExclusive |
1881 // |
1881 // |
1882 { |
1882 { |
1883 __PRINT(_L("TFsFileRename::DoRequestL(CFsRequest* aRequest)")); |
1883 __PRINT(_L("TFsFileRename::DoRequestL(CFsRequest* aRequest)")); |
1884 |
1884 |
1885 TInt r = CheckDiskSpace(0, aRequest); |
1885 TInt r = CheckDiskSpace(KMinFsCreateObjTreshold, aRequest); |
1886 if(r != KErrNone) |
1886 if(r != KErrNone) |
1887 return r; |
1887 return r; |
1888 |
1888 |
1889 CFileShare* share=(CFileShare*)aRequest->ScratchValue(); |
1889 CFileShare* share=(CFileShare*)aRequest->ScratchValue(); |
1890 r=share->CheckMount(); |
1890 r=share->CheckMount(); |